Run@Server ?

W

WJ

I am using Html controls such as TextInput, checkBox.... How can I set the
attribute of these Html controls to runat="server" ? At present, the
property in the VS.IDE is grayed out. I have to manually switch to Html tab
in design mode, search for the control and insert it... What a clumsy
procedure ? Will this be fixed in VS.Net 2005 ?

TIA

John
 
C

clintonG

No, this will not be 'fixed' in VS2005 unless there is some late breaking
IDE function that reads an entire HTML file and parses it through a RegEx to
modify all of the HTML elements which in ASP.NET grammar are called HTML
controls -- and -- they are called HTML controls specifically because we can
add the runat attribute to enable us to access that element on the server.

Its a bit of extra work for those converting from ASP or other processing
models. FrontPage 2003 has 'some' functionality to build HTML controls
properly at design time.
 
C

clintonG

I'd venture to guess that he has yet to clear the fog most of us had with
our initial understaning of the control grammar and its heirarchical model
when coming to the DNF from an HTML scripting background.

So he's probably picking HTML controls from the Toolbox when he probably
really needs to use the Web Forms menu.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top