Solved

GridView in Asp.net - need to select a specific record and once clicked on Select it shoudl go to another website that shows details of that record.

Posted on 2014-09-05
3
733 Views
Last Modified: 2014-11-12
I have a GridView with select enabled, I want the user to select an item from the list and once done, it will go to a details page where they can see all the details, what I need to do is once a person selects a record, I need it to go to a next page and I need to pass a value to that page so that it can search based on that variable. How can this be done? Any help is greatly appreciated.

I'm programming in ASP.NET and visual studio 2013 express if that helps.

Thank you.
0
Comment
Question by:TechMan4Ever
[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
3 Comments
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 300 total points
ID: 40307161
Well. You have to define a hyperlink column which could be selected in the grid. On clicking upon the link you could pass the selected value as QUERY STRING to another page. That page will pop-up. In the detail page you could parse the query string.

Instead of hyperlink you could use linkbutton as well in ASP.NET. Analyze which one would match your needs.



Below links explained well:

http://aspsnippets.com/Articles/Pass-QueryString-Parameters-using-HyperLinkField-in-ASPNet-GridView.aspx
http://aspsnippets.com/Articles/How-to-bind-and-pass-query-string-in-HyperLink-in-GridView-in-ASPNet.aspx
http://weblogs.asp.net/gurusarkar/pass-querystring-parameter-with-navigaterurl-in-hyperlink-inside-a-gridview


HTH.
0
 

Author Comment

by:TechMan4Ever
ID: 40312101
Just a quick question, I'm using ASP.NET MVC 4, I got things going but how do I pass the variables between pages, in Webforms, you use page.aspx.vb page, how do I do that in MVC 4?

Thank you for your help!
0
 
LVL 13

Assisted Solution

by:jitendra patil
jitendra patil earned 200 total points
ID: 40316805
if you are using MVC, which grid control are you using to render your data ?

if i am not wrong you intend to use Asp.Net Gridview, than its merely possible to get the desired output,  you may follow the link given below
Using GridView and DetailsView in ASP.NET MVC - Part 1

i would highly recommend not to use the above, but the choice is yours.

hope this helps.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

688 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