473,399 Members | 3,302 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,399 software developers and data experts.

Placing data into a label

edb
Hi,

I have a login page that transfers to the next page. On
the next page I want to post someones first and last name.
I already know this ...

LblName.text = "Hello World"

How do you do this ...

LblFirstName.text = rs("firstname") & rs("Lastname")
in .Net
My second question is this. I am strongly familiar with
session variables. Example

session("Customer_ID") = rs("Customer_ID")

How do you do this in .Net

As always, I really appreciate everyones help :)

thank you,
edb
Jul 21 '05 #1
1 1143
I'm not sure what rs is...but if you set two session Variables you could set
the lables accordingly.

To set a Session Variable Session("VarName") = "something"

To retrieve it, use CType and the type in this case string
myLabel.text = CType(Session("VarName"), string)
If the rs is a datatable, you can reference it with
dt.Rows(someIndex).Columns(someIndex) ...

Does this help?

Bill
"edb" <m1**@dm2000.com> wrote in message
news:01****************************@phx.gbl...
Hi,

I have a login page that transfers to the next page. On
the next page I want to post someones first and last name.
I already know this ...

LblName.text = "Hello World"

How do you do this ...

LblFirstName.text = rs("firstname") & rs("Lastname")
in .Net
My second question is this. I am strongly familiar with
session variables. Example

session("Customer_ID") = rs("Customer_ID")

How do you do this in .Net

As always, I really appreciate everyones help :)

thank you,
edb

Jul 21 '05 #2

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

Similar topics

12
by: dave | last post by:
Hello, I've got a site project that i've got to design a layout without resorting to tables. I want to use a table for tabular data not any formatting layout, primarily emphasis needs to be on...
3
by: Christer Bermar | last post by:
Hello, I was wondering how to oder two labels in a ASP.NET web form exactly after eachother by settings its LEFT and WIDTH propertys. Depending on the font used and length of the string, this is...
12
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
12
by: Logan | last post by:
Hi, I am not a very experienced asp.net developer, but have a fair idea on how it works & better idea on vb.net. My requirement is to place an asp.net page on a website - which currently has...
6
by: dhnriverside | last post by:
Hi peeps, I'm trying to create some controls textboxes at runtime, based on the number of items in a IETreeView that are checked. That I can do, I've got a place holder and I can create the...
10
by: SHPsalm139 | last post by:
We have an Access 2K application that uses multiple forms. We currently hardcode the release number in a label on each form but this gets tedious to do each time there's a new release. I thought...
7
by: Michael Galvin | last post by:
I am trying to use Python to send to the printer a calender filled with a mix of text and simple graphics. I want to draw on the printed page something like a table with 6 rows and 7 columns to...
8
by: Radx | last post by:
Here in my web application, I have a data entry page with serval controls. Some of the controls have autopostback is set true. But the problem is when two or more people are entering data at the...
2
by: vertozia | last post by:
Hey there, ive been having difficulty placing an image, this is my screenshot, and what ive done so far: http://img341.imageshack.us/img341/9894/gridwg2.jpg /** * ConnectFourGUI * Provide...
1
by: ton | last post by:
Hi, I've drawn a table, with some colours as a calendar-schedule. I want to place labels at certain positions on top of that table. When doing so, the label is not visible because it is behind...
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: 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
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
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,...
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...
0
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,...
0
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...

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.