473,786 Members | 2,350 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data Entery Webpage with tables

I have the following web page and I am trying to have the Field lables NOT
to wrap. It looks fine in a designer but when I run the program in a
browser the lables that have a space wrap. How do I prevent this? Also, is
there a better way to design an data entry web page without using tables,
(it's a realy paint in you know what to do that with tables), but I don't
know how to line up the fields any other way.

Thank You
Peter
<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="Defau lt4.aspx.cs"
Inherits="Defau lt4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Test</title>
<style type="text/css">
..bodyTable {
padding: 14px;
border-style:solid;
border-width:thin;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:10pt;
}

td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #000000;
}

..mainSelect
{
font-family: Courier New,Verdana, Arial, Helvetica, sans-serif;
font-size:10pt;
background-color:#C0FFFF;
border-style:solid;
border-width:thin;
border-color:Olive;
font-style:normal;
}

..bodyCell {
padding-top: 0px;
padding-left: 1px;
padding-right: 0px;
vertical-align:middle;
border-top: 0px;
border-left: 1px solid #D5D291;
border-right: 1px solid #D5D291;
border-bottom: 1px solid #D5D291;
border-style:none;
font-size:10pt;
}

.firstlabel
{
width: 212px;
display:block;
}
.style10
{
width: 192px;
}

..readonlyfield
{
background-color:InfoText;
margin-left: 0px;
}

.style11
{
width: 19px;
}
.style20
{
padding-top: 0px;
padding-left: 1px;
padding-right: 0px;
vertical-align: middle;
border-left: 1px none #D5D291;
border-right: 1px none #D5D291;
border-bottom: 1px none #D5D291;
font-size: 10pt;
width: 130px;
border-top-style: none;
border-top-color: inherit;
border-top-width: 0px;
}
.field
{
background-color:White;
}

.style27
{
height: 26px;
}
.style29
{
width: 90px;
height: 26px;
}
.style30
{

height: 26px;

}

.style23
{
width: 90px;
}
.style25
{

}
.style24
{
width: 1px;
}
.style33
{
padding-top: 0px;
padding-left: 1px;
padding-right: 0px;
vertical-align: middle;
border-left: 1px none #D5D291;
border-right: 1px none #D5D291;
border-bottom: 1px none #D5D291;
font-size: 10pt;
border-top-style: none;
border-top-color: inherit;
border-top-width: 0px;
}
.style34
{
width: 25px;
}
.style35
{
width: 59px;
height: 26px;
}
.style36
{
width: 59px;
}
.style37
{
width: 111px;
display: block;
}
</style>
</head>
<body>
<form id="form1" runat="server">

<table id="Id" class="bodyTabl e" style="width: 63%">
<tr>
<td class="style37" >
Select Name
</td>
<td colspan="5">
<asp:DropDownLi st ID="ddSelect" runat="server"
AutoPostBack="T rue"
CssClass="mainS elect" Height="20px" Width="257px">
</asp:DropDownLis t>
</td>
<td align="right">
&nbsp;</td>
<td align="right" class="bodyCell " colspan="2">
Trans ID</td>
<td align="left" class="bodyCell " colspan="2">
<asp:TextBox ID="txtTransact inID" runat="server"
BackColor="Whit eSmoke"
ReadOnly="True" Width="44px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style37" >
Last Name</td>
<td class="style10" >
<asp:TextBox ID="txtLastName " runat="server"
BackColor="Whit eSmoke"
CssClass="reado nlyfield" ReadOnly="True"
Width="192px"></asp:TextBox>
</td>
<td class="style11" >
MI</td>
<td class="style34" >
<asp:TextBox ID="txtMiddleIn it" runat="server"
BackColor="Whit eSmoke"
CssClass="reado nlyfield" ReadOnly="True"
Width="31px"></asp:TextBox>
</td>
<td class="style20" colspan="2">
First Name</td>
<td colspan="5">
<asp:TextBox ID="txtFirstNam e" runat="server"
BackColor="Whit eSmoke"
CssClass="reado nlyfield" ReadOnly="True"
Width="120px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style37" >
Address</td>
<td class="firstlab el" colspan="4">
<asp:TextBox ID="txtAddress1 " runat="server"
CssClass="field " Width="252px"></asp:TextBox>
</td>
<td class="style35" >
</td>
<td colspan="2" class="style27" >
</td>
<td colspan="2" class="style29" >
</td>
<td class="style30" style="width: 268435456px">
</td>
</tr>
<tr>
<td class="style37" >
Address 2</td>
<td class="style14" colspan="4">
<asp:TextBox ID="txtAddress2 " runat="server"
Width="255px"></asp:TextBox>
</td>
<td class="style36" >
&nbsp;</td>
<td colspan="2" class="style14" >
&nbsp;</td>
<td colspan="2" class="style23" >
&nbsp;</td>
<td class="style25" style="width: 268435456px">
&nbsp;</td>
</tr>
<tr>
<td class="style37" >
City</td>
<td class="style10" >
<asp:TextBox ID="txtCity" runat="server"
Width="197px"></asp:TextBox>
</td>
<td class="style11" >
St</td>
<td class="style24" colspan="2">
<asp:DropDownLi st ID="ddState" runat="server" Height="24px"
Width="56px">
<asp:ListItem Value="AL">AL</asp:ListItem>
<asp:ListItem Value="AR">AR</asp:ListItem>
<asp:ListItem Value="AZ">AZ</asp:ListItem>
<asp:ListItem Value="CA">CA</asp:ListItem>
<asp:ListItem Value="CO">CO</asp:ListItem>
<asp:ListItem Value="CT">CT</asp:ListItem>
<asp:ListItem Value="DC">DC</asp:ListItem>
<asp:ListItem Value="DE">DE</asp:ListItem>
<asp:ListItem Value="FL">FL</asp:ListItem>
<asp:ListItem Value="GA">GA</asp:ListItem>
<asp:ListItem Value="HI">HI</asp:ListItem>
<asp:ListItem Value="IA">IA</asp:ListItem>
<asp:ListItem Value="ID">ID</asp:ListItem>
<asp:ListItem Value="IL">IL</asp:ListItem>
<asp:ListItem Value="IN">IN</asp:ListItem>
<asp:ListItem Value="KS">KS</asp:ListItem>
<asp:ListItem Value="KY">KY</asp:ListItem>
<asp:ListItem Value="LA">LA</asp:ListItem>
<asp:ListItem Value="MA">MA</asp:ListItem>
<asp:ListItem Value="MD">MD</asp:ListItem>
<asp:ListItem Value="ME">ME</asp:ListItem>
<asp:ListItem Value="MI">MI</asp:ListItem>
<asp:ListItem Value="MN">MN</asp:ListItem>
<asp:ListItem Value="MO">MO</asp:ListItem>
<asp:ListItem Value="MS">MS</asp:ListItem>
<asp:ListItem Value="MT">MT</asp:ListItem>
<asp:ListItem Value="NC">NC</asp:ListItem>
<asp:ListItem Value="ND">ND</asp:ListItem>
<asp:ListItem Value="NE">NE</asp:ListItem>
<asp:ListItem Value="NH">NH</asp:ListItem>
<asp:ListItem Value="NJ">NJ</asp:ListItem>
<asp:ListItem Value="NM">NM</asp:ListItem>
<asp:ListItem Value="NV">NV</asp:ListItem>
<asp:ListItem Value="NY">NY</asp:ListItem>
<asp:ListItem Value="OH">OH</asp:ListItem>
<asp:ListItem Value="OK">OK</asp:ListItem>
<asp:ListItem Value="OR">OR</asp:ListItem>
<asp:ListItem Value="PA">PA</asp:ListItem>
<asp:ListItem Value="PR">PR</asp:ListItem>
<asp:ListItem Value="RI">RI</asp:ListItem>
<asp:ListItem Value="SC">SC</asp:ListItem>
<asp:ListItem Value="SD">SD</asp:ListItem>
<asp:ListItem Value="TN">TN</asp:ListItem>
<asp:ListItem Value="TX">TX</asp:ListItem>
<asp:ListItem Value="UT">UT</asp:ListItem>
<asp:ListItem Value="VA">VA</asp:ListItem>
<asp:ListItem Value="VT">VT</asp:ListItem>
<asp:ListItem Value="WA">WA</asp:ListItem>
<asp:ListItem Value="WI">WI</asp:ListItem>
<asp:ListItem Value="WV">WV</asp:ListItem>
<asp:ListItem Value="WY">WY</asp:ListItem>
</asp:DropDownLis t>
</td>
<td class="style36" >
Zip Code</td>
<td class="style14" colspan="5">
<asp:TextBox ID="txtZip" runat="server"
Width="73px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style37" >
Phone</td>
<td class="style10" >
<asp:TextBox ID="txtPhone" runat="server"
Width="197px"></asp:TextBox>
</td>
<td class="style11" >
Email</td>
<td class="style12" colspan="8">
<asp:textbox id="txtEmail" runat="server"
Width="205px"></asp:textbox></td>
</tr>
<tr>
<td class="style37" >
Graduation Date</td>
<td class="style10" >
<asp:textbox id="txtGradDate " runat="server"
Width="73px"></asp:textbox><as p:imagebutton id="imgGradDate " runat="server"
ImageUrl="image s/ShowCalendar.gi f"
CausesValidatio n="False"></asp:imagebutton ></td>
<td class="style11" >
&nbsp;</td>
<td class="style34" >
&nbsp;</td>
<td class="style33" >
&nbsp;</td>
<td class="style36" >
&nbsp;</td>
<td colspan="2" class="style14" >
&nbsp;</td>
<td colspan="2" class="style23" >
&nbsp;</td>
<td class="style25" style="width: 268435456px">
&nbsp;</td>
</tr>
<tr>
<td class="style37" >
Discipline</td>
<td class="style14" colspan="4">
<asp:TextBox ID="txtDiscipli ne" runat="server"
BackColor="Whit eSmoke"
CssClass="reado nlyfield" ReadOnly="True"
Width="256px"></asp:TextBox>
</td>
<td class="style36" >
User ID</td>
<td colspan="2" class="style14" >
&nbsp;</td>
<td colspan="2" class="style23" >
<asp:textbox id="txtUserID" runat="server" Width="56px"
ReadOnly="True" BackColor="Whit eSmoke"></asp:textbox></td>
<td class="style25" style="width: 268435456px">
&nbsp;</td>
</tr>
<tr>
<td class="style37" >
School</td>
<td class="style14" colspan="4">
<asp:TextBox ID="txtSchool" runat="server"
BackColor="Whit eSmoke"
CssClass="reado nlyfield" ReadOnly="True"
Width="256px"></asp:TextBox>
</td>
<td colspan="3">
Last Update</td>
<td colspan="2" class="style23" >
<asp:textbox id="txtLastUpda te" runat="server" Width="128px"
Font-Size="8pt" ReadOnly="True"
BackColor="Whit eSmoke"></asp:textbox></td>
<td class="style25" style="width: 268435456px">
&nbsp;</td>
</tr>
</table>
<div>

</div>
</form>
</body>
</html>
Oct 25 '08
15 1730
Hi Mark,

Could you tell me the edition of your Visual Studio and the steps to create
the "width: 268435456px"? I'll try to reproduce it on my side and see if
it's something wrong with Visual Studio.

Regards,
Allen Chen
Microsoft Online Support

--------------------
| From: "Peter" <cz****@nospam. nospam>
| References: <Ox************ **@TK2MSFTNGP06 .phx.gbl>
<u0************ **@TK2MSFTNGP05 .phx.gbl>
<#7************ **@TK2MSFTNGP02 .phx.gbl>
<ue************ **@TK2MSFTNGP03 .phx.gbl>
<en************ **@TK2MSFTNGP05 .phx.gbl>
<eQ************ **@TK2MSFTNGP05 .phx.gbl>
| Subject: Re: Data Entery Webpage with tables
| Date: Mon, 27 Oct 2008 08:27:32 -0500
| Lines: 61
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
| X-RFC2646: Format=Flowed; Response
| Message-ID: <#y************ *@TK2MSFTNGP06. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: CPE-72-129-145-58.new.res.rr.c om 72.129.145.58
| Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP06.phx .gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7870 4
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
|
| "Mark Rae [MVP]" <ma**@markNOSPA Mrae.netwrote in message
| news:eQ******** ******@TK2MSFTN GP05.phx.gbl...
| "Peter" <cz****@nospam. nospamwrote in message
| news:en******** ******@TK2MSFTN GP05.phx.gbl...
| >
| >>>>Try style="white:sp ace:nowrap;"
| >>>
| >>>But it has no effect, still wrapping
| >>>
| >>That's because the syntax is incorrect - see my earlier reply.
| >>>
| >>The correct syntax is: style="white-space:nowrap;"
| >>
| >No I've used the correct syntax and it's still wrapping, so that means
| >the table is not correct, but I don't know what's wrong and why it
| >displays the way I want it in VS but not in the browser.
| >
| 1) Remove all of the style="width:26 8435456px" and similar tags - not
| quite sure what you're trying to achieve with those...
| >
| 2) Change the definition of style37 to:
| .style37
| {
| width:auto;
| display: block;
| white-space:nowrap;
| }
| >
| 3) Correct each of the <trsections so that they contain the same
number
| of columns
| >
| 4) Either create a definition for .style14, or remove all references to
it
| >
| 5) Download and install this:
| >
http://www.microsoft.com/downloads/d...964-672D-4511-
BB3E-2D5E1DB91038&di splaylang=en
| Among many other things, it will allow you to see (and modify) all of
the
| CSS being applied to each of the page elements.
| >
| >
| --
| Mark Rae
| ASP.NET MVP
| http://www.markrae.net
|
|
| Thank You for your help!
|
|
| style="width:26 8435456px" came from VS, I did not keyed that in.
| Once I removed the 'Width' attribute from the columns that had spaces in
the
| lables the problem went away.
|
| I have read people had problems with Visual Studio HTML designer, but
I've
| never belived them until now, if you know what you are doing with html
| tables you can edit the tables manually, but if you don't like I don't
then
| VS is not very good, why would it display one way in the designer and
| different in a web browser?
|
|
|
|

Oct 28 '08 #11

"Allen Chen [MSFT]" <v-******@online.m icrosoft.comwro te in message
news:bH******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Mark,

Could you tell me the edition of your Visual Studio and the steps to
create
the "width: 268435456px"? I'll try to reproduce it on my side and see if
it's something wrong with Visual Studio.

Regards,
Allen Chen
Microsoft Online Support

--------------------
| From: "Peter" <cz****@nospam. nospam>
| References: <Ox************ **@TK2MSFTNGP06 .phx.gbl>
<u0************ **@TK2MSFTNGP05 .phx.gbl>
<#7************ **@TK2MSFTNGP02 .phx.gbl>
<ue************ **@TK2MSFTNGP03 .phx.gbl>
<en************ **@TK2MSFTNGP05 .phx.gbl>
<eQ************ **@TK2MSFTNGP05 .phx.gbl>
| Subject: Re: Data Entery Webpage with tables
| Date: Mon, 27 Oct 2008 08:27:32 -0500
| Lines: 61
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
| X-RFC2646: Format=Flowed; Response
| Message-ID: <#y************ *@TK2MSFTNGP06. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: CPE-72-129-145-58.new.res.rr.c om 72.129.145.58
| Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP06.phx .gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7870 4
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
|
| "Mark Rae [MVP]" <ma**@markNOSPA Mrae.netwrote in message
| news:eQ******** ******@TK2MSFTN GP05.phx.gbl...
| "Peter" <cz****@nospam. nospamwrote in message
| news:en******** ******@TK2MSFTN GP05.phx.gbl...
| >
| >>>>Try style="white:sp ace:nowrap;"
| >>>
| >>>But it has no effect, still wrapping
| >>>
| >>That's because the syntax is incorrect - see my earlier reply.
| >>>
| >>The correct syntax is: style="white-space:nowrap;"
| >>
| >No I've used the correct syntax and it's still wrapping, so that
means
| >the table is not correct, but I don't know what's wrong and why it
| >displays the way I want it in VS but not in the browser.
| >
| 1) Remove all of the style="width:26 8435456px" and similar tags - not
| quite sure what you're trying to achieve with those...
| >
| 2) Change the definition of style37 to:
| .style37
| {
| width:auto;
| display: block;
| white-space:nowrap;
| }
| >
| 3) Correct each of the <trsections so that they contain the same
number
| of columns
| >
| 4) Either create a definition for .style14, or remove all references
to
it
| >
| 5) Download and install this:
| >
http://www.microsoft.com/downloads/d...964-672D-4511-
BB3E-2D5E1DB91038&di splaylang=en
| Among many other things, it will allow you to see (and modify) all of
the
| CSS being applied to each of the page elements.
| >
| >
| --
| Mark Rae
| ASP.NET MVP
| http://www.markrae.net
|
|
| Thank You for your help!
|
|
| style="width:26 8435456px" came from VS, I did not keyed that in.
| Once I removed the 'Width' attribute from the columns that had spaces in
the
| lables the problem went away.
|
| I have read people had problems with Visual Studio HTML designer, but
I've
| never belived them until now, if you know what you are doing with html
| tables you can edit the tables manually, but if you don't like I don't
then
| VS is not very good, why would it display one way in the designer and
| different in a web browser?
|
|
|
|
I am using VS 9.0.30729.1 SP

Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1

Installed Edition: Enterprise Architect

Microsoft Visual Web Developer 2008
Create 3 x 3 table
add a lable to the first column
risize the column to just fix the label in the first column
add a text box to the second column
resize the text box just beyond the second column - drag the sides of the
text box - move the mouse pointer past the second column
Oct 28 '08 #12
"Allen Chen [MSFT]" <v-******@online.m icrosoft.comwro te in message
news:bH******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Mark,

Could you tell me the edition of your Visual Studio and the steps to
create
the "width: 268435456px"? I'll try to reproduce it on my side and see if
it's something wrong with Visual Studio.

Regards,
Allen Chen
Microsoft Online Support
Allen,

I'm not sure how, but you consistently reply to the wrong post in threads -
I can only assume it's something to do with your newsreader...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 28 '08 #13
Hello Peter,

Thanks for your information. However, I cannot reproduce this problem with
the steps you mentioned. Could you send me some screenshots and a demo
project to me? My email is v-******@microsof t.com.
Regards,
Allen Chen
Microsoft Online Support

--------------------
| From: "Peter" <cz****@nospam. nospam>
| References: <Ox************ **@TK2MSFTNGP06 .phx.gbl>
<u0************ **@TK2MSFTNGP05 .phx.gbl>
<#7************ **@TK2MSFTNGP02 .phx.gbl>
<ue************ **@TK2MSFTNGP03 .phx.gbl>
<en************ **@TK2MSFTNGP05 .phx.gbl>
<eQ************ **@TK2MSFTNGP05 .phx.gbl>
<#y************ *@TK2MSFTNGP06. phx.gbl>
<bH************ **@TK2MSFTNGHUB 02.phx.gbl>
| Subject: Re: Data Entery Webpage with tables
| Date: Mon, 27 Oct 2008 21:19:08 -0500
| Lines: 132
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
| Message-ID: <Ov************ **@TK2MSFTNGP05 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: CPE-72-129-145-58.new.res.rr.c om 72.129.145.58
| Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP05.phx .gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7878 1
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
|
| "Allen Chen [MSFT]" <v-******@online.m icrosoft.comwro te in message
| news:bH******** ******@TK2MSFTN GHUB02.phx.gbl. ..
| Hi Mark,
| >
| Could you tell me the edition of your Visual Studio and the steps to
| create
| the "width: 268435456px"? I'll try to reproduce it on my side and see if
| it's something wrong with Visual Studio.
| >
| Regards,
| Allen Chen
| Microsoft Online Support
| >
| --------------------
| | From: "Peter" <cz****@nospam. nospam>
| | References: <Ox************ **@TK2MSFTNGP06 .phx.gbl>
| <u0************ **@TK2MSFTNGP05 .phx.gbl>
| <#7************ **@TK2MSFTNGP02 .phx.gbl>
| <ue************ **@TK2MSFTNGP03 .phx.gbl>
| <en************ **@TK2MSFTNGP05 .phx.gbl>
| <eQ************ **@TK2MSFTNGP05 .phx.gbl>
| | Subject: Re: Data Entery Webpage with tables
| | Date: Mon, 27 Oct 2008 08:27:32 -0500
| | Lines: 61
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
| | X-RFC2646: Format=Flowed; Response
| | Message-ID: <#y************ *@TK2MSFTNGP06. phx.gbl>
| | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| | NNTP-Posting-Host: CPE-72-129-145-58.new.res.rr.c om 72.129.145.58
| | Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP06.phx .gbl
| | Xref: TK2MSFTNGHUB02. phx.gbl
| microsoft.publi c.dotnet.framew ork.aspnet:7870 4
| | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| |
| |
| | "Mark Rae [MVP]" <ma**@markNOSPA Mrae.netwrote in message
| | news:eQ******** ******@TK2MSFTN GP05.phx.gbl...
| | "Peter" <cz****@nospam. nospamwrote in message
| | news:en******** ******@TK2MSFTN GP05.phx.gbl...
| | >
| | >>>>Try style="white:sp ace:nowrap;"
| | >>>
| | >>>But it has no effect, still wrapping
| | >>>
| | >>That's because the syntax is incorrect - see my earlier reply.
| | >>>
| | >>The correct syntax is: style="white-space:nowrap;"
| | >>
| | >No I've used the correct syntax and it's still wrapping, so that
| means
| | >the table is not correct, but I don't know what's wrong and why it
| | >displays the way I want it in VS but not in the browser.
| | >
| | 1) Remove all of the style="width:26 8435456px" and similar tags -
not
| | quite sure what you're trying to achieve with those...
| | >
| | 2) Change the definition of style37 to:
| | .style37
| | {
| | width:auto;
| | display: block;
| | white-space:nowrap;
| | }
| | >
| | 3) Correct each of the <trsections so that they contain the same
| number
| | of columns
| | >
| | 4) Either create a definition for .style14, or remove all
references
| to
| it
| | >
| | 5) Download and install this:
| | >
| >
http://www.microsoft.com/downloads/d...964-672D-4511-
| BB3E-2D5E1DB91038&di splaylang=en
| | Among many other things, it will allow you to see (and modify) all
of
| the
| | CSS being applied to each of the page elements.
| | >
| | >
| | --
| | Mark Rae
| | ASP.NET MVP
| | http://www.markrae.net
| |
| |
| | Thank You for your help!
| |
| |
| | style="width:26 8435456px" came from VS, I did not keyed that in.
| | Once I removed the 'Width' attribute from the columns that had spaces
in
| the
| | lables the problem went away.
| |
| | I have read people had problems with Visual Studio HTML designer, but
| I've
| | never belived them until now, if you know what you are doing with html
| | tables you can edit the tables manually, but if you don't like I don't
| then
| | VS is not very good, why would it display one way in the designer and
| | different in a web browser?
| |
| |
| |
| |
| >
|
| I am using VS 9.0.30729.1 SP
|
| Microsoft Visual Studio 2008
| Version 9.0.30729.1 SP
| Microsoft .NET Framework
| Version 3.5 SP1
|
| Installed Edition: Enterprise Architect
|
| Microsoft Visual Web Developer 2008
|
|
| Create 3 x 3 table
| add a lable to the first column
| risize the column to just fix the label in the first column
| add a text box to the second column
| resize the text box just beyond the second column - drag the sides of the
| text box - move the mouse pointer past the second column
|
|
|

Oct 28 '08 #14
Hi Mark,

Sorry. I'm using our internal tool to read this post. The format is not
that well so I incorrectly thought this question was asked by you. Sorry
for the inconvenience brought to you.

Regards,
Allen Chen
Microsoft Online Support

--------------------
| From: "Mark Rae [MVP]" <ma**@markNOSPA Mrae.net>
| References: <Ox************ **@TK2MSFTNGP06 .phx.gbl>
<u0************ **@TK2MSFTNGP05 .phx.gbl>
<#7************ **@TK2MSFTNGP02 .phx.gbl>
<ue************ **@TK2MSFTNGP03 .phx.gbl>
<en************ **@TK2MSFTNGP05 .phx.gbl>
<eQ************ **@TK2MSFTNGP05 .phx.gbl>
<#y************ *@TK2MSFTNGP06. phx.gbl>
<bH************ **@TK2MSFTNGHUB 02.phx.gbl>
| In-Reply-To: <bH************ **@TK2MSFTNGHUB 02.phx.gbl>
| Subject: Re: Data Entery Webpage with tables
| Date: Tue, 28 Oct 2008 02:24:04 -0000
| Lines: 25
| Organization: http://www.markrae.net
| MIME-Version: 1.0
| Content-Type: text/plain;
| format=flowed;
| charset="iso-8859-1";
| reply-type=original
| Content-Transfer-Encoding: 7bit
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
| Message-ID: <OS************ **@TK2MSFTNGP06 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 77-99-142-41.cable.ubr06. hari.blueyonder .co.uk
77.99.142.41
| Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP06.phx .gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7878 2
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| "Allen Chen [MSFT]" <v-******@online.m icrosoft.comwro te in message
| news:bH******** ******@TK2MSFTN GHUB02.phx.gbl. ..
|
| Hi Mark,
| >
| Could you tell me the edition of your Visual Studio and the steps to
| create
| the "width: 268435456px"? I'll try to reproduce it on my side and see if
| it's something wrong with Visual Studio.
| >
| Regards,
| Allen Chen
| Microsoft Online Support
|
| Allen,
|
| I'm not sure how, but you consistently reply to the wrong post in threads
-
| I can only assume it's something to do with your newsreader...
|
|
| --
| Mark Rae
| ASP.NET MVP
| http://www.markrae.net
|
|

Oct 28 '08 #15
Hello Peter,

Did you make any progress on this issue?

Regards,
Allen Chen
Microsoft Online Support

--------------------
| From: "Peter" <cz****@nospam. nospam>
| References: <Ox************ **@TK2MSFTNGP06 .phx.gbl>
<u0************ **@TK2MSFTNGP05 .phx.gbl>
<#7************ **@TK2MSFTNGP02 .phx.gbl>
<ue************ **@TK2MSFTNGP03 .phx.gbl>
<en************ **@TK2MSFTNGP05 .phx.gbl>
<eQ************ **@TK2MSFTNGP05 .phx.gbl>
<#y************ *@TK2MSFTNGP06. phx.gbl>
<bH************ **@TK2MSFTNGHUB 02.phx.gbl>
| Subject: Re: Data Entery Webpage with tables
| Date: Mon, 27 Oct 2008 21:19:08 -0500
| Lines: 132
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
| Message-ID: <Ov************ **@TK2MSFTNGP05 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: CPE-72-129-145-58.new.res.rr.c om 72.129.145.58
| Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP05.phx .gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7878 1
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
|
| "Allen Chen [MSFT]" <v-******@online.m icrosoft.comwro te in message
| news:bH******** ******@TK2MSFTN GHUB02.phx.gbl. ..
| Hi Mark,
| >
| Could you tell me the edition of your Visual Studio and the steps to
| create
| the "width: 268435456px"? I'll try to reproduce it on my side and see if
| it's something wrong with Visual Studio.
| >
| Regards,
| Allen Chen
| Microsoft Online Support
| >
| --------------------
| | From: "Peter" <cz****@nospam. nospam>
| | References: <Ox************ **@TK2MSFTNGP06 .phx.gbl>
| <u0************ **@TK2MSFTNGP05 .phx.gbl>
| <#7************ **@TK2MSFTNGP02 .phx.gbl>
| <ue************ **@TK2MSFTNGP03 .phx.gbl>
| <en************ **@TK2MSFTNGP05 .phx.gbl>
| <eQ************ **@TK2MSFTNGP05 .phx.gbl>
| | Subject: Re: Data Entery Webpage with tables
| | Date: Mon, 27 Oct 2008 08:27:32 -0500
| | Lines: 61
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
| | X-RFC2646: Format=Flowed; Response
| | Message-ID: <#y************ *@TK2MSFTNGP06. phx.gbl>
| | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| | NNTP-Posting-Host: CPE-72-129-145-58.new.res.rr.c om 72.129.145.58
| | Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP06.phx .gbl
| | Xref: TK2MSFTNGHUB02. phx.gbl
| microsoft.publi c.dotnet.framew ork.aspnet:7870 4
| | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| |
| |
| | "Mark Rae [MVP]" <ma**@markNOSPA Mrae.netwrote in message
| | news:eQ******** ******@TK2MSFTN GP05.phx.gbl...
| | "Peter" <cz****@nospam. nospamwrote in message
| | news:en******** ******@TK2MSFTN GP05.phx.gbl...
| | >
| | >>>>Try style="white:sp ace:nowrap;"
| | >>>
| | >>>But it has no effect, still wrapping
| | >>>
| | >>That's because the syntax is incorrect - see my earlier reply.
| | >>>
| | >>The correct syntax is: style="white-space:nowrap;"
| | >>
| | >No I've used the correct syntax and it's still wrapping, so that
| means
| | >the table is not correct, but I don't know what's wrong and why it
| | >displays the way I want it in VS but not in the browser.
| | >
| | 1) Remove all of the style="width:26 8435456px" and similar tags -
not
| | quite sure what you're trying to achieve with those...
| | >
| | 2) Change the definition of style37 to:
| | .style37
| | {
| | width:auto;
| | display: block;
| | white-space:nowrap;
| | }
| | >
| | 3) Correct each of the <trsections so that they contain the same
| number
| | of columns
| | >
| | 4) Either create a definition for .style14, or remove all
references
| to
| it
| | >
| | 5) Download and install this:
| | >
| >
http://www.microsoft.com/downloads/d...964-672D-4511-
| BB3E-2D5E1DB91038&di splaylang=en
| | Among many other things, it will allow you to see (and modify) all
of
| the
| | CSS being applied to each of the page elements.
| | >
| | >
| | --
| | Mark Rae
| | ASP.NET MVP
| | http://www.markrae.net
| |
| |
| | Thank You for your help!
| |
| |
| | style="width:26 8435456px" came from VS, I did not keyed that in.
| | Once I removed the 'Width' attribute from the columns that had spaces
in
| the
| | lables the problem went away.
| |
| | I have read people had problems with Visual Studio HTML designer, but
| I've
| | never belived them until now, if you know what you are doing with html
| | tables you can edit the tables manually, but if you don't like I don't
| then
| | VS is not very good, why would it display one way in the designer and
| | different in a web browser?
| |
| |
| |
| |
| >
|
| I am using VS 9.0.30729.1 SP
|
| Microsoft Visual Studio 2008
| Version 9.0.30729.1 SP
| Microsoft .NET Framework
| Version 3.5 SP1
|
| Installed Edition: Enterprise Architect
|
| Microsoft Visual Web Developer 2008
|
|
| Create 3 x 3 table
| add a lable to the first column
| risize the column to just fix the label in the first column
| add a text box to the second column
| resize the text box just beyond the second column - drag the sides of the
| text box - move the mouse pointer past the second column
|
|
|

Nov 3 '08 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
6142
by: Pete..... | last post by:
Hi all. I have made a webpage where there is a webform where people can fill in their personel information: The code is below: I want to transfer the data to a postgreSQL database ( I have allready made the database with the neccesary tables, and I know how to connect to it ) but I really have no idea how I can transfer the data from the webform to
0
1386
by: Daryl Zavier | last post by:
Hi Gurus, Please forgive me if my question is dumb cause this is my first web application I've done. Currently in my web application there is a button to click which will fire off a DTS event to import data into my SQL server. During the importing process, there're also several calculation made to amend/modify the import data accordingly.
4
1806
by: kimi | last post by:
Please help me decided the best way to do this... I have a shopping cart web site that stores its data in an SQL server database. The client wants to retrieve daily orders via their access DB on their desktop. I have written macros to connect to the same SQL server, retrieve data and process data on my desktop.
1
1816
by: dtlabo | last post by:
Thank you in advance for any assistance! I have a Access 2000 database in which we are keeping track of package details for orders to be sent to customers. Example: We have an order for Company XYZ and after all the parts are pulled they are packaged into three cartons that will be shipped to the customer. I have a Form that has two subform. Subform1 is for data display only. Subform2 is for data entery. As each carton is packed it's...
0
1634
by: teknowledgy | last post by:
My SQL database has four tables. A couple of the columns in these tables use the xml data type which receive data from custom asp.net 2.0 user controls. Now I am trying to display the data from my tables in formviews that are bound to Object Data Sources. The problem is that the xml data is displaying as one long unbroken string. For instance, my contact user control lets the users enter their address, city, state, telephone and email...
5
1465
by: mobaligh | last post by:
I have two tables, tblEmployees and tblEmployeepayment. tblEmployees has the following fields the data to this table comes from our payroll system EmployeeID Name Paygroup Employeestatus Annualsalary tlbEmployeepayment has the following fields which will be entered by the user.
2
3582
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in uby/Rails. I started it in Perl and gave up on Perl as I went from the 'display the database information on the web page' to the 're-display the information from the database and allow the user to update the database using the web page' stage and realized...
5
12867
sid0404
by: sid0404 | last post by:
Hi I am new to the visualstudio.net I am trying to develop an application which requires me to send data to a HTML webpage - http://patft.uspto.gov/netahtml/PTO/search-bool.html and the user sendsd the data to the webpage and receives the response to that particular values from the webpage. I am trying to use httpwebrequest for this purpose, but I am receiving errors, kindly let me know where I am going wrong. When I llok at the...
1
7261
by: Dave | last post by:
I'm having problems getting the GridView to reliably display a large amount of data (50,000+ rows). I am working my way through the excellent book “Real World ASP.NET Best Practices” by Farhan Muhammad. In some cases I’m trying to extend the examples. Currently, I have the following code to read data from a SQL Server 2005 database and display in a GridView:
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.