<div > <asp:CheckBox ID="CheckBox1" runat="server" Checked="false" /> <p2> I have read the Terms and Conditions</p2> <asp:Button ID="Button1" runat="server" Text="Next" Width="110px"/> <asp:Button ID="Button2" runat="server" Text="Back" Width="110px"/> </div>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Button1.Enabled = False If CheckBox1.Checked = True Then Button1.Enabled = True End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)