Example with an Asp Button Control.
In Asp:
asp:Button ID="btnCancel" runat="server" Text="CANCEL" ToolTip="Cancel" CssClass="submitbtn" TabIndex="9"
After Rendering:
In Asp:
asp:Button ID="btnCancel" runat="server" Text="CANCEL" ToolTip="Cancel" CssClass="submitbtn" TabIndex="9"
After Rendering:
<input type="submit"
name="ctl00$ContentPlaceHolder1$ctl00$btnCancel"
value="CANCEL" id="ctl00_ContentPlaceHolder1_ctl00_btnCancel"
tabindex="9" title="Cancel" class="submitbtn" />
Description:
Ofcourse almost we know except "name" After Rendering.
name -- This is used to maintain the view state.
If we want to find the button using view state using the "name"
tag we can identified.
0 comments: