<asp:CheckBox ID="cbhis" runat="server" Text="Hi Speed Internet"></asp:CheckBox> Dim his As String = "" If cbhis.Checked = True Then his = "True" Else his = "False" End If
sir,
i have tryied it in my code its working fine on newly created page but on my page where i need to do it , it is return false while code is same as working code
Hi yogeshc,
Please delete that checkbox and add new checkbox with same id and try to access it it will work.
sir, your given code working fine but when i add some other asp control to the page it starting return false
It will return false if you havent checked the checkbox if you have checked it then it will return true so put a debug and check your code where you are missing something. Because i have already provided you a sample and cant remotely check your code.
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.