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

asp.net ·þÎñÆ÷¶Ë¿Ø¼þÖÐ µ¯³ö¶Ô»°¿ò ²Ù×÷

HTML´úÂ룺
<script language="javascript" event="onclick" for="ImageButton1">
 return confirm('È·¶¨Òª±£´æ±ä¸üÂð£¿');//·µ»Øfalseʱ²»Ö´ÐÐImageButton1_Click·½·¨£¬·µ»ØtureʱִÐÐImageButton1_Click·½·¨
</script> 
 <asp:ImageButton ID="ImageButton1" runat="server" ImageAlign="AbsMiddle" ImageUrl="images/accept.gif" OnClick="ImageButton1_Click" />
C#´úÂ룺
/// <summary>
    /// ±£´æ
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        
        string i = SaveData();
        if (i == "1")
        {
            this.HidSaveTorF.Value = "1";
        }
        else
        {
            this.HidSaveTorF.Value = "-1";
        }
    }


Ïà¹ØÎĵµ£º

ASP.NET²Ù×÷web.config

      ASP.NET¿ÉÒÔÀûÓÃWebConfigurationManagerºÍÖ±½ÓÀûÓÃXML·½Ê½²Ù×÷web.config,WebConfigurationManager±È½Ï¼òµ¥£¬µ«ÊÇÇå³ý×¢ÊÍ´úÂë¡£Á½Õß²Ù×÷·½Ê½¶¼ÐèÒªÓÐдȨÏÞ¡£
      ·½·¨Ò»£¬ÀûÓÃWebConfigurationManager£¬ÐèÒªÒýÓÃSystem.Web.Configuration.WebConfigurationM ......

Asp.net AJAX Web Serviceд·¨²îÒì

ÔÚC#ÖÐ
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Script.Services;
using System.Collections.Generic;
using System.Collections;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.Ba ......

ÔÚASP.NETÖÐʹÓÃË®¾§±¨±í

      Ê×ÏÈÃèÊöÒ»ÏÂÎÊÌâ:ÒòΪ¿Í»§µÄÐèÒª,°ÑËùÓжÔÓÚÊý¾Ý¿âµÄ²Ù×÷×ö³ÉÁË´æ´¢¹ý³Ì,ͬʱҲ´æÔÚ´øÓÐÊäÈë²ÎÊýµÄ´æ´¢¹ý³Ì.¿Í»§ÒªÇó½«ËùÓеÄÐÅÏ¢¶¼¿ÉÒÔÓÃË®¾§±¨±íÏÔʾ.ÎÒÃǶ¼ÖªµÀ,ҪʹÓÃË®¾§±¨±íÎÒÃǾÍҪʹÓÃÊý¾ÝÔ´µÄ.ÔÚÕâÀï,ÎÒÃÇʹÓõÄÊý¾ÝÔ´×ÔÈ»¶øÈ»Ò²¾ÍÊÇ´æ´¢¹ý³ÌÁË.µ±È»,ÎÒÃÇÒ²ÊÇÖªµÀµÄ,ÔÚADO.NETµÄÁ ......

Asp.NetÓëSEO ViewstateÓÅ»¯ÖÕ¼«½â¾ö·½°¸

Õâ¶Îʱ¼ä,ÀÏ´óÔÚ¿´ÁËÍøÕ¾ºó,·¢ÏÖviewstateËù²úÉúµÄÒ»¶ÑÂÒÂ룬ÑÏÖØÓ°ÏìÁËÎÒÃÇÍøÕ¾http://www.xbcar.net Î÷²¿Æû³µÍøµÄ´ò¿ªËٶȺÍËÑË÷ÒýÇæµÄץȡ£®¾Í¸øÎÒÏÂÁ˵ÀÌúÁÈýÌìÄÚ±ØÐë½â¾ö£®ÕâϸÃÂÖµ½ÎÒÍ·´óÁË£¬ 
 
ÀýÈ磺
input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="dEV4cHJlc3Npb247UmVhZE9ub ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ