ÈçºÎ°²×°Ó벿Êðasp.netÍøÕ¾
ÈçºÎ¸øAsp.Net ÍøÕ¾ÏîÄ¿´ò°ü
1¡¢´ò¿ªÄãµÄÏîÄ¿£¬ÔÚ<½â¾ö·½°¸¹ÜÀíÆ÷>ÖÐÓÃÊó±êÓÒ»÷ÄãµÄ<½â¾ö·½°¸>£¬Ñ¡Ôñ<Ìí¼Ó>-<н¨ÏîÄ¿>¡£
2¡¢<Ìí¼ÓÐÂÏîÄ¿>¶Ô»°¿òÖÐÑ¡Ôñ<°²×°ºÍ²¿ÊðÏîÄ¿>-<web°²×°ÏîÄ¿>¡££¨×¢Ò⣺<web°²×°ÏîÄ¿>µÄ´æ·Å·¾¶¡££©
3¡¢vs.net µÄ´°¿Ú×ó²à»áÏÔʾ<Îļþϵͳ£¨ÄãµÄ Web °²×°ÏîÄ¿Ãû³Æ£©>¡£ÓÃÊó±êÓÒ¼üÑ¡ÖÐ<Web Ó¦ÓóÌÐòÎļþ¼Ð>£¬Ñ¡Ôñ<Ìí¼Ó>-<ÏîÄ¿Êä³ö>£¬ÔÚµ¯³öµÄ<Ìí¼ÓÏîÄ¿Êä³ö×é>ÖÐͬʱѡÖÐ<Ö÷Êä³ö>ºÍ<ÄÚÈÝÎļþ>¡££¨×¢Ò⣺¿É¸ù¾Ý×Ô¼ºÐèҪѡÔñ¡££©
4¡¢ÄãµÄ½â¾ö·½°¸ÖлáÐÂÔöÒ»¸öÄãµÄ Web °²×°ÏîÄ¿Ãû³ÆµÄ¹¤³Ì£¬¾ÍÊÇ°²×°µÄÏîÄ¿¡£±£´æһϣ¬ÓÐʱ»á³ö´í¡£
5¡¢Èç¹ûÄãÓÃÁËcrystal report£¬¾ÍÒªÌí¼Ó crystal reprot µÄÖ§³ÖÎļþ¡£ÔÚ½â¾ö·½°¸×ÊÔ´¹ÜÀíÆ÷ÖУ¬ÓÒ»÷YouSetup project(ÄãµÄ°²×°ÏîÄ¿Ãû)£¬Ñ¡ÖÐ"Ìí¼ÓºÏ²¢Ä£¿é"£¬ÔÚ´°¿ÚÖÐÕÒµ½£¬²¢Ñ¡ÖÐC:\Program Files\Common Files\Merge Modules\DotNETCrystalReports.msm, ´ò¿ª£¬¾Í¼ÓÈëÁË£»
6¡¢ÓÒ¼üÑ¡ÖÐ<Web Ó¦ÓóÌÐòÎļþ¼Ð>£¬Ñ¡ÖÐÊôÐÔ´°¿Ú¡£ÔÚÊôÐÔ´°¿ÚÖУ¬½«<DefaultDocument>ÉèÖÃΪ"ÄãµÄĬÈϵǼҳ"¼´"Æðʼҳ"£¬
7¡¢Ñ¡ÖÐÄãµÄ Web °²×°ÏîÄ¿Ãû³ÆµÄ¹¤³Ì£¬°´ÓÒ¼ü£¬Ñ¡ÖÐ<Éú³É>;
8¡¢È»ºó£¬ÔÚÄãµÄ Web °²×°ÏîÄ¿µÄ´æ·Å·¾¶Ï»áÓÐÒ»¸öÄãµÄ Web °²×°ÏîÄ¿Ãû³ÆµÄÎļþ¼Ð£¬ÏÂÃ滹ÓÐÒ»¸ö debug µÄÎļþ¼Ð£¬ÄãÒªµÄ¾ÍÊÇdebugÏÂÃæµÄËùÓÐÎļþ¡£
9¡¢½« debug Îļþ¼ÐϵÄÎļþ¿½µ½ÄãÒª°²×°µÄ»úÆ÷ÉÏ£¬È»ºó°²×°¾Í¿ÉÒÔÁË¡£
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/david_520042/archive/2008/07/25/2710059.aspx
Ïà¹ØÎĵµ£º
´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var obj = event.s ......
¼òµ¥¾ÍÏÂÔÚ.NET¿ª·¢ÍøÕ¾ÖÐÒýÓÃwebservice²¢ÇÒ·¢²¼µ½·þÎñÆ÷µÄ×ö·¨£¬ÕâÀï²»½ØͼÁË¡£
1¡¢ÔÚÍøÕ¾ÏîÄ¿ÉÏ£¬ÓÒ¼ü-->Ìí¼ÓwebÒýÓà £¬½«webÒýÓõĵØÖ·Õ³Ìù£¬ÀýÈç http://192.168.14.222:6666/IbeBaseWebServicePublicWeb/IbeJourneyOdd.asmx
2¡¢¸øwebserviceÆð±ðÃû£¬Ò²¾ÍÊÇÒÔºóÄãµ÷ÓõÄÃüÃû¿Õ¼ä ÀýÈçIbeJourneyOdd
ÕâÑùÔ ......
ÓÉÓÚ asp.net ajax ·â×°Á˺ܶàºÜºÃµÄ·½·¨£¬ËùÒÔʹÓÃÕâ¸ö¿ò¼Üµ÷ÓÃwebwervice±äµÄ·Ç³£¼òµ¥¡£
µÚÒ»²½
webservice ÀàµÄ·½·¨ÐèÒªÓÐscriptServiceµÄ attribute.
namespace ServiceTest
{
/// <summary>
///WebService µÄժҪ˵Ã÷
/// </summary>
[WebService(Namespace = "http://tem ......
µÚÒ»²½£º
½«Ä³¸öÒ³ÃæµÄ·½·¨ ÓÐ webmethod attribute;
[WebMethod]
//Ö»ÄÜÊÇ public static µÄ·½·¨
public static DateTime GetCurrentTime()
{
return DateTime.UtcNow;
}
µÚ¶þ²½£º
Ò³ÃæÓÐÒ»¸öScriptManager ÉèÖÃËüµÄenablepagemethod=true;
asp:ScriptManager ID="Scri ......
What is ASP.NET
ASP.NET is a unified Web development model that includes the services necessary for you to build enterprise-class Web applications with a minimum of coding. ASP.NET is part of the .NET Framework, and when coding ASP.NET applications you have access to classes in the .NET Frame ......