Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Div as a popup. problem is :
I have a used a div as pop up that contains some texboxes, dropdownlists and button.
each time an item in a dropdown list is selected a div dissapears.
how to stop the div from being closed?

The dropdown item is get selected each time the div dissapears that's why i opened the div again by
C#
string script = "<script language='javascript'>fnOpenDiv();</script>";
ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), script, false);
Posted
Updated 18-Sep-11 20:03pm
v4
Comments
Herman<T>.Instance 16-Sep-11 3:48am    
show your code! we cannot see the problem now? Do you use AJAX ?
member60 16-Sep-11 4:32am    
Yes i used ajax. and the dropdown item is get selected each time the div dissapears that's why i opened the div again by

string script = "<script language='javascript'>fnOpenDiv();</script>";
ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), script, false);
Herman<T>.Instance 16-Sep-11 5:17am    
you can Open() the popup in the OnSelectedIndexChanged event of the dropdown!
member60 19-Sep-11 5:32am    
ya, i already opened the popup in Onselected IndexChanged but actual problem for blining affect of div is this opening only.The actual solution is : i had used multiple updatePanels and nested updatepanel thus setting the UpdateMode="Conditional" to outer UpdatePanel the problem solved. and no need to open the div again.
Anyway thanks for ur kind support.
Prerak Patel 19-Sep-11 2:03am    
Added code from comment to question.

1 solution

if u had used multiple updatePanels and nested updatepanel thus setting the UpdateMode="Conditional" to outer UpdatePanel the problem will be solved. and no need to open the div again. No need to open the div again in SelectedIndexChange event.
 
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