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

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


Ïà¹ØÎĵµ£º

ASP.NETµ÷ÓÃjavascript½Å±¾µÄ·½·¨

1¡¢Ö±½ÓÔÚǰ̨µ÷Óà javascript º¯Êý
ºÜ¼òµ¥,ÔÚ head ÔªËØÖ®¼ä¼ÓÈë script ÔªËØ,½« type ÔªËØÉèÖÃΪ " text/javascript "
Èç:
<head runat="server">
<script type="text/javascript" >
function ShowName(str)
{
alert("ÄúµÄÃû×ÖΪ:("+str+")");
}
</script>
    <title> ......

ASP.NETÖÐCheckBoxµÄʹÓÃ

 Ò»¡¢Ôõô½«CheckBoxµÄÖµ´æ´¢ÔÚÊý¾Ý¿âÖУ¬¼´Ò»¸öCheckBox±»Ñ¡¶¨ºó£¬ÈçºÎÔÚÊý¾Ý¿âÖбíʾÕâÖÖÑ¡¶¨£¿
Ê×ÏÈÔÚÊý¾Ý¿âÖж¨Ò弸ÁÐbitÀàÐ͵ÄÊý¾ÝÁУ¬ÓÃÀ´±íʾij¸öCheckBoxÊÇ·ñ±»Ñ¡¶¨£¬Êý¾Ý¿âÖеÄֵΪtrue»òfalse.
ǰ̨´úÂ룺
    ÊÇ·ñÍÆ¼ö£º<asp:CheckBox ID="IsRecommend" runat="server" />
  ......

ת½ÌÄãѧASP.net£ºasp.netѧϰ·½·¨¡¢Á÷³Ì

Èç¹ûÄãÒѾ­Óн϶àµÄÃæÏò¶ÔÏ󿪷¢¾­Ñé£¬Ìø¹ýÒÔÏÂÕâÁ½²½£º
µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ¡£NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó£¨OO£©ÓïÑÔµÄǰÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ²»ÏÂÈ¥£¡
µÚ¶þ²½¡¡¶Ô¡£NET FrameworkÀà¿âÓÐÒ»¶¨µÄÁ˽⠿ÉÒÔͨ¹ý¿ª·¢Windows FormÓ¦ÓóÌÐòÀ´Ñ ......

AJAXС½á

Ô­³ö´¦:http://blog.163.com/zwx_gis/blog/static/32434435200971072634757/
Web±à³ÌÏà¹Ø   2009-08-10 19:26   ÔĶÁ15   ÆÀÂÛ0  
 
Ajax (Asynchronous JavaScript and XML) ÊǶàÖÖ¼¼ÊõµÄ¼¯ºÏ£¬°üÀ¨JavaScript¡¢XHTML¡¢CSS¡¢DOM¡¢XML¡¢XSTL¡¢XMLHttpRequestµÈ£¬ÆäÖÐXHTM ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ