c# - RadWindow is closed when page is refreshed -


radwindow closed when page refreshed. have radwindow has button in <contenttemplate>, , when click on button radwindow closed. should not close radwindow?

<telerik:radwindowmanager id="radwindowmanager1" showcontentduringload="true" visiblestatusbar="false"     registerwithscriptmanager="true" enableshadow="true" reloadonshow="true" width="760px"     height="350px" runat="server">     <windows>         <telerik:radwindow id="modalpopup" runat="server" modal="true" openerelementid="btnshowwindow">             <contenttemplate>                 <asp:button id="button1" runat="server" text="addname" onclick="button1_click" />                 <asp:label id="lblname" runat="server" ></asp:label>             </contenttemplate>         </telerik:radwindow>     </windows> </telerik:radwindowmanager> 

in aspx.cs:

protected void button1_click(object sender, eventargs e) {     lblname.text = "hello!"; } 

use ajax shown here: http://www.telerik.com/help/aspnet-ajax/radwindow-ajaxifying.html.

this prevent full postbacks, radwindow not dispose , not close. note other full postbacks still close it.

if need make sure open after server action take here: http://www.telerik.com/help/aspnet-ajax/window-troubleshooting-opening-from-server.html.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -