asp.netʵÏÖÊ¡ÊÐÇø¼¶ÁªÏÂÀÁÐ±í²¢±£´æ״̬
asp.netʵÏÖÊ¡ÊÐÁª¶¯²¢ÇÒ±£´æ״̬£¬ÊµÏÖÔÀí£º³õ´ÎʹÓÃC#´«Í³µÄDataBind½øÐÐÊý¾Ý°ó¶¨£¬Ñ¡ÔñÊ¡£¬Êкó½øÐÐajax·½Ê½¼ÓÔØϼ¶ÁÐ±í£¬²¢½«Ñ¡¶¨Öµ±£´æµ½HiddenÖУ¬µã»÷Ìá½»ºó¸ù¾ÝHiddenµÄÖµ½øÐÐÊ¡£¬Êа󶨣¬ÔÙ½«HiddenµÄÖµ¸³¸øDropDownListµÄSelectedValue£¬´Ó¶øʵÏÖ״̬µÄ±£´æ¡£
HTML´úÂë
<asp:HiddenField ID="HiddenFieldShiAreaId" runat="server" />
<asp:HiddenField ID="HiddenFieldQuAreaId" runat="server" />
<asp:HiddenField ID="HiddenAreaId" runat="server" />
<span class="searchDivP">ѧÉúÊ¡ÊУº</span>
<asp:DropDownList ID="DropDownListSheng" runat="server">
</asp:DropDownList>
<asp:DropDownList ID="DropDownListShi" runat="server">
</asp:DropDownList>
<asp:DropDownList ID="DropDownListQu" runat="server">
</asp:DropDownList>
javascript´úÂ루´Ë´¦Ê¹ÓÃjQuery£©
$(document).ready(function() {
$("#DropDownListSheng").change(function() {
var buxianstr = "<option selected=\"selected\" value=\"0\">²»ÏÞ</option>";
loadArea("DropDownListShi", this.value);
});
$("#DropDownListShi").change(function() {
var areaid = this.value;
loadArea("DropDownListQu", this.value);
$("#HiddenFieldShiAreaId").val(areaid);
});
$("#DropDownListQu").change(function() {
$("#HiddenFieldQuAreaId").val(this.value);
});
});
function loadArea(objid, areaid) {
$.ajax({
type: "POST",
url: "../Friend/Friend.aspx?action=getshi",
dataType: "json",
data: "areaid=" + areaid,
success: function(msg) {
var shiHtml = "";
var selectstr = "";
shiHtml += "<op
Ïà¹ØÎĵµ£º
ÔÎÄ£ºÁõÎä|ASP.NETÈçºÎµ¼³öexcel£¨Ò»£©
ASP.NETÖе¼³öexcelµÄ·½·¨ºÜ¶à£¬×î¼òµ¥µÄ¾ÍÊÇÀûÓ÷þÎñÆ÷¿Ø¼þµÄRenderControl·½·¨£¬Ëû¿ÉÒÔ°Ñ·þÎñÆ÷¿Ø¼þµÄÄÚÈÝ×÷ΪÁ÷Êä³öµ½¿Í»§¶Ë£¬¿ÉÒÔÓø÷½·¨Êä³öÕû¸öÒ³Ã棬Ҳ¿ÉÒÔÊä³öµ¥¶ÀµÄ¿Ø¼þ¡£µ¥±ØÐë×¢ÒâʹÓø÷½·¨Ê±±ØÐëÖØÔØ VerifyRenderingInServerForm º¯Êý£¬·ñÔò¾Í»á³ö´í¡£ÒÔÏÂÊÇ ......
ÔÎÄ£ºÁõÎä|ÔÚasp.net webserviceÖÐÈçºÎʹÓÃsession
ÔÚʹÓÃasp.net±àдwebserviceʱ£¬Ä¬ÈÏÇé¿öÏÂÊDz»Ö§³ÖsessionµÄ£¬µ«ÎÒÃÇ¿ÉÒÔ°ÑWebMethodµÄEnableSessionÑ¡ÏîÉèΪtrueÀ´ÏÔʽµÄ´ò¿ªËü£¬Çë¿´ÒÔÏÂÀý×Ó£º
1 н¨ÍøÕ¾WebSite
2 н¨web·þÎñWebService.asmx£¬Ëü¾ßÓÐÒÔÏÂÁ½¸ö·½·¨£º
C#-Code:
[WebMe ......
20090626
javascriptµ÷Óø¸´°¿Ú£¨¸¸Ò³Ã棩µÄ·½·¨
window.parentÓëwindow.openerµÄÇø±ð javascriptµ÷ÓÃÖ÷´°¿Ú·½·¨
1£º window.parent ÊÇiframeÒ³Ãæµ÷Óø¸Ò³Ãæ¶ÔÏó
2£º window.opener ÊÇwindow.open ´ò¿ªµÄ×ÓÒ³Ãæµ÷Óø¸Ò³Ãæ¶ÔÏó
¾ßÌåÀý×ӾͲ»Ð´ÁË¡£
DevExpress.Web¿Ø¼þÖеÄAspxButtonµ ......
תÔØ×Ô¡¾ÃÏ×ÓEÕ¡¿£ºhttp://blog.csdn.net/net_lover/archive/2007/08/27/1760521.aspx
¾³£ÓÐÈËÓöµ½ASP.NET 2.0£¨ASP.NET 1.xÖпÉÄÜÊÇÓÐЧµÄ£©ÖÐCSSʧЧµÄÎÊÌ⣬ÏÖ½«Ö÷ÒªÔÒòºÍ½â¾ö·½·¨ÂÞÁÐÈçÏ£º
1.CSSÎļþ·¾¶²»ÕýÈ·
Õâ¸öÎÊÌâÊôÓÚWeb¿ª·¢ÖеĻù´¡ÎÊÌ⣬һ°ã²ÉÓÃÏà¶Ô·¾¶»á³öÏÖÕâÑùµÄÎÊÌ⣬»òÕßÑùÊ ......
<a>±êÇ©
1. <a href=”test.aspx”></a>
2. ÕâÊÇ×î³£¼ûµÄÒ»ÖÖתÏò·½·¨;
HyperLink¿Ø¼þ
1. Asp.net ·þÎñÆ÷¶Ë¿Ø¼þ ÊôÐÔNavigateUrlÖ¸¶ ......