<tr id="MyRow" runat="server"> ... </tr> doesn't appear in server-side code

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: <tr id="MyRow" runat="server"> ... </tr> doesn't appear in server-side code

    pschrader:

    Look at the top of your page, where your controls are declared. Do you see
    one for HTMLTableRow? You may have to manually add it, if you created the
    HTML first, then added runat=server to the tag.

    --
    Elliot M. Rodriguez, MCSD
    *** It would take 227 cans of Mountain Dew to kill me***



    "pschrader" <pschrader@bieber-gruppe.de> wrote in message
    news:%23FiRsS5TDHA.3324@tk2msftngp13.phx.gbl...
    > Hello!
    >
    > I'm trying to modify an ASP.NET program.
    > I'm using W2K, C#, Visual Studio .NET 2003.
    >
    > From my books I learned that adding a runat attribute having a value
    > "server" makes Html controls available in the server-side code.
    > However, after modifying a table row such that
    >
    > <tr id="MyRow" runat="server">...</tr>
    >
    > I get no object of name MyRow and type HtmlTableRow in my server-side
    code.
    >
    > What's going wrong ?
    >
    > Your kind help would be appreciated.
    >
    >
    >

    Elliot M. Rodriguez Guest

  2. Similar Questions and Discussions

    1. how to get a file from the "Testing Server" / "remote view"
      if I want to get a particular file from the "Testing Sever" or "remote view" in my extension, how can i do so? Thanks a lot!!!
    2. Adding "form runat server" from codebehind..
      Hi.. I'm creating a "Web Custom Control" and need to generate a form. I can't put the form tag's to the aspx-fil. I have to generate them from...
    3. runat="server"....a simple html textbox or a webform server textbox...that is the question.
      I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the...
    4. Is it possible to call Javascript's window close() from <SCRIPT RUNAT="SERVER">?
      string strScript = "<script type=\"text/javascript\"><!--" + Environment.NewLine + "window.close();" + Environment.NewLine + "// --></script>"; if...
    5. #include and <script runat="server">
      There seem to be two ways to include files on the server: 1. <!-- #include file="header.inc" --> 2. <script language="VBScript" runat="server"...
  3. #2

    Default Re: <tr id="MyRow" runat="server"> ... </tr> doesn't appear in server-side code

    Sometimes you have to switch to Design mode for your page to force the IDE
    to put the declaration for the object in your code.

    Other times, it just misses it, and you have to do it by hand.

    "pschrader" <pschrader@bieber-gruppe.de> wrote in message
    news:%23FiRsS5TDHA.3324@tk2msftngp13.phx.gbl...
    > Hello!
    >
    > I'm trying to modify an ASP.NET program.
    > I'm using W2K, C#, Visual Studio .NET 2003.
    >
    > From my books I learned that adding a runat attribute having a value
    > "server" makes Html controls available in the server-side code.
    > However, after modifying a table row such that
    >
    > <tr id="MyRow" runat="server">...</tr>
    >
    > I get no object of name MyRow and type HtmlTableRow in my server-side
    code.
    >
    > What's going wrong ?
    >
    > Your kind help would be appreciated.
    >
    >
    >

    Marina Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139