Newbie webform page layout question

D

deko

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.
 
D

deko

deko said:
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>
 
V

vladolf

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
 
D

deko

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top