|
-
Mar 31st, 2005, 06:29 AM
#1
Thread Starter
New Member
Access columns in dataset!please help
Hi Everybody!,
i have a problem and i'd like to have your help.
here is my problem i have a dataset with three columns including UserID,UserName,Password.I want to get the UserID to a Session variable, how do i access the dataset so that i can have a session name UserID that i get in the dataset in my web page.
Thank you very much.
Minh anh
-
Mar 31st, 2005, 08:12 AM
#2
Fanatic Member
Re: Access columns in dataset!please help
Try puting something like this in your data grid EditCommand procedure.
VB Code:
DataGrid1.DataKeyField = "UserID"
DataGrid1.EditItemIndex = e.Item.ItemIndex
DataGrid1.DataBind()
Session("UserID") = e.Item.Cells(0).Text
-
Mar 31st, 2005, 08:23 AM
#3
Hyperactive Member
Re: Access columns in dataset!please help
Code:
Session["UserID"] = MyDataSet.Tables[x].Rows[y]["UserID"].ToString();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|