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
Solved

Problem on autopostback dropdownlist?

Posted on 2007-11-26
3
529 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…

860 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