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

Discussion in 'ASP .Net' started by z. f., Jun 24, 2004.

  1. z. f.

    z. f. Guest

    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.
     
    z. f., Jun 24, 2004
    #1
    1. Advertising

  2. 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.

    "z. f." <> wrote in message
    news:...
    > 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.
    >
    >
     
    Mikhail Arkhipov \(MSFT\), Jun 25, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?ISO-8859-1?Q?Roland_M=FCller?=

    Request a code behind property in aspx tag (runat server)

    =?ISO-8859-1?Q?Roland_M=FCller?=, Nov 11, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    544
    =?ISO-8859-1?Q?Roland_M=FCller?=
    Nov 11, 2005
  2. JB
    Replies:
    2
    Views:
    355
  3. Chris
    Replies:
    4
    Views:
    1,264
    Chris
    Jun 11, 2007
  4. Tony Johansson
    Replies:
    2
    Views:
    322
    Gregory A. Beamer
    Dec 7, 2009
  5. iporter
    Replies:
    11
    Views:
    468
    Thomas 'PointedEars' Lahn
    Jan 20, 2008
Loading...

Share This Page