?
Solved

VB.NET view data based on id

Posted on 2011-09-29
2
Medium Priority
?
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 700 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 300 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

762 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