Checkbox is checked or not?
-
Hi, I have a checkbox in Login control and this control exist in MasterPage, I want that When user press 'Login' button to get login there should be a check which check whether checkbox is checked or not?. I want to write cookie base on checkbox action. I tried but could not find a right solution. Can anyone help me? Following is the hierarchy of checkbox; Loginview>AnonymousTemplate>Login>LayoutTemplate>CheckBox Thanks and Regards, Abubakar
-
Hi, I have a checkbox in Login control and this control exist in MasterPage, I want that When user press 'Login' button to get login there should be a check which check whether checkbox is checked or not?. I want to write cookie base on checkbox action. I tried but could not find a right solution. Can anyone help me? Following is the hierarchy of checkbox; Loginview>AnonymousTemplate>Login>LayoutTemplate>CheckBox Thanks and Regards, Abubakar
Well you would use FindControl metod.
-
Well you would use FindControl metod.
Hi, I am using (((Login)LoginView1.FindControl("Login1")).FindControl("rememberCheckBox")) but I don't know which is exact place to check whether checkbox is checked or not? In other words under which even I should place this? I don't have Page_Load as it is in Masterpage
-
Well you would use FindControl metod.
dgdf
-
dgdf
Ya I know I am using following code. ((CheckBox)((Login)LoginView1.FindControl("Login1")).FindControl("rememberCheckBox")).Checked I have a checkbox named "RememberMe" what I need is that when user press button to get login system should check checkbox. If checkbox is checked then write a cookie with username and passwod otherwise do nothing so what could be its solution? Waiting for reply. Kind Regards, Abubakar Malik