Hi Guys,
Im not sure what is wrong here, but i have totally no idea what is happening
I have a form with 2 checkbox and a label and also a submit button.
Basically what im trying to achieve is when user click submit button, it check
if none of checkbox is selected, then display message in Label saying "Pls select at least one checkbox"
if either one checkbox is selected, then process request and display in Label saying "Pls wait, request is being processed.
So now the problem is that everything works fine, but the message is not getting displayed in the Label (Name of this Label is Label1)
This is the html code for label ..Its in the form tag
All the labels and checkbox and also submit button has the "runat server attribute"
Then when submit button clicked, it goes to Process function and checks whether the checkbox is selected or not and displays appropriate message
this code is in the <script> tag.
When i try to debug no error, and it moves to the correct path, meaning it executes that statement where the label is being assigned to some value, but i dont see it in the browser..
I dont know why for some reasons the text is not being displayed in the label.
Would appreciate if someone could guide me here..thank you..
Im not sure what is wrong here, but i have totally no idea what is happening
I have a form with 2 checkbox and a label and also a submit button.
Basically what im trying to achieve is when user click submit button, it check
if none of checkbox is selected, then display message in Label saying "Pls select at least one checkbox"
if either one checkbox is selected, then process request and display in Label saying "Pls wait, request is being processed.
So now the problem is that everything works fine, but the message is not getting displayed in the Label (Name of this Label is Label1)
This is the html code for label ..Its in the form tag
Code:
<FORM runat="server">
<TABLE cellSpacing="0" cellPadding="5" width="53%" align="center" border="0">
<TR bgcolor=#ff9900>
<asp:Label ID=Label1 Runat="server"></asp:Label>
</TR>
</TABLE>
</FORM>
All the labels and checkbox and also submit button has the "runat server attribute"
Then when submit button clicked, it goes to Process function and checks whether the checkbox is selected or not and displays appropriate message
Code:
if (CheckBox1.Checked != true && CheckBox2.Checked != true)
Label1.Text = "Please select at least One Report";
else
Label1.Text = "Request is being Processed";
this code is in the <script> tag.
When i try to debug no error, and it moves to the correct path, meaning it executes that statement where the label is being assigned to some value, but i dont see it in the browser..
I dont know why for some reasons the text is not being displayed in the label.
Would appreciate if someone could guide me here..thank you..