Placing data into a label

  • Thread starter Thread starter edb
  • Start date Start date
E

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
 
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
 
Back
Top