0% found this document useful (0 votes)
23 views

TR TD Asp:Label Asp:Label TD TD Asp:Validationsummary

This document contains code for a web form with fields for a student's grade and gender. It includes a text box for grade with a required field validator to ensure a grade is entered. A radio button list allows selecting gender with options for male and female. A button is included to submit the form once completed.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

TR TD Asp:Label Asp:Label TD TD Asp:Validationsummary

This document contains code for a web form with fields for a student's grade and gender. It includes a text box for grade with a required field validator to ensure a grade is entered. A radio button list allows selecting gender with options for male and female. A button is included to submit the form once completed.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

<table>

<tr>
<td>Grade:</td>
<td><asp:textbox id= "txtgrade" runat="server">
</asp:textbox>
</td>
<td><asp:RequiredFieldValidator id="rfvGrade" runat="server"
ControlToValidate="txtgrade"
ErrorMessgrade="Grade can't be left blank"
SetFocusOnError="True">*
</asp:RequiredFieldValidator>
</td>
</tr>

<tr><td><asp:Label ID="lblMsg" runat="server">


110:
</asp:Label>
111:
</td>
112: <td><asp:ValidationSummary ID="ValidationSummary1"
113:
runat="server" ShowMessageBox="True"
114:
ShowSummary="False"/>
115: </td></tr>
116:
117: <tr><td><asp:Button ID="btnSave" runat="server"
118:
Text="Sign Up"
119:
onclick="btnSave_Click"/>
120: </td></tr>
</table>

RadioButtonList ID="rbtgenderlist" runat="server"


RepeatDirection="Horizontal" RepeatLayout="Table">
<asp:ListItem Text="Male" Value="Excellent"></asp:ListItem>
<asp:ListItem Text="Female" Value="Very Good"></asp:ListItem>
</asp:RadioButtonList>

You might also like