views:

195

answers:

1

Hello folks.

I have one page (Products) that searches for products which are then displayed in a gridview. Lovely stuff.

I then have a second page that is essentially a feedback form (Feedback). So therefore, a person should be able to search for a product, see its details in a gridview and then click on a hyperlink taking it to the feedback page. Upon arriving at the Feedback page, the product they were previously looking at (the gridview as it was) should be visible.

What I would like to do is transfer the gridview 'as is' (i.e. on what the person has searched for) to the second feedback page.

How would I go about achieving this?

Alternatively, if you could think of a better method for achieving the same effect (i.e. producing a feedback scenario), I am open to ideas. I could offer the feedback in the same page but I don't think it would be aesthetically pleasing with the page layout.

Please note, I appreciate that I could add an 'edit' element to the gridview itself but this is not approriate in this current scenario.

+1  A: 

The simplest way to do this would be to make the original form and the feedback form the same ASPX page. You would simply hide or show elements, as you wish (using the Visible property). The grid view data would be persisted via ViewData.

Mark Bertenshaw
+1 I would go with Mark's approach.
Rashmi Pandit
Yuppers, I am going down that route...thatnks for the suggestion.
MrDean