Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Newbie webform page layout question

Reply
Thread Tools

Newbie webform page layout question

 
 
deko
Guest
Posts: n/a
 
      04-24-2004
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.


 
Reply With Quote
 
 
 
 
deko
Guest
Posts: n/a
 
      04-24-2004

"deko" <> wrote in message
news:Cxyic.40680$. com...
> 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;&n bsp;&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;&nbs p;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&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></O></SPAN></P>
</form>
</body>
</HTML>


 
Reply With Quote
 
 
 
 
vladolf
Guest
Posts: n/a
 
      04-24-2004

"deko" <> wrote in message
news:v1zic.40684$. com...
>
> "deko" <> wrote in message
> news:Cxyic.40680$. com...
> > 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;&n bsp;&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;&nbs p;&nbsp;&
>

nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&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></O></SPAN></P>
> </form>
> </body>
> </HTML>
>
>



 
Reply With Quote
 
deko
Guest
Posts: n/a
 
      04-24-2004
> 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?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick question about the default flow-layout of VS.NET 2005 webform designer and web controls. JDeats ASP .Net 1 10-29-2007 04:09 PM
Choosing Layout: Css-Layout or Table-Layout hpourfard@gmail.com ASP .Net 1 06-19-2006 10:06 AM
CSS Layout question - how to duplicate a table layout with CSS Eric ASP .Net 4 12-24-2004 04:54 PM
newbie questin about webform layout William Gower ASP .Net 2 04-27-2004 03:00 AM
Including WebForm Image Control in a Webform Table Control titof ASP .Net 0 07-24-2003 01:01 PM



Advertisments
 



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