I need a help on this following aspx code
aspx Code:
<asp:Label ID ="lblName" runat ="server" Text ="Name"></asp:Label>
<asp:TextBox ID ="txtName" runat ="server"></asp:TextBox>
Consider this is my aspx page content. I am going to populate the values for textbox only after the postback from server. but the label also posting to the server(runat="server") eventhough its not neccessary. shall i write my code like this to save time from server with less load.
Corrected Code:
<label id ="lblNames">Name</label>
<asp:TextBox ID ="txtName" runat ="server"></asp:TextBox>
Only my server control will send to server for postback and not my html control which a static value.
Please suggest me whether this is the correct way of coding.