Ah, good to know. I just gave it a go, but it seems if I use the HTML controls instead of the .NET controls, I cannot directly modify the properties of the elements anymore. Let's take the next code as an example:<script runat="server">Sub submit(sender As Object, e As EventArgs)lbl1.Text="Your name is " & txt1.TextEnd Sub</script><html><body><form runat="server">Enter your name:<asp:TextBox id="txt1" runat="server" /><asp:Button OnClick="submit" Text="Submit" runat="server" /><p><asp:Label id="lbl1" runat="server" /></p></form></body></html>
The above script prints out a label after I enter content into the textbox. This is what I really like so far about ASP.NET, but it doesn't work with the following code:
<script runat="server">Sub submit(sender As Object, e As EventArgs)lbl1.Text="Your name is " & txt1.TextEnd Sub</script><html><body><form runat="server">Enter your name:<input type="text" id="txt1" runat="server"/><asp:Button OnClick="submit" Text="Submit" runat="server" /><p><asp:Label id="lbl1" runat="server" /></p></form></body></html>
Sooo... I guess this means if I use HTML controls I cannot talk to the control attributes as I would be able to do if they were .NET controls, right? Doesn't that defeat the advantage of .NET over other languages? Sorry, as you can take I am really new to this language - I am still trying to understand what the advantage of .NET is over PHP or regular ASP.