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

  1. #1

    Default Re: runat=server

    Can you show use some of the HTML in question?

    --
    Carsten Thomsen
    Enterprise Development with Visual Studio .NET, UML, and MSF
    [url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    "trinitypete" <support@trinity.com> wrote in message
    news:0b9401c3575b$51b20ed0$a401280a@phx.gbl...
    > if you have an tag/control that is marked up runat=server,
    > then can you still apply client side Java?
    >
    > e.g. I have an aspx form and in the HTML HEAD I decalare a
    > javascript function - DoSomething()
    >
    > The body tag looks like this:
    > <body id="bodyelement" runat="server">
    >
    > This is so that I can access the document back colour from
    > code behind.
    >
    > I modify the body tag by appending inload="DoSomething()"
    > but when the form runs it says form.aspx does not contain
    > a definition for DoSomething()
    >
    > Thanks in advance. Pete.
    >
    >

    CT Guest

  2. Similar Questions and Discussions

    1. Add form runat=server tags in Composite Control
      Hi, I am using a Composite Control that encloses two Usercontrols. Both Usercontrols require to be enclosed in a <form runat=server> tag. I...
    2. 'DataGridLinkButton' must be placed inside a form tag with runat=server
      Can you please explain this more? I am new to asp.net, and not sure I understand what you're saying. Do you mean simply make sure your control is...
    3. error..of type 'TextBox' must be placed inside a form tag with runat=server
      Try removing Runat=server from the textbox inside the template. Eliyahu "Jim" <peesa_govno@hotmail.com> wrote in message...
    4. runat=server on HTC defined tag.
      Is there a way to access an HTC defined tag as an HTMLControl. I want to set an attribute on the tag from the server. <myNamespace:myTagName...
    5. 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...
  3. #2

    Default Re: runat=server

    HTML being used

    <HTML>
    <HEAD>
    <title>Bug Maintenance</title>
    <meta content="Microsoft Visual
    Studio .NET 7.1" name="GENERATOR">
    <meta content="C#" name="CODE_LANGUAGE">
    <meta content="JavaScript"
    name="vs_defaultClientScript">
    <meta
    content="http://schemas.microsoft.com/intellisense/ie5"
    name="vs_targetSchema">
    <script language="JavaScript">
    <!--
    function dosomething()
    {
    alert('DoSomething Reached');
    }
    //-->
    </script>
    </HEAD>
    <body id="bodyelement" runat="server"
    onload="dosomething()">
    etc.

    When the form loads I get the message
    Compiler Error Message: CS0117: 'ASP.BugMaint_aspx' does
    not contain a definition for 'dosomething'

    Thanks, Pete
    >-----Original Message-----
    >Can you show use some of the HTML in question?
    >
    >--
    >Carsten Thomsen
    >Enterprise Development with Visual Studio .NET, UML, and
    MSF
    >[url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    >"trinitypete" <support@trinity.com> wrote in message
    >news:0b9401c3575b$51b20ed0$a401280a@phx.gbl...
    >> if you have an tag/control that is marked up
    runat=server,
    >> then can you still apply client side Java?
    >>
    >> e.g. I have an aspx form and in the HTML HEAD I
    decalare a
    >> javascript function - DoSomething()
    >>
    >> The body tag looks like this:
    >> <body id="bodyelement" runat="server">
    >>
    >> This is so that I can access the document back colour
    from
    >> code behind.
    >>
    >> I modify the body tag by appending inload="DoSomething
    ()"
    >> but when the form runs it says form.aspx does not
    contain
    >> a definition for DoSomething()
    >>
    >> Thanks in advance. Pete.
    >>
    >>
    >
    >
    >.
    >
    trinitypete Guest

  4. #3

    Default Re: runat=server

    Serverside
    <script> tags are distinguished from client-side <script> tags by the use
    of the runat=server attribute.

    This was taken from the book written by Dino Esposito on ASP.NET
    Unregistered 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