ÔõôÔÚasp.net(c#)µÄ.csÎļþÀдÈëjavascriptÓï¾ä
ǰ̨:ÓÐUpdatePanel¿Ø¼þ(AJAX¿Ø¼þ)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head >
<title>ÎÞ±êÌâÒ³ </title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel> </form>
</body>
</html>
------------------------------------------------------------
ÔõôÔÚasp.net(c#)µÄ.csÎļþÀдÈëjavascriptÓï¾ä
Response.Write("&q
Ïà¹ØÎÊ´ð£º
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
21cnµÄÓÊÏ䣬ÔÚoutlookÅäÖúó¿ÉÒÔÕý³£ÊÕ·¢Óʼþ£¬¿ÉÊÇÎÒдÔÚC#ÖоͲ»ÐУ¬»»³ÉÆäËüÓÊÏ䣬163ºÜÔç×¢²áµÄ¡£¿ÉÒÔ·¢ËÍ¡£²éÁ˺ܾã¬Ã»ÓÐÕÒµ½ÔÒò£¬Çë¸ßÊÖ°ïæ½â´ð¡£¡£¡£Ð¡µÜ£¬Ð»ÁË¡£¡£´úÂëÈçÏ£º
private void SendMail ......
ÎÒÒ²À´Ò»¸öȤζjavascript:
´ò¿ªÒÔÏÂhtmlÎļþ,ÒÀ´Î°´ÏÂG,L,CÈý¸ö¼ü,¾Í»áÓÐÆæ¼£³öÏÖ!!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" ......
СµÜ¸ãASP.NETÒ²¿ì2ÄêÁË
µ«ÊǼܹ¹ÎÊÌâÒ»Ö±¶¼ÊÇÓõıðÈ˼ܹ¹ºÃµÄ
Ò»Ö±Ïë×Ôѧ¼Ü¹¹
ÓнéÉܺÃÊéµÄû£¿
´ó¼ÒÒ»Æð·ÖÏí¹þ
¸Ð¼¤²»¾´°¡
sf
ÏÈѧ»ù±¾µÄ°É¡¶Äã±ØÐëÖªµÀµÄ.NET¡·
ѸÀ×ÉÏ¿ÉÒÔϵġ£
Äã±Ø ......