adding runat=server to a control on aspx page, don't cause the IDE to add the control to the code be

Z

z. f.

Hi,

adding a control with runat=server to an aspx page (using code - not
designer view) - don't cause the control to be added to the code behind (.cs
ot .vb file)

only if i change the aspx view to designer and then to the HTML view again,
the code behing is changed to add the controls with runat=server property.

is there a way using the IDE commands to run this command that the IDE is
making "behind the scenes" when switching to designer and then to HTML view
again?

TIA, z.
 
M

Mikhail Arkhipov \(MSFT\)

No, when editing in HTML view, you have to declare control manually in the
code behind file.

Thanks
Mikhail Arkhipov (MSFT)
-- This post is provided "AS IS" with no warranties, and confer no rights.
 

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top