Newbie webform page layout question

Discussion in 'ASP .Net' started by deko, Apr 24, 2004.

  1. deko

    deko Guest

    How do I incorporate large areas of text with small areas of webform? The
    book I have shows examples of how to make webforms, and how to make HTML
    pages - but it seems I need to mix the two to get a page that looks anything
    like what I see in the real world.

    Do I just open my webform in HTML view and cut-and-paste in all my HTML? Do
    I try to put 200 lines of text into a Label control?

    Thanks in advance.
    deko, Apr 24, 2004
    #1
    1. Advertising

  2. deko

    deko Guest

    "deko" <> wrote in message
    news:Cxyic.40680$...
    > How do I incorporate large areas of text with small areas of webform? The
    > book I have shows examples of how to make webforms, and how to make HTML
    > pages - but it seems I need to mix the two to get a page that looks

    anything
    > like what I see in the real world.
    >
    > Do I just open my webform in HTML view and cut-and-paste in all my HTML?

    Do
    > I try to put 200 lines of text into a Label control?
    >
    > Thanks in advance.


    Here is some HTML ...

    <%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
    AutoEventWireup="false" Inherits="vra1000.WebForm1" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML XMLNS:O>
    <HEAD>
    <title>WebForm1</title>
    <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema"
    content="http://schemas.microsoft.com/intellisense/ie5">
    </HEAD>
    <body MS_POSITIONING="FlowLayout">
    <form id="Form1" method="post" runat="server">
    <P>
    This is a test.&nbsp; We are conducting a test of the ability of this
    web form
    to accept simple text.&nbsp; This is because I want a bunch of text on
    my
    webform.&nbsp;Or,&nbsp;a little bit of webform on my text page.&nbsp; So
    enter
    your User Name here:&nbsp;
    <asp:TextBox id="TextBox1" runat="server"></asp:TextBox></P>
    <P>Okay, now for some more words.&nbsp; The above example seems to have
    worked.&nbsp; Now here comes the password text box: &nbsp;
    <asp:TextBox id="TextBox2" runat="server"></asp:TextBox></P>
    <P>Swell.&nbsp; Now for an

    image:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
    p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Image id="Image1"
    runat="server"></asp:Image>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
    nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
    ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </P>
    <P>What seems to be limiting here is that I cannot move the webform
    objects around
    on the page.</P>
    <P class="MsoNormal"><B style="mso-bidi-font-weight: normal"><SPAN
    style="FONT-SIZE: 11pt; COLOR: blue">THIS
    TEXT</SPAN></B><SPAN style="FONT-SIZE: 11pt"> was written in Microsoft
    Word, and pasted in. What's interesting is that the formatting seems to
    have
    been preserved.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><A
    href="http://localhost/vra1000/Welcome.htm">
    Read more</A>
    <O:p></O:p></SPAN></P>
    </form>
    </body>
    </HTML>
    deko, Apr 24, 2004
    #2
    1. Advertising

  3. deko

    vladolf Guest

    "deko" <> wrote in message
    news:v1zic.40684$...
    >
    > "deko" <> wrote in message
    > news:Cxyic.40680$...
    > > How do I incorporate large areas of text with small areas of webform?

    The
    > > book I have shows examples of how to make webforms, and how to make HTML
    > > pages - but it seems I need to mix the two to get a page that looks

    > anything
    > > like what I see in the real world.
    > >
    > > Do I just open my webform in HTML view and cut-and-paste in all my HTML?

    Just include what you need in the webform within the form tags, everything
    else can be outside including html, you could put labels etc. in the webform
    but that would put a heavier load on the server

    > Do
    > > I try to put 200 lines of text into a Label control?
    > >
    > > Thanks in advance.

    >
    > Here is some HTML ...
    >
    > <%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
    > AutoEventWireup="false" Inherits="vra1000.WebForm1" %>
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    > <HTML XMLNS:O>
    > <HEAD>
    > <title>WebForm1</title>
    > <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    > <meta name="CODE_LANGUAGE" Content="C#">
    > <meta name="vs_defaultClientScript" content="JavaScript">
    > <meta name="vs_targetSchema"
    > content="http://schemas.microsoft.com/intellisense/ie5">
    > </HEAD>
    > <body MS_POSITIONING="FlowLayout">
    > <form id="Form1" method="post" runat="server">
    > <P>
    > This is a test.&nbsp; We are conducting a test of the ability of this
    > web form
    > to accept simple text.&nbsp; This is because I want a bunch of text on
    > my
    > webform.&nbsp;Or,&nbsp;a little bit of webform on my text page.&nbsp;

    So
    > enter
    > your User Name here:&nbsp;
    > <asp:TextBox id="TextBox1" runat="server"></asp:TextBox></P>
    > <P>Okay, now for some more words.&nbsp; The above example seems to have
    > worked.&nbsp; Now here comes the password text box: &nbsp;
    > <asp:TextBox id="TextBox2" runat="server"></asp:TextBox></P>
    > <P>Swell.&nbsp; Now for an
    >
    >

    image:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
    > p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    > <asp:Image id="Image1"
    >

    runat="server"></asp:Image>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
    >

    nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
    > ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    > </P>
    > <P>What seems to be limiting here is that I cannot move the webform
    > objects around
    > on the page.</P>
    > <P class="MsoNormal"><B style="mso-bidi-font-weight: normal"><SPAN
    > style="FONT-SIZE: 11pt; COLOR: blue">THIS
    > TEXT</SPAN></B><SPAN style="FONT-SIZE: 11pt"> was written in

    Microsoft
    > Word, and pasted in. What's interesting is that the formatting seems

    to
    > have
    > been preserved.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><A
    > href="http://localhost/vra1000/Welcome.htm">
    > Read more</A>
    > <O:p></O:p></SPAN></P>
    > </form>
    > </body>
    > </HTML>
    >
    >
    vladolf, Apr 24, 2004
    #3
  4. deko

    deko Guest

    > Just include what you need in the webform within the form tags, everything
    > else can be outside including html, you could put labels etc. in the

    webform
    > but that would put a heavier load on the server


    Hi and thanks for the reply. So, I just switch to HTML view (to see the
    code) and dump in all the HTML I want outside the form tags - is this
    correct? But what about including <runat = server> tags in my HTML? Isn't
    it best to do this with all HTML so it gets compiled? Or does it matter?
    deko, Apr 25, 2004
    #4
    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. titof
    Replies:
    0
    Views:
    496
    titof
    Jul 24, 2003
  2. William Gower

    newbie questin about webform layout

    William Gower, Apr 27, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    326
    Joe Fallon
    Apr 27, 2004
  3. Eric
    Replies:
    4
    Views:
    709
    clintonG
    Dec 24, 2004
  4. Replies:
    1
    Views:
    572
    John Timney \(MVP\)
    Jun 19, 2006
  5. JDeats
    Replies:
    1
    Views:
    412
    Masudur
    Oct 29, 2007
Loading...

Share This Page