Hi akhter,
Please refer below Sample.
HTML
<asp:Label ID="lblType" runat="server" Text="10"></asp:Label>
<br />
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="Submit" />
Code
C#
protected void Submit(object sender, EventArgs e)
{
if (Convert.ToInt32(lblType.Text) <= 10)
{
Response.Write("<script language='javascript'>alert('Please Input Bale Barcode');</script>");
}
}
VB.Net
Protected Sub Submit(ByVal sender As Object, ByVal e As EventArgs)
If Convert.ToInt32(lblType.Text) <= 10 Then
Response.Write("<script language='javascript'>alert('Please Input Bale Barcode');</script>")
End If
End Sub
Screenshot