Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2004, 06:08 AM
Authorized User
 
Join Date: Mar 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGrid hyperlink

Hi

In my datagrid, i have a hyperlink column.

the text is edit and whenever a user clicks on 'edit', he is taken to the edit page.

The edit page has text boxes that should be filled with the values of the row of that hyperlink clicked on.

how can i pass variables i want to the edit page?

What Comes Around Goes Around!
__________________
What Comes Around Goes Around!
 
Old March 23rd, 2004, 10:21 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Just construct the hyperlink so you pass the data in the query string to the "edit" page from the datagrid page. You may need to construct the hyperlink in a template column if you need to pass more than one piece of information.

You haven't mentioned anything about this data coming from a database. If it is, and you don't want to pass all the data on the querystring, then just pass the row identifier (the primary key field, if there's only one) to the edit page and then do a lookup to the DB to get all the data for the edit form.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old March 24th, 2004, 01:04 AM
Authorized User
 
Join Date: Mar 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i did as u said. i constructed the template column and it worked

thanx

What Comes Around Goes Around!





Similar Threads
Thread Thread Starter Forum Replies Last Post
hyperlink in a datagrid? bhavna General .NET 1 January 25th, 2007 12:37 PM
DataGrid Hyperlink maddy137 ASP.NET 1.0 and 1.1 Professional 1 August 29th, 2006 07:18 AM
Datagrid Hyperlink - new problem PLEASE HELP! skywalker1981 ASP.NET 1.x and 2.0 Application Design 2 April 5th, 2004 06:22 AM
Creating a Hyperlink in a datagrid aadz5 ASP.NET 1.0 and 1.1 Basics 0 October 25th, 2003 07:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.