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ÖÐÔÚµã»÷°´Å¥ºó½«¸Ã°´Å¥ÉèΪ²»¿ÉÓõÄÈô¸ÉÇé¿ö
ÏîÄ¿Öо³£³öÏÖÓû§Öظ´Ìá½»µÄÇé¿ö£¬ÎªÁË·ÀÖ¹ÕâÖÖÇé¿ö£¬×î³£Óõķ½·¨¾ÍÊÇÔÚÓû§µã»÷°´Å¥ºó½«¸Ã°´Å¥ÉèΪ²»¿ÉÓ㬱ÊÕßÔÚʵ¼Ê¿ª·¢µ±ÖÐÓöµ½Á˶àÖÖ²»Í¬µÄÇé¿ö£¬ÔÚ´Ë×ö¸öС½á£¬ÒÔ¹©²Î¿¼¡£
µÚÒ»ÖÖÇé¿öÊÇ·ÇsubmitÀàÐ͵İ´Å¥
ÕâÖÖÇé¿ö±È½Ï¼òµ¥£¬Ö»ÒªÔÚ¿Í»§¶ËÌí¼ÓÊ ......
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¿ª·¢ÖеĻù´¡ÎÊÌ⣬һ°ã²ÉÓÃÏà¶Ô·¾¶»á³öÏÖÕâÑùµÄÎÊÌ⣬»òÕßÑùÊ ......
¶¼ÖªµÀÔÚ¿Í»§諯ʹÓõ¯³ö¿òµÄÊDz»ÄÜÓÃMesssageBoxÀ´ÊµÏÖµÄ.
Ò»°ã¶¼Ê¹ÓÃÒÔϼ¸ÖÖ·½·¨.
1) Button.Attributes.Add("onclick","javascript:return confirm('È·¶¨?');");
ÕâÖÖ·½·¨..ÏÖÔÚʹÓÃ×îµÄ¶à..
ÔÚwww.csdn.netÀïÓÐÒ»ÎÄÕ¾ͺܺÃ.
http://www.csdn.net/Develop/Read_Article.asp?Id=20892 ......
ÍøÂç´òÓ¡¸ÅÊö
¡¡¡¡• B/S½á¹¹µ¼ÖÂÁËWebÓ¦ÓóÌÐòÖдòÓ¡µÄÌØÊâÐÔ¡£
¡¡¡¡• ³ÌÐòÔËÐÐÔÚä¯ÀÀÆ÷ÖУ¬´òÓ¡»úÔÚ±¾µØ£¬¶øÎļþÈ·¿ÉÄÜÔÚ·þÎñÆ÷ÉÏ£¬µ¼ÖÂÁË´òÓ¡¿ØÖƲ»ÊǺÜÁé»î¡£
¡¡¡¡• ¸ñʽÈçºÎ¿ØÖƺͶ¨ÖƵȣ¬ÊÇÎÒÃÇ¿ª·¢ÖпÉÄÜ»áÃæ¶ÔµÄÎÊÌâ¡£
¡¡¡¡´òÓ¡ÎĵµµÄÉú³É
¡¡¡¡• 1¡¢¿Í»§¶Ë½Å±¾·½Ê½
¡¡¡¡Ò»°ãÇé¿öÏ£¬Ö÷ÒªÊ ......