I have a very simple question for which I can’t seem to find an explicit answer :
What is the purpose of the <asp: tag ?
I mean, if I am building a form for example, what will be the difference between a <label> (html tag) and a <asp:label> (asp tag I guess) (same question applies for other items) ?
Thanks in advance !
It’s just a name-prefix. Linking up to a defined .NET library.
Those controls always have the
runat=serverattribute too, and that is the relevant part.To see how the prefix works, create a simple UserControl and drag it onto a Form. The
<uc1:tag follows the same principles and is fully defined inside your Form.