Is there any difference between
<asp:TextBox runat="server" .... />
and
<asp:TextBox runat="server" .... ></asp:TextBox>
Are there any gotchas using one over the other?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have an exception to @Andrew’s rule:
I’ve been using GridView in an ASP.Net form and binding a recordset to it dynamically for debug purposes (I didn’t specify anything for it but an ID).
When you drag the GridView to your form, it creates an
<asp:GridView></asp:GridView>code. I found out that if I drop the closing tag and close the opener with />, the GridView does not get displayed.On the same note, check my question from last week, where people correctly commented that in HTML/XHTML, some tags (like DIV) must have a closing tag.