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
Loading
SenthilkumarPosted Apr 5, 2012, 5:39 AM
In page1:
Event for this
In Page 2:
code file:
While page load you can retrieve the custom details from the database and assign to the textboxes.
If you change any value and click on submit will take the updated value from the textboxes.
If it is helpful then mark it as "Correct Answer"
Charith LiyanagamagePosted Apr 5, 2012, 10:32 AM