D
David
I want a form where I have a single record displayed with most of the
information in two columns. The left column is the name of the field. The
right column is the content. The web page is for scheduling events, so what
I want is:
Event Name: Jim's Wedding.
I created the following markup
<asp:FormView ID="FormView1" runat="server" DataKeyNames="EventID"
DataSourceID="SqlDataSource1" Width="100%">
<ItemTemplate>
<table width="100%">
<tr align="left" >
<td align="left" >Event Name:</td>
<td align="left"><asp:Label ID="EventNameLabel" runat="server"
Text='<%# Bind("EventName") %>' SkinID="LargeLabel" /></td>
</tr>
</ItemTemplate>
</asp:FormView>
Instead, what I get is:
Event Name:
Jim's Wedding
How can I tell it to put the content of the EventName Field right next to
the left hand column?
For what it's worth, the entire page has more data on it, including a text
box that I want to fill the whole width of the page. Its markup is
<tr>
<td colspan="2"><asp:TextBox ID="DescriptionLabel" runat="server"
Text='<%# Bind("Description") %>' TextMode="MultiLine"
Width="100%" Height="200px"/></td>
</tr>
At the moment, I have removed that portion from the page, but that is why
there are the Width="100%" elements in the markup.
information in two columns. The left column is the name of the field. The
right column is the content. The web page is for scheduling events, so what
I want is:
Event Name: Jim's Wedding.
I created the following markup
<asp:FormView ID="FormView1" runat="server" DataKeyNames="EventID"
DataSourceID="SqlDataSource1" Width="100%">
<ItemTemplate>
<table width="100%">
<tr align="left" >
<td align="left" >Event Name:</td>
<td align="left"><asp:Label ID="EventNameLabel" runat="server"
Text='<%# Bind("EventName") %>' SkinID="LargeLabel" /></td>
</tr>
</ItemTemplate>
</asp:FormView>
Instead, what I get is:
Event Name:
Jim's Wedding
How can I tell it to put the content of the EventName Field right next to
the left hand column?
For what it's worth, the entire page has more data on it, including a text
box that I want to fill the whole width of the page. Its markup is
<tr>
<td colspan="2"><asp:TextBox ID="DescriptionLabel" runat="server"
Text='<%# Bind("Description") %>' TextMode="MultiLine"
Width="100%" Height="200px"/></td>
</tr>
At the moment, I have removed that portion from the page, but that is why
there are the Width="100%" elements in the markup.