Background calls to the ModalPopupExtender of the ASP.net ajax:ajax

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.