|
-
Jun 17th, 2010, 10:54 PM
#1
Thread Starter
PowerPoster
[RESOLVED] Passing values from one page to another???
I have a web page that contains a GridView which the user is allowed to "Edit", "Delete" and "Select" rows. What I'm trying to accomplish is when a user clicks on "Edit", they are redirected to another web page that contains a DetailsView of the record they selected from the GridView (previous page). How do I make the association?
Thanks,
-
Jun 17th, 2010, 11:13 PM
#2
Re: Passing values from one page to another???
I hope you will populate the gridview from some data source, While clicking the edit button pass the ID of the row selected row either using QueryString/ViewState and fetch the value from db and display in the details view
Please mark you thread resolved using the Thread Tools as shown
-
Jun 17th, 2010, 11:16 PM
#3
Thread Starter
PowerPoster
Re: Passing values from one page to another???
I'm not sure how to do that. Got any examples?
-
Jun 17th, 2010, 11:21 PM
#4
Re: Passing values from one page to another???
Here is the sample with edit in popup screen. Apply the same logic for your next page
Please mark you thread resolved using the Thread Tools as shown
-
Jun 18th, 2010, 01:33 AM
#5
Re: Passing values from one page to another???
Blake,
How are you binding the columns in the GridView currently?
If you are using TemplateField's, or even a HyperLink Field, you should be able to manipulate the data that is being put into that column in the GridView RowDataBound event, to set the link, including the ID of the Item that you want to edit.
Here are some examples:
http://authors.aspalliance.com/aspxt...ogridview.aspx
http://www.codeproject.com/KB/webfor...linkfield.aspx
Gary
-
Jun 18th, 2010, 03:54 AM
#6
Frenzied Member
Re: Passing values from one page to another???
You Don't Have to Rate Me.
I'm Not a Civilized Man I'm the Civilization it self
White or Black, Living or Dieing and 0 or 1 that's MY life
iam an Object in Object Oriented Life
my blog : http://refateid.blogspot.com/
twitter : @avrail
010011000111010101110110001000000100110101111001001000000101000001100011 
-
Jun 18th, 2010, 03:01 PM
#7
Thread Starter
PowerPoster
Re: Passing values from one page to another???
Thanks guys,
All your suggestions were helpful!
-
Jun 18th, 2010, 03:04 PM
#8
Frenzied Member
Re: [RESOLVED] Passing values from one page to another???
you are welcome
You Don't Have to Rate Me.
I'm Not a Civilized Man I'm the Civilization it self
White or Black, Living or Dieing and 0 or 1 that's MY life
iam an Object in Object Oriented Life
my blog : http://refateid.blogspot.com/
twitter : @avrail
010011000111010101110110001000000100110101111001001000000101000001100011 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|