Session problem

0 views
Skip to first unread message

phani...@gmail.com

unread,
Jan 12, 2007, 1:31:58 AM1/12/07
to CreativeDevs
Hi kashi explain ur problem

kshan...@gmail.com

unread,
Jan 12, 2007, 1:38:32 AM1/12/07
to CreativeDevs
my problem is that

I have a form in that four textboxes is there each having button to
look up,

if we click the button we are redirecting to EmployeeList webpage. in
that i have EmployeeName and EmployeeId,

I need to fill four textbox with Names of Employees,

for that i am passing Query string from EmployeeWebpage,Every time,
to My Page, the Query string values are not preserving in my Page?

this is the Problem.
plz relpy how to rectify?

phani...@gmail.com

unread,
Jan 12, 2007, 1:45:36 AM1/12/07
to CreativeDevs
kashi i understood ur problem. u put a hashtable in session. like

Session['det"] = htable as HashTable

then in first lookup button click add emp name in hash table like this

HashTable htable = Session["det"] as HashTAble

htable.add(key,value emp name)

Session["det"] = htable

in nextpage

retrieve this hash tablw by key

and get data

hashtable ht = Session['det'] as hashtable

txt.text = ht["key"];
...........

may help u

kshan...@gmail.com

unread,
Jan 12, 2007, 1:58:53 AM1/12/07
to CreativeDevs
i have textbox and look up button are in same page i need to preserve
the querystring value for every page redirect

kshan...@gmail.com

unread,
Jan 12, 2007, 2:01:21 AM1/12/07
to CreativeDevs
if we are getting value for first text box , if we click send llok up
button and

if we place the seconf employee name query string in secondtextbox the
first text box is disapering

phani...@gmail.com

unread,
Jan 12, 2007, 2:01:43 AM1/12/07
to CreativeDevs
no kashi instead of query string u use session object store data in
session if button click and present in next page from session

Reply all
Reply to author
Forward
0 new messages