473,382 Members | 1,107 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,382 software developers and data experts.

data binding in label field

I want to know how to dynamically bind the data in label field. My
requirement is that I need to display a label with a data which is retrieved
from preceding page and I want to use the data binding method to do that.
Can I use ViewState to store the value in the preceding page and then pass
to the label field of the next page?? If so, how to do that?
Million Thanks.
--
Best Regards,

Eric Yum
Nov 18 '05 #1
2 1367
With proper ViewState and ViewStateMac settings, you can pull info from
another page. It is not very easy in the current implementation. If you pull
the data, you can also siply pull again on the next page. While this may
seem less efficient, you have to remember that web apps are stateless.
Unless you are dealing with a lot of data, you will find that the pull is
very fast on page two, as well. And, if you are dealing with a lot of data,
you should not be sticking it in ViewState.

With Whidbey (next version of VS.NET), you will be able to easily pull info
from page to page.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Grey" <er*****@i-cable.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I want to know how to dynamically bind the data in label field. My
requirement is that I need to display a label with a data which is retrieved from preceding page and I want to use the data binding method to do that.
Can I use ViewState to store the value in the preceding page and then pass
to the label field of the next page?? If so, how to do that?
Million Thanks.
--
Best Regards,

Eric Yum

Nov 18 '05 #2
You can't use ViewState between pages, it's only good for the page you are
on, and even then it's really used for postbacks.

You'll have to use something else, this article should elaborate more. If
it's insensitive data best bet would probably be Form Post / Hidden,
Querystring, or cookies.
http://msdn.microsoft.com/msdnmag/is...e/default.aspx

Good luck,
--Michael

"Grey" <er*****@i-cable.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I want to know how to dynamically bind the data in label field. My
requirement is that I need to display a label with a data which is retrieved from preceding page and I want to use the data binding method to do that.
Can I use ViewState to store the value in the preceding page and then pass
to the label field of the next page?? If so, how to do that?
Million Thanks.
--
Best Regards,

Eric Yum

Nov 18 '05 #3

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

Similar topics

12
by: Nhmiller | last post by:
When I start to type the data for a new record, I would like a dropdown box to open next to it from which I can choose the data from a previously entered record that starts with the same letter....
4
by: | last post by:
I have a datagrid with a template column that has a hyperlink and a label. The hyperlink text is bound to Title from my dataset and the label text is bound to Author in the dataset. The grid...
9
by: Timm | last post by:
I have an ASP.NET 2.0 page with two DropDownLists. I am using declarative data binding wherever possible and trying to minimize the use of code. The list of values in DropDownList DDL2 should be...
1
by: msmcg | last post by:
I need to format the data in some textboxes using the Binding method with custom Currency and ShortDate format and parse handlers. Here is the code that I am using. I call it on the form load...
0
by: AM | last post by:
The following block of code defines a FormView control "FormView1" with an EditItemTemplate which has a Label and a TextBox control within it. While the Label "RequestIDLabel1" has one-way...
0
by: Sam | last post by:
I am trying to use a Simple form with 3 fields from SQL NorthWind Database (Order Details Table with 3 Fields. - OrderId, ProductId and Unit Price). The Field Unit Price has a data type of 'Money...
0
by: Sam | last post by:
Folks.. I am trying to use a Simple form with 3 fields from SQL NorthWind Database (Order Details Table with 3 Fields. - OrderId, ProductId and Unit Price). The Field Unit Price has a data...
3
by: Homer J. Simpson | last post by:
I have the following stored procedure: ALTER PROCEDURE . AS BEGIN SET NOCOUNT ON; SELECT COUNT(*) FROM QUICKNOTES END ....and the following data source in my .aspx file:
2
by: Igor | last post by:
Hi I build a page that has a dropdownlist control bound with data from a database. When user select an item from the dropdownlist I want a label to be filled with a result from a stored...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
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...
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...

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.