Solved

VB.NET view data based on id

Posted on 2011-09-29
2
184 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:dennis_hs
2 Comments
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 175 total points
ID: 36814335
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
 
LVL 12

Assisted Solution

by:jagssidurala
jagssidurala earned 75 total points
ID: 36817260
send your query string value to ur sql query and check this id in where condition

ex: select * from tblX Where id = @recordid

0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now