Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting db value 1

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
Not sure I know how to describe this, but here goes...

OK - I have a stored precedure that returns a record set... All I want to do is take the value from one field and apply it to a redirect (ie Response.Redirect("page.aspx?id="+recset["field"]);)

I can get as far as put the recordset into a sqlreader, but I am not sure where to go from there?

[conehead]
 
Loop through your reader (faq855-5662), assign the value to a variable and then issue a Response.Redirect and pass in that variable as the querystring


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I am developing in VS and it is not recognizinf Item as a member of SqlDataReader. WWhat am I doing wrong?

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top