PC Review


Reply
Thread Tools Rate Thread

Datagrid : Redirect and set session values

 
 
Iain
Guest
Posts: n/a
 
      23rd Dec 2009
Hi All

I have a problem and I hope someone can please help me.

I have an HRef in a cell in a Datagrid (HRef built in OnItemDataBound
Event) on page 1 (retrieved from a database table).

I want the user to be able to navigate to another page (page 2) where
I wish to retrieve and display in a Datagrid data from a table based
upon the contents of Cell0 and Cell1 from page 1. How do I pass these
values as the Datagrid SelectedIndexChanged event will not fire to set
something like a Session variable.

Any help or advice offered will be most gratefully received.

Iain

----------------------------------------------------------------------------

ie

On Page 1

Cell0 Cell1 HRef
AAA BBB <a href='Page2.aspx'>" + e.Item.Cells[0].Text + "</a>"

On Page 2 I need to use the values from Cell0 (AAA) and Cell1 (BBB) to
build a dynamic SQL string to retrieve the data to display in a new
datagrid.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session breaking on redirect Hrvoje Vrbanc Microsoft ASP .NET 2 7th Mar 2008 01:11 PM
Session variables dropped using Redirect =?Utf-8?B?UGFycm90?= Microsoft ASP .NET 2 27th Sep 2006 11:04 PM
ASP.NET losing session on redirect zoggs2000 Webmaster / Programming 0 11th Jan 2006 12:13 PM
Session cleared after Redirect John Microsoft ASP .NET 4 28th Oct 2005 03:05 PM
redirect on Session Timeout Weave Microsoft ASP .NET 6 16th Feb 2004 12:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:06 AM.