Solved

VB.NET view data based on id

Posted on 2011-09-29
2
183 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

11 Experts available now in Live!

Get 1:1 Help Now