ÔÚASP.NETÖÐIsPostBackÊÇʲôÒâ˼°¡£¿
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
this.Literal1.Text = "ÄúÏÖÔÚµÄÓà¶îΪ" + Account.ToString() + "Ôª";
}
ÔõôÑùÀí½âif (!IsPostBack)°¡£¿
ÏÈÀí½âÏÂʲôÊÇÒ³Ãæ»Ø´«°É
ºÃµÄ£¬¶¥Ò»ÏÂ
IsPostBack¡¡Õâ¸ö¶«Î÷¾ÍÊÇÅжÏÒ³ÃæÊÇ·ñ³õ´Î¼ÓÔصÄ,Ö±½Óˢе±Ç°Ò³ÃæÒ²²»»áÖ´ÐÐifÀïÃæµÄÓï¾ä¡£ÒªÓõ½Õâ¸ö»Ø´«µÄ£¬»¹²»ÈçÓÃajaxʵÏÖ£¬ÕâÑù¸ü¼ÓÖ±¹Û¡£¡£¡£¡£¡£¡£
ÊÇ·ñÊ״α»¼ÓÔØ¡¢
ÄãºÃÕâÀïÊÇASPרÇø°É¡£¡£¡£
Â¥Éϼ¸Î»ÒѾ»Ø´ðµÄºÜÇå³þÁË£¬
Ïà¹ØÎÊ´ð£º
ллÁË£¬¸ßÊÖÃÇ¿ìÀ´°¡~
¹À¼Æû²å¼þʲôµÄ²»Ðаɡ£
ÎÒÒ²Òª лл¸÷λ·¢ÎÒÒ»·Ýliujintaohfbb@163.com
ллÁË Ò»¶¨Òª·¢ÎÒ°¡
¶÷ÕÒµ½ÁË,±ðÍüÁ˶
401533349@163.com
http://download.csdn.n ......
ÓÉÓÚÒ»´ÎÔÚdebugģʽÏÂÐÞ¸ÄÁËasp.netÖÐÒ³ÃæµÄ´úÂ룬(ÎÒÊÇÓÃIIS½øÐе÷ÊÔµÄ)²¢½øÐÐÁËÏîÄ¿ÎļþµÄÌæ»»£¬Ò²²»ÖªµÀÊDz»ÊÇÕâ¸öÔÒò¡£µ¼ÖÂÎÒÔÚÏÂÒ»´Î±àÒëµÄʱºò£¬Ìáʾ³ö´í£º/xxx/xxx.aspx , /xxx/xxx.cs ÎļþÕÒ²»µ½¡£
ÎÒ¾ ......
asp.netÔõÑùÁ¬½ÓÊý¾Ý¿â°¡£¿»¹ÐèʹÓÃVB.NET±à³Ì£¿
¿´¿´ADO.NET°É£¬ÕâÊǺËÐÄ
ÔÚWeb.configÖÐдÁ¬½Ó×Ö·û´®£¬ÄãÔÚÀàÀïдҲÐÐ
ллÀ²£¬ÎһῴµÄ¡£
²»ÐèʹÓÃVB.NET±à³Ì£¬ÐèÒªADO.net
·½·¨Óкܶ࣬×Ô¼ ......
asp.netÖÐAÁ´½Ó´«ÖÐÎÄÖµ£¬½ÓÊÕʱÂÒÂ룡
ÔÚÓÐЩµçÄÔÉÏÄÜÕý³£½ÓÊÕ£¬µ«ÓÐЩµçÄÔÉÏÈ´²»ÄÜÕý³£½ÓÊÕ£¬
ÇëÎʸ÷λÓÐûÓÐʲô·½·¨£¿
ÓÃsession£¬»òÕ߸ü¸Ä±àÂ룬
default.aspx
C# code:
this.Redirec ......
»¶ÓÄú£º*****|Í˳ö|µÇ¼ע²á|
ÂïÒâ˼?
and the question?
just ajax, display the username
or then this is must be the ascx.webcontrol, location.href it display is ok.
µ±»áÔ±µÇ½ʱ£¬»áÏÔʾÓà ......