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

  • Thread starter Thread starter z. f.
  • Start date Start date
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.
 
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.
 
Back
Top