Solved

Problem on autopostback dropdownlist?

Posted on 2007-11-26
3
532 Views
Last Modified: 2012-06-27
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?
0
Comment
Question by:sonny_j81
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Expert Comment

by:gops1
ID: 20350260
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
 
LVL 37

Accepted Solution

by:
samtran0331 earned 500 total points
ID: 20351192
>>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
 
LVL 1

Author Comment

by:sonny_j81
ID: 20356675
Thanks samtran0331. You worth it.
0

Featured Post

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question