473,394 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Different DataList fields on PageLoad (Repost)

I repost this since I know how much some list people hate html posts ;-)

Hi,
I have a query page were users can check previous orders according to a
number of parameters. The query results are presented in a datalist and the
datasource is a sql query.
Since I capture the user name at logon, I thought Iąd provide a default
datalist with all the orders for that particular user at pageload. In that
case, I don't need to display the name information for the user in the
datalist. However, I need to keep the Name field in the datalist to
accommodate subsequent queries by the user. How do I make the Name column of
the datalist invisible at pageload if the page is not postback?
Thanks for your help,
Stephan.

Nov 18 '05 #1
2 1283
I think you would just have <asp:BoundColumn visible="false" ... >
and then in Page_Load,
If Page.IsPostBack Then
' set the column's visibility to true

Justin

"Stephan Bour" <sb***@niaid.nih.gov> wrote in message
news:BC2B2A10.DA9D%sb***@niaid.nih.gov...
I repost this since I know how much some list people hate html posts ;-)

Hi,
I have a query page were users can check previous orders according to a
number of parameters. The query results are presented in a datalist and the datasource is a sql query.
Since I capture the user name at logon, I thought Iąd provide a default
datalist with all the orders for that particular user at pageload. In that
case, I don't need to display the name information for the user in the
datalist. However, I need to keep the Name field in the datalist to
accommodate subsequent queries by the user. How do I make the Name column of the datalist invisible at pageload if the page is not postback?
Thanks for your help,
Stephan.

Nov 18 '05 #2
I think you would just have <asp:BoundColumn visible="false" ... >
and then in Page_Load,
If Page.IsPostBack Then
' set the column's visibility to true

Justin

"Stephan Bour" <sb***@niaid.nih.gov> wrote in message
news:BC2B2A10.DA9D%sb***@niaid.nih.gov...
I repost this since I know how much some list people hate html posts ;-)

Hi,
I have a query page were users can check previous orders according to a
number of parameters. The query results are presented in a datalist and the datasource is a sql query.
Since I capture the user name at logon, I thought Iąd provide a default
datalist with all the orders for that particular user at pageload. In that
case, I don't need to display the name information for the user in the
datalist. However, I need to keep the Name field in the datalist to
accommodate subsequent queries by the user. How do I make the Name column of the datalist invisible at pageload if the page is not postback?
Thanks for your help,
Stephan.

Nov 18 '05 #3

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

Similar topics

0
by: Stephan Bour | last post by:
Hi, I have a query page were users can check previous orders according to a number of parameters. The query results are presented in a datalist and the datasource is a sql query. Since I capture...
4
by: mahsa | last post by:
my problem dosent solve yet I want to have claa void in onclick of my check bov if I us function setProps ( ) msg.innerText = "llll"; in <datalist> <ItemTemplate><input type="checkbox"...
6
by: Patrick.O.Ige | last post by:
Hi guys, Just using these small snippet below using Datalist with sorting! But it appears i can see no Data on the screen when compiled with Visual Studio .Net! With WebMatrix its running fine!:)...
4
by: tshad | last post by:
I have a DataList that I have set up to allow editing. The edit button does go to the subroutine defined by OnEditCommand. The problem is that it doesn't change the fields to editing fields. The...
0
by: fig000 | last post by:
Hi, I have a datalist with bound data from a database. If I wanted to access one of the fields I would normally use the itemdatabound event to access that field on each row. However in this...
1
by: Mirek Endys | last post by:
I need to know, how to bind data into DataList, that is placed in another DataList in SelectedItemTemplate. I tried to FindControl on ItemCreated event, on PageLoad event, but I cannot get this...
0
by: Les Caudle | last post by:
I have a menu system composed of a DataList nested inside a DataList. The outer DataList has it's DataSource (composed of a DataSet with two tables linked by a CategoryPagesRelation Relation) set...
2
by: Jason James | last post by:
Hi, I have a datalist that contains a series of thumbnails. I am in the process of paging this datalist so that only 20 images are displayed at a time. Each image has associated with it a...
1
by: berny.zamora | last post by:
Hello everyone, I have a composite control (lets call it the parent) that contains a datalist. The datalist has an ItemTemplate that contains another composite control (lets call it the child)....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.