ModalPopupExtender can also implement calls in the background:
Page code (Modified from Www.asp.net/ajax):
<%@ Page language= "C #" autoeventwireup= "true" codefile= "Default.aspx.cs" inherits= "_default"%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd XHTML 1.1//en" "Http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >
<title>untitled page</title>
<link href= "Stylesheet.css" rel= "StyleSheet" type= "Text/css"/>
<script type= "Text/javascript" >
var styletoselect;
function OnOK () {
document.getElementById (' Paragraph1 '). ClassName = Styletoselect;
}
</script>
<body>
<form id= "Form1" runat= "Server" >
<asp:scriptmanager id= "ScriptManager1" runat= "Server" >
</asp:ScriptManager>
<br/>
<asp:linkbutton id= "LinkButton1" runat= "Server" >please click to select a alternate text style.</asp: Linkbutton><br/>
<br/>
<div>
<p id= "PARAGRAPH1" >
<a href= "http://joeon.net" ><span style= "color: #3366cc" >joe stagner</span></a>
A member of the Microsoft product team, builds a CascadingDropDown sample application
That demonstrates two fundamental benefits of ajax-enabled Web applications, namely
Web Service integration and asynchronous page updates.
</p>
<asp:panel id= "Panel1" runat= "Server" cssclass= "ModalPopup" style= "Display:none" width= "233px" >
<p>choose the style you would like:</p>
<input id= "Radioa" name= "Radio" onclick= "styletoselect" = ' Samplestylea '; "type=" Radio "/>"
<label class= "Samplestylea" for= "Radioa" >choose this style.</label><br/>
<input id= "Radiob" name= "Radio" onclick= "styletoselect" = ' Samplestyleb '; "type=" Radio "/>"
<label class= "Samplestyleb" for= "Radiob" >choose this style.</label><br/>
<input id= "Radioc" name= "Radio" onclick= "styletoselect" = ' Samplestylec '; "type=" Radio "/>"
<label class= "Samplestylec" for= "RADIOC" >choose this style.</label><br/>
<input id= "Radiod" name= "Radio" onclick= "styletoselect" = ' samplestyled '; "type=" Radio "/>"
<label class= "samplestyled" for= "Radiod" >choose this style.</label><br/>
<br/>
<div align= "center" >
<asp:button id= "OKButton" runat= "Server" text= "OK"/>
<asp:button id= "CancelButton" runat= "Server" text= "Cancel"/>
</div>
</asp:Panel>
<asp:button id= "Button1" runat= "Server" onclick= "Button1_Click" text= "background display"/>
<br/>
</div>
</form>
</body>