Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

2.ASP.NET AJAx¼Ü¹¹

ÍêÕû´úÂëÈçÏ£º02_ClientCentric.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="02_ClientCentric.aspx.cs" Inherits="ClientCentric" %>
<!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 runat="server">
<title>Client-Centric Example</title>
</head>
<body>
<form id="form1" runat="server">
<h3>¿Í»§¶ËΪÖÐÐĵĽâ¾ö·½°¸¡¾Ê¹ÓÃweb·þÎñʵÏÖ¡¿</h3>
Ìí¼ÓÒ»¸öScriptManager¿Ø¼þ£¬È»ºó»¹ÒªÉùÃ÷Ò»¸ö·þÎñÒýÓÃÖ¸Ïò±¾µØweb·þÎñ£¬´Ó¶øÉú³É·þÎñµÄJavaScript´úÀí£¬<br />
ÕâÑù¾Í¿ÉÒÔÔÚ¿Í»§¶Ë½Å±¾Öе÷ÓÃÕâ¸ö·þÎñÁË¡£

<!--Ôö¼ÓÒ»¸ö·þÎñÒýÓÃÀ´Éú³ÉJavaScript´úÀí-->
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="HRService.asmx" />
</Services>
</asp:ScriptManager>
<h2>Employee Lookup</h2>
<div>
<select id="Departments" size="5">
<option value="Engineering" >Engineering</option>
<option value="HR">Human Resources</option>
<option value="Sales">Sales</option>
<option value="Marketing">Marketing</option>
</select>
</div>

<br />
<div>
<span id="employeeResults"></span>
<span id="loading" style="display:none;" mce_style="display:none;">
<img src="images/indicator.gif" mce_src="images/indicator.gif" alt="" />
  Loading ...
</span>
</div>
<mce:script type="text/javascript"><!--

var departments = null;
//×¢²á¼ÓÔØ£¨load£©ºÍжÔØ£¨unload£©Ê¼þ
Sys


Ïà¹ØÎĵµ£º

ASP.NETÈçºÎµ¼³öexcel£¨Ò»£©

 Ô­ÎÄ£ºÁõÎä|ASP.NETÈçºÎµ¼³öexcel£¨Ò»£©
ASP.NETÖе¼³öexcelµÄ·½·¨ºÜ¶à£¬×î¼òµ¥µÄ¾ÍÊÇÀûÓ÷þÎñÆ÷¿Ø¼þµÄRenderControl·½·¨£¬Ëû¿ÉÒÔ°Ñ·þÎñÆ÷¿Ø¼þµÄÄÚÈÝ×÷ΪÁ÷Êä³öµ½¿Í»§¶Ë£¬¿ÉÒÔÓø÷½·¨Êä³öÕû¸öÒ³Ã棬Ҳ¿ÉÒÔÊä³öµ¥¶ÀµÄ¿Ø¼þ¡£µ¥±ØÐë×¢ÒâʹÓø÷½·¨Ê±±ØÐëÖØÔØ VerifyRenderingInServerForm º¯Êý£¬·ñÔò¾Í»á³ö´í¡£ÒÔÏÂÊÇ ......

ÔÚasp.net webserviceÖÐÈçºÎʹÓÃsession

Ô­ÎÄ£ºÁõÎä|ÔÚasp.net webserviceÖÐÈçºÎʹÓÃsession  
ÔÚʹÓÃasp.net±àдwebserviceʱ£¬Ä¬ÈÏÇé¿öÏÂÊDz»Ö§³ÖsessionµÄ£¬µ«ÎÒÃÇ¿ÉÒÔ°ÑWebMethodµÄEnableSessionÑ¡ÏîÉèΪtrueÀ´ÏÔʽµÄ´ò¿ªËü£¬Çë¿´ÒÔÏÂÀý×Ó£º
1 н¨ÍøÕ¾WebSite 
2 н¨web·þÎñWebService.asmx£¬Ëü¾ßÓÐÒÔÏÂÁ½¸ö·½·¨£º
C#-Code:
[WebMe ......

ASP.NETÖÐÈçºÎµ¯³öÒ»¸öÏûÏ¢¿ò(ת)

¶¼ÖªµÀÔÚ¿Í»§諯ʹÓõ¯³ö¿òµÄÊDz»ÄÜÓÃMesssageBoxÀ´ÊµÏÖµÄ.
Ò»°ã¶¼Ê¹ÓÃÒÔϼ¸ÖÖ·½·¨.
1)    Button.Attributes.Add("onclick","javascript:return confirm('È·¶¨?');");
ÕâÖÖ·½·¨..ÏÖÔÚʹÓÃ×îµÄ¶à..
ÔÚwww.csdn.netÀïÓÐÒ»ÎÄÕ¾ͺܺÃ.
http://www.csdn.net/Develop/Read_Article.asp?Id=20892 ......

ASP.NETÖÐÒ³Ãæ´«Öµ £¨´«Í³·½·¨£©

Ò»¡¢Ä¿Ç°ÔÚASP.NETÖÐÒ³Ãæ´«Öµ¹²ÓÐÕâô¼¸ÖÖ·½Ê½£º
1¡¢±íµ¥Ìá½»£¬
   <form action= "target.aspx" method = "post" name = "form1">
 <input name = "param1" value = "1111"/>
 <input name = "param2" value = "2222"/>
   </form>
   ....
&nbs ......

ASP.NETÒ³ÃæÌøתµÄ¼¸ÖÖ·½·¨(תÔØ)

<a>±êÇ©
1.         <a href=”test.aspx”></a>
2.         ÕâÊÇ×î³£¼ûµÄÒ»ÖÖתÏò·½·¨;
HyperLink¿Ø¼þ
1.         Asp.net ·þÎñÆ÷¶Ë¿Ø¼þ ÊôÐÔNavigateUrlÖ¸¶ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ