Results 1 to 3 of 3

Thread: Beginer question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2003
    Posts
    19

    Question Beginer question

    I am looking for <DIV> control. I have seen code like this

    <div id="Message" runat="server"/>
    and Message.InnerHtml = "Hello"

    Can some one tell me what this control is?

    Thanks!

  2. #2
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    Hi,
    The asp:Panel renders as a <DIV>
    Al.
    A computer is a tool, not a toy.

  3. #3
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    VB Code:
    1. <script language="vb" runat="server">
    2. Protected Sub Page_OnLoad(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
    3.     myDiv.InnerHtml = "<b>Hello World</b>"
    4. End Sub
    5. </script>
    6. <html>
    7.     <body>
    8.         <form runat="server">
    9.             <div id="myDiv" runat="server"/>
    10.         </form>
    11.     </body>
    12. </html>
    If you use code behind you can declare the control as:
    VB Code:
    1. Protected myDiv As HtmlControls.HtmlGenericControl

Posting Permissions

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



Click Here to Expand Forum to Full Width