asp.net ajax ÀàÐÍϵͳdemo
<mce:script language=javascript><!--
//×¢²áÃüÃû¿Õ¼ä
Type.registerNamespace("Demo");
Demo.Message=function(content,publishTime)
{
this._content = content;
this._publishTime = publishTime;
}
Demo.Message.prototype=
{
get_content: function()
{
return this._content;
},
get_publishTime: function()
{
return this._publishTime.format("yyyy-MM-dd HH:mm:ss");
},
toString: function()
{
return this.get_content() + " " + this.get_publishTime();
}
}
//×¢²áÀà
Demo.Message.registerClass("Demo.Message");
Demo.IContent=function()
{
}
Demo.IContent.prototype
{
showContent:function()
{}
}
//×¢²á½Ó¿Ú
Demo.IContent.registerInterface("Demo.IContent");
Demo.MessageWithUserId = function(userId, content, publishTime)
{
Demo.MessageWithUserId.initializeBase(this, [content, publishTime]);
this._userId = userId;
}
// ¶¨ÒåDemoÃüÃû¿Õ¼äϵÄMessageWithUserIdÀàµÄ·½·¨
Demo.MessageWithUserId.prototype =
{
get_userId: function()
{
return this._userId;
},
showContent: function()
{
return Demo.MessageWithUserId.callBaseMethod(this, 'get_content')
},
// callBaseMethodÓÃÓÚµ÷ÓûùÀàµÄ·½·¨
toString: function()
{
return this.get_userId() + " " + Demo.MessageWithUserId.callBaseMethod(this, 'toString');
}
}
// ×¢²áÒ»¸ö¼Ì³Ð×ÔDemo.MessageÀàºÍDem
Ïà¹ØÎĵµ£º
11. ½«µ÷ÓÃÃܼ¯Ð굀 COM ×é¼þÇ¨ÒÆµ½ÍйܴúÂë ¡¡¡¡
.NET Framework ÌṩÁËÒ»¸ö¼òµ¥µÄ·½·¨Ó봫ͳµÄ COM ×é¼þ½øÐн»»¥¡£ÆäÓŵãÊÇ¿ÉÒÔÔÚ±£ÁôÏÖÓÐͶ×ʵÄͬʱÀûÓÃÐÂµÄÆ½Ì¨¡£µ«ÊÇÔÚijЩÇé¿öÏ£¬±£Áô¾É×é¼þµÄÐÔÄÜ¿ªÏúʹµÃ½«×é¼þÇ¨ÒÆµ½ÍйܴúÂëÊÇÖµµÃµÄ¡£Ã¿Ò»Çé¿ö¶¼ÊDz»Ò»ÑùµÄ£¬¾ö¶¨ÊÇ·ñÐèÒªÇ¨ÒÆ×é¼þµÄ×îºÃ·½·¨ÊÇ¶Ô Web Õ ......
16. Êʵ±µØÊ¹Óù«¹²ÓïÑÔÔËÐпâµÄÀ¬»ø»ØÊÕÆ÷ºÍ×Ô¶¯ÄÚ´æ¹ÜÀí ¡¡¡¡
СÐIJ»Òª¸øÃ¿¸öÇëÇó·ÖÅä¹ý¶àÄڴ棬ÒòΪÕâÑùÀ¬»ø»ØÊÕÆ÷½«±ØÐë¸üƵ·±µØ½øÐиü¶àµÄ¹¤×÷¡£ÁíÍ⣬²»ÒªÈò»±ØÒªµÄÖ¸ÕëÖ¸Ïò¶ÔÏó£¬ÒòΪËüÃǽ«Ê¹¶ÔÏ󱣳ֻ״̬£¬²¢ÇÒÓ¦¾¡Á¿±ÜÃ⺬ Finalize ·½·¨µÄ¶ÔÏó£¬ÒòΪËüÃÇÔÚºóÃæ»áµ¼Ö¸ü¶àµÄ¹¤×÷¡£ÌرðÊÇÔÚ Finalize µ÷ÓÃÖ ......
21. Ö»ÔÚ±ØÒªÊ±±£´æ·þÎñÆ÷¿Ø¼þÊÓͼ״̬ ¡¡¡¡
×Ô¶¯ÊÓͼ״̬¹ÜÀíÊÇ·þÎñÆ÷¿Ø¼þµÄ¹¦ÄÜ£¬¸Ã¹¦ÄÜʹ·þÎñÆ÷¿Ø¼þ¿ÉÒÔÔÚÍù·µ¹ý³ÌÉÏÖØÐÂÌî³äËüÃǵÄÊôÐÔÖµ(Äú²»ÐèÒª±àдÈκδúÂë)¡£µ«ÊÇ£¬ÒòΪ·þÎñÆ÷¿Ø¼þµÄÊÓͼ״̬ÔÚÒþ²ØµÄ´°Ìå×Ö¶ÎÖÐÍù·µÓÚ·þÎñÆ÷£¬ËùÒԸù¦ÄÜȷʵ»á¶ÔÐÔÄܲúÉúÓ°Ïì¡£ÄúÓ¦¸ÃÖªµÀÔÚÄÄЩÇé¿öÏÂÊÓͼ״̬»áÓÐËù°ïÖú£¬ÔÚÄÄÐ ......
ÎÒµÄÀí½âprofile¾ÍÊÇͨ¹ýÎÒÃDZàдµÄÅäÖÃÎļþ ×Ô¶¯µÄÔÙÊý¾Ý¿âÖб£´æÎÒÃÇÐèÒªµÄÊý¾Ý¡£
ÕâÊÇÒ»¸ö¼òµ¥µÄÅäÖãº
<profile automaticSaveEnabled="true" defaultProvider="sqlprocider">
<providers>
<add name="sqlprocider" type="Syste ......
ÈçºÎÔËÓà Form ±íµ¥ÈÏÖ¤
ASP.NET µÄ°²È«ÈÏÖ¤£¬¹²ÓГWindows”“Form”“Passport”“None”ËÄÖÖÑé֤ģʽ¡£“Windows”Óë“None”ûÓÐÆðµ½±£»¤µÄ×÷Ó㬲»ÍƼöʹÓ㻓Passport”ÎÒÓÖûÓùý£¬°¦……ËùÒÔÎÒÖ»ºÃ½²½²“Form”ÈÏ ......