TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Charith Liyanagamage
NA
148
0
Session Issue, I guess :|
Apr 5 2012 5:17 AM
Hi All,
I have below issue. This is most like a Sessions issue.
I have two asp.net web pages say page1 and page2. In page1 i select one record and store that on a
session variable
.
Ex:- Session["CustomerID"]=tbxCustomerID.Text.ToString();.
Now in page2
page_loading
event, i retrieve data from sql db based on the Session variable "CustomerID" and assign fetched data to the textboxes. Now i'm going to update the data in page 2 and pass the new values to database. But even i enter the new values for textboxes, it's still sending the
original data
to database that i retrieved in page_load event. textboxes dont hold new data and it only keeps old data with them.
scenario
Page1 ->
customerid
(session variable)
Page2 -> original values retrieved base on
custmerid
---->textbox1=cust_name[ex:-"charith"], textbox2=cust_address[ex:-"Malaysia"]
-> change address textbox2="India" Then click on save.....
but still saving "Malaysia", not India
. :(
Can anybody suggest a solution please ? Big help... :)
Thanks,
Max
Reply
Answers (
2
)
Identify which button clicked in Gridview
How to recover lost cs page