VB.NET view data based on id

Hello.

I would think that this is fundamental knowledge, but apparently it has escaped me. :)

I have an aspx page where I want to display data based on SQL data id.

I have a datasource and a gridview (I'm thinking this could be done with a repeater and an ItemTemplate also?)

How do I get a specific record displayed like when you see http://www.somesite.com/ViewPage.aspx?recordID=123
LVL 1
dennis_hsAsked:
Who is Participating?
 
Shaun KlineConnect With a Mentor Lead Software EngineerCommented:
If you are using a datasource control bound to the gridview, and your SQL uses a parameter for recordid, you can bind that parameter to the query string using the UI for the datasource control.
0
 
jagssiduralaConnect With a Mentor Commented:
send your query string value to ur sql query and check this id in where condition

ex: select * from tblX Where id = @recordid

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.