Hi There,
I am wanting to format a datalist into columns, so do I need to use a table
rows & columns? or can I use templates and a property at the top of the list
itself ? It seems that when I try to format the datalist I can't get it to
look like a normal html table.
Moe
row1 = col1 col2 col3 col4 col 5
row2 = col1 col2 col3 col4 col 5
<asp:DataList id="modify_listings"
runat="server"
headerstyle-font-name="Verdana"
cellpadding="10"
cellspacing="10"
GridLines="Both"
headerstyle-font-size="12pt"
headerstyle-horizontalalign="center"
headerstyle-font-bold="true"
itemstyle-backcolor="#778899"
itemstyle-forecolor="#ffffff"
footerstyle-font-size="9pt"
footerstyle-font-italic="true"
ShowHeader="true">
<HeaderTemplate>
<b> List</b>
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink id="HyperLink3"
style="font-size:xxsmall" Text='Modify' NavigateUrl='<%#
"edit_listings.aspx?ListingID=" & DataBinder.Eval(Container.DataItem,
"ListingID")%>' runat="server" /><br />
<%# DataBinder.Eval(Container.DataItem,
"listprice","{0:c}")%><br />
<%# DataBinder.Eval(Container.DataItem,
"manufacturer") %><br />
<%# DataBinder.Eval(Container.DataItem,
"listeddate","{0:dd-MM-yy}") %><br />
<%# DataBinder.Eval(Container.DataItem,
"formname") %><br />
<%# DataBinder.Eval(Container.DataItem,
"status") %><br />
<asp:HyperLink id="HyperLink1"
style="font-size:xxsmall" Text='Item Sold?' NavigateUrl='<%#
"processrequest.aspx?I=1&ListingID=" & DataBinder.Eval(Container.DataItem,
"ListingID")%>' runat="server" />
</ItemTemplate>
</asp:DataList> 2 1758
Moe,
Is Mr. Clothesoff there? First name Oliver.
You can certainly format the datalist into columns, but it will be a lot
easier to just use a datagrid since it places all the data into columns by
default.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Moe Sizlak" <mo*@moe.com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl... Hi There,
I am wanting to format a datalist into columns, so do I need to use a
table rows & columns? or can I use templates and a property at the top of the
list itself ? It seems that when I try to format the datalist I can't get it to look like a normal html table.
Moe
row1 = col1 col2 col3 col4 col 5 row2 = col1 col2 col3 col4 col 5
<asp:DataList id="modify_listings" runat="server" headerstyle-font-name="Verdana" cellpadding="10" cellspacing="10" GridLines="Both" headerstyle-font-size="12pt" headerstyle-horizontalalign="center" headerstyle-font-bold="true" itemstyle-backcolor="#778899" itemstyle-forecolor="#ffffff" footerstyle-font-size="9pt" footerstyle-font-italic="true" ShowHeader="true">
<HeaderTemplate>
<b> List</b>
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink id="HyperLink3" style="font-size:xxsmall" Text='Modify' NavigateUrl='<%# "edit_listings.aspx?ListingID=" & DataBinder.Eval(Container.DataItem, "ListingID")%>' runat="server" /><br />
<%# DataBinder.Eval(Container.DataItem, "listprice","{0:c}")%><br />
<%# DataBinder.Eval(Container.DataItem, "manufacturer") %><br />
<%# DataBinder.Eval(Container.DataItem, "listeddate","{0:dd-MM-yy}") %><br />
<%# DataBinder.Eval(Container.DataItem, "formname") %><br /> <%# DataBinder.Eval(Container.DataItem, "status") %><br /> <asp:HyperLink id="HyperLink1" style="font-size:xxsmall" Text='Item Sold?' NavigateUrl='<%# "processrequest.aspx?I=1&ListingID=" & DataBinder.Eval(Container.DataItem, "ListingID")%>' runat="server" />
</ItemTemplate> </asp:DataList>
Hi Justin,
he he another Simpson's fan good to see. Thanks for that I didn't realise a
datagrid would work with what I have done but it does!!
Moe
"S. Justin Gengo" <sjgengo@aboutfortunate[no-spam].com> wrote in message
news:10*************@corp.supernews.com... Moe,
Is Mr. Clothesoff there? First name Oliver.
You can certainly format the datalist into columns, but it will be a lot easier to just use a datagrid since it places all the data into columns by default.
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order." Nietzsche "Moe Sizlak" <mo*@moe.com> wrote in message news:eg**************@TK2MSFTNGP11.phx.gbl... Hi There,
I am wanting to format a datalist into columns, so do I need to use a table rows & columns? or can I use templates and a property at the top of the list itself ? It seems that when I try to format the datalist I can't get it
to look like a normal html table.
Moe
row1 = col1 col2 col3 col4 col 5 row2 = col1 col2 col3 col4 col 5
<asp:DataList id="modify_listings" runat="server" headerstyle-font-name="Verdana" cellpadding="10" cellspacing="10" GridLines="Both" headerstyle-font-size="12pt" headerstyle-horizontalalign="center" headerstyle-font-bold="true" itemstyle-backcolor="#778899" itemstyle-forecolor="#ffffff" footerstyle-font-size="9pt" footerstyle-font-italic="true" ShowHeader="true">
<HeaderTemplate>
<b> List</b>
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink id="HyperLink3" style="font-size:xxsmall" Text='Modify' NavigateUrl='<%# "edit_listings.aspx?ListingID=" & DataBinder.Eval(Container.DataItem, "ListingID")%>' runat="server" /><br />
<%# DataBinder.Eval(Container.DataItem, "listprice","{0:c}")%><br />
<%# DataBinder.Eval(Container.DataItem, "manufacturer") %><br />
<%# DataBinder.Eval(Container.DataItem, "listeddate","{0:dd-MM-yy}") %><br />
<%# DataBinder.Eval(Container.DataItem, "formname") %><br /> <%# DataBinder.Eval(Container.DataItem, "status") %><br /> <asp:HyperLink id="HyperLink1" style="font-size:xxsmall" Text='Item Sold?' NavigateUrl='<%# "processrequest.aspx?I=1&ListingID=" &
DataBinder.Eval(Container.DataItem, "ListingID")%>' runat="server" />
</ItemTemplate> </asp:DataList>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Chumley the Walrus |
last post by:
I'm trying to display just one record from an sql dbase with a
datalist control. My sql connection, statement, command, datasource,
etc are all tested and correct, but I do not see the display for...
|
by: olle |
last post by:
Hi everyone.
Beging a newbee to asp.net and used to work with traditional asp I have
one problem working with a datalist.
1/ I make a dataset as as session variable like
session("employees")
2/...
|
by: Joe |
last post by:
Hey,
Can anyone out there see why when this code renders there's a 1px space
between the headertemplate and the itemtemplate.
<asp:datalist id="asplistDL" BorderStyle="None"...
|
by: Leo Duran |
last post by:
Hi,
I am working on an app right now that makes extensive use of the DataList
control. I chose the DataList because I need to do multi row formatting. I
am using it like so.
|
by: Joe Van Meer |
last post by:
Hi,
Is the datalist meant for one table or can I use it to display information
from 2 different tables? Or should I be looking at a datagrid instead?
I began my code and kinda ran into a snag...
|
by: craigkenisston |
last post by:
Datalist formatting through CSS : impossible ?
Hi,
I have several hours struggling with DataList removing all the
autoformat formatting.
Now, the format is clean and try to use "CssClass" to...
|
by: pallabs |
last post by:
I'm new to asp.net and is having problems doing the following:
1. The tab sequence in a asp form is not working properly. The page is
a login form and tabindex is set to 0 for username, 1 for...
|
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= |
last post by:
I'm doing a web app in VB/Dot Net 2.0. I'm probably a bit rusty and I have
no experience using the repeater control.
I have a user control I've created with multiple properties. I've created a...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
| |