So far, all the web pages I met contain at most one <form>
tag. Why not multiple ones? I can not think of reasons why multiple forms can't coexist within the same web page.
Also, to be specific to ASP.NET - why are all the server controls are placed within the <form>
tag? Why not place them somewhere else?
Plus,
I noticed that in an .aspx
file, the <form>
tag has the runat=server attribute, while a normal server control such as Button
also has one. So it seems the <form>
is also a server control. But strangely enough, I cannot find it in the Visual Studio Toolbox.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…