Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

i am developing a Visual Webpart and on user control i have DropDownList with autopostback is true and a gridview control. on selectedindexchange of dropdown i am filling my gridview if i put update panel around dropdownlist and change the item nothing happens and also no error when i remove update panel it works fine..whats the problem

share|improve this question
    
I would refactor the solution to avoid "update panel" if possible. A clean webmethod /service called through ajax will give you way much control and less trouble ! –  Francois Verbeeck Nov 25 '12 at 19:12
add comment

2 Answers 2

you should create a update panel in your createchildcontrols method and then add your user control in update panel using content template control or something can't remember properly as I did it few months back, and then add your update panel to CONTROLS.

Hope it helps, if you still didn't get by what I said then let me know I will add code for you :) !

share|improve this answer
    
TimeToShine..thanks..I tried but it didnt work. I would appreciate your sample code if possible –  user342944 Dec 2 '12 at 7:16
    
Another problem is <ScriptManager> do i need to add ajaxtoolkit scriptmanager? I have on scriptmanager exist in master page. –  user342944 Dec 2 '12 at 8:03
add comment
up vote 0 down vote accepted

oh well in my web.config the 3.5 assemblies were missing so i googled and got the solution.

  1. Opened empty web application project.
  2. Copy portal's web.config file to the project and set the target framework to 2.0
  3. then select target framework 3.5 and save the file..

thats it..visual studio automatically added required entries in web.config..

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.