Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai Everyone,

i am using cascadind asp dropdown lists,for adding custom styles i use code from this link (http://harvesthq.github.io/chosen[^]).its work fine for me.but when i use updatepanel this is not working.so please kindly help me.

[edit]Clickable link[/edit]
Posted
Updated 9-Jun-13 22:16pm
v2
Comments
Sunasara Imdadhusen 5-Jun-13 8:51am    
are you getting any error?

Set the update panel mode always and if you are using any javascript or jquery to modify css style then put that javascript or jquery inside this function

JavaScript
function pageLoad()
{

$(document).ready(function(){

});

function changeStyle(){
}

} 



If this helpful for you then please select this as your answer and vote for this
 
Share this answer
 
Comments
Venkateswara Rao Reddipalli 6-Jun-13 0:37am    
Hai Hemanth thank you for your reply,can you send me any sample code for this.
call the javascript function on both pageload and update panel refresh.
JavaScript
<script type="text/javascript">//On Page Load
   $(function() {
       commncode();
   });

   //On UpdatePanel Refresh
   var prm = Sys.WebForms.PageRequestManager.getInstance();
   prm.add_pageLoaded(function() {
       commncode();
   });
</script>
 
Share this answer
 
v2
You need to put all dropdowns in same update panel. It'll work.
Refer the links below:
Cascading DropDownList for Country/State/City in ASP.Net[^]
Cascade dropdown list using Update Panel[^]



--Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900