Problem on autopostback dropdownlist?

Hello Experts,

I have a screen with 2 autopostback dropdownlists and a textarea. second dropdownlist is only display when select the item from the first dropdownlist.
once the second dropdownlist is selected, the appopriate data will display in textarea from database.
I have place the code(bind the data from database in textarea) in page postback's section in page load.
Now i display the data according to my request, but the problem is when i want to edit the data in textarea, because of the postback function that always call data from database, so i cant update the latest data into database.
May i know how to solve this?
LVL 1
sonny_j81Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
samtran0331Connect With a Mentor Commented:
>>I have place the code(bind the data from database in textarea) in page postback's section in page load.

Don't bind the text area in page_load, bind it in the dropdownlist2_selectedindexchanged event
0
 
gops1Commented:
One way is take the value put them inside request or session object and get it back else use Ajax to render the dropdown values. By Ajax you can avoid re rendering of a page.
0
 
sonny_j81Author Commented:
Thanks samtran0331. You worth it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.