ASP.NET
ASP.NET ÅäÖÃÎļþ¹¦ÄÜÔÊÐíÄú´æ´¢¼òµ¥£¨±êÁ¿£©Öµ¡¢¼¯ºÏºÍÆäËû¸´ÔÓÀàÐÍ£¬ÒÔ¼°Óû§¶¨ÒåµÄÀàÐÍ¡£
1¡¢ÊôÐÔ¶¨ÒåÐÅÏ¢
ÔÚÅäÖÃÎļþÖж¨ÒåÊôÐÔʱ£¬Ó¦Ö¸¶¨½«ÓÃÓÚÒýÓøÃÊôÐÔµÄÃû³Æ¡£ÀýÈ磬Èç¹ûÒª´æ´¢ÓÊÕþ±àÂ룬Ôò¿ÉÒÔ½«ÊôÐÔÃüÃûΪ PostalCode£¬È»ºó¿ÉÒÔ»ñÈ¡ÊôÐÔÖµ²¢½«ÆäÉèÖÃΪ Profile.PostalCode¡£
¿ÉÒÔÑ¡ÔñΪ¸÷¸öÊôÐÔ¶¨ÒåÒÔϸ½¼ÓÌØÐÔ£º
·type Ö¸¶¨ÊôÐÔµÄÀàÐÍ¡£Ä¬ÈÏΪ String¡£¿ÉÒÔ½«ÈκΠ.NET ÀàÖ¸¶¨ÎªÀàÐÍ£¨Int32¡¢DateTime¡¢StringCollection µÈ£©¡£Èç¹û .NET Framework ÖÐûÓж¨Òå¸ÃÀàÐÍ£¬Ôò±ØÐëÈ·±£ Web Ó¦ÓóÌÐò¿ÉÒÔ·ÃÎʸÃÀàÐÍ¡£¿ÉÒÔÔÚÍøÕ¾µÄ Bin Ŀ¼ÖлòÈ«¾Ö³ÌÐò¼¯»º´æ (GAC) Öаüº¬¸ÃÀàÐͱàÒëºóµÄ³ÌÐò¼¯£¬Ò²¿ÉÒÔ½«¸ÃÀàÐ͵ÄÔ´´úÂë·ÅÈëÍøÕ¾µÄ App_Code Ŀ¼ÖС£
·serializeAs Ö¸¶¨ÐòÁл¯¸ñʽ»¯³ÌÐò£¨×Ö·û´®¡¢¶þ½øÖÆ¡¢XML »òÌṩ³ÌÐòÌض¨µÄÐòÁл¯£©¡£ÓйØÏêϸÐÅÏ¢£¬Çë²Î¼ûÐòÁл¯¡£Ä¬ÈÏÐòÁл¯Îª×Ö·û´®¡£
·allowAnonymous Ö¸¶¨Ò»¸ö²¼¶ûÖµ£¬¸Ã²¼¶ûֵָʾÊÇ·ñΪÄäÃûÓû§ÍйÜÊôÐÔ¡£Ä¬ÈÏÇé¿öÏ£¬¸ÃÊôÐÔΪ false¡£Èç¹ûÏ£Íûδ¾Éí·ÝÑéÖ¤µÄÓû§Ê¹ÓøÃÊôÐÔ£¬Ôò¿ÉÒÔ½«¸ÃÊôÐÔÉèÖÃΪ true¡£
·defaultValue Ö¸¶¨ÊôÐÔ³õʼ»¯Ê±Ê¹ÓõÄÖµ¡£
·readOnly Ö¸¶¨Ò»¸ö²¼¶ûÖµÀ´Ö¸Ê¾ÊôÐÔÊÇ·ñ¿ÉÐ޸ġ£
·provider Ö¸¶¨Ìض¨ÓÚÊôÐÔµÄÌṩ³ÌÐò¡£Ä¬ÈÏÇé¿öÏ£¬Ê¹ÓÃΪÅäÖÃÎļþÊôÐÔÖ¸¶¨µÄĬÈÏÌṩ³ÌÐò¶ÔËùÓÐÊôÐÔ½øÐйÜÀí£¬µ«¸ö±ðÊôÐÔÒ²¿ÉÒÔʹÓò»Í¬µÄÌṩ³ÌÐò¡£
·customProviderData Ö¸¶¨Ò»¸ö°üº¬×Ô¶¨ÒåÐÅÏ¢µÄ¿ÉÑ¡×Ö·û´®£¬¸Ã×Ö·û´®½«±»´«µÝ¸øÅäÖÃÎļþÌṩ³ÌÐò¡£¸÷¸öÌṩ³ÌÐò¿ÉʵÏÖ×Ô¶¨ÒåÂß¼À´Ê¹ÓôËÊý¾Ý¡£
´ËÍ⣬¿ÉʹÓà group ÅäÖÃÔªËؽ«ÅäÖÃÎļþÊôÐÔ×é֯ΪÊôÐÔ×飬±¾Ö÷ÌâºóÃæµÄÄÚÈݽ«ÌÖÂÛ¸ÃÎÊÌâ¡£
2¡¢Ê¹ÓñêÁ¿Öµ
½«±êÁ¿Öµ£¨Èç×Ö·û´®¡¢Êý×ÖÖµ»ò DateTime Öµ£©´æ´¢ÔÚÅäÖÃÎļþÖнöÐèÒª×îСÅäÖᣱØÐëÌṩÃû³ÆºÍÀàÐÍ¡£¸ù¾Ý´æ´¢ÒªÇó£¬ÅäÖÃÎļþϵͳ»á½«Öµ´ÓÖ¸¶¨ÀàÐÍת»»Îª×Ö·û´®²¢×ª»»»ØÀ´¡£Í¨¹ý Profile ÊôÐÔ·ÃÎÊÊôÐÔʱ£¬ÒªÕýÈ·½øÐÐÀàÐÍ»¯¡£
ÀýÈ磬Èç¹ûÒª´æ´¢Óû§µÄÐÕÃû¡¢ÌåÖغͳöÉúÈÕÆÚ£¬Ôò¿ÉÒÔ¶¨ÒåÒ»¸öÃûΪ Name¡¢ÀàÐÍΪ String µÄÊôÐÔ£¬Ò»¸öÃûΪ Weight¡¢ÀàÐÍΪ Int32 µÄÊôÐÔ£¬ÒÔ¼°Ò»¸öÃûΪ BirthDate¡¢ÀàÐÍΪ DateTime µÄÊôÐÔ¡£ÔÚÅäÖÃÎļþÖУ¬ÊôÐÔ¶¨ÒåµÄÐÎʽÈçÏ£º
<profile d
Ïà¹ØÎĵµ£º
¼òµ¥¾ÍÏÂÔÚ.NET¿ª·¢ÍøÕ¾ÖÐÒýÓÃwebservice²¢ÇÒ·¢²¼µ½·þÎñÆ÷µÄ×ö·¨£¬ÕâÀï²»½ØͼÁË¡£
1¡¢ÔÚÍøÕ¾ÏîÄ¿ÉÏ£¬ÓÒ¼ü-->Ìí¼ÓwebÒýÓà £¬½«webÒýÓõĵØÖ·Õ³Ìù£¬ÀýÈç http://192.168.14.222:6666/IbeBaseWebServicePublicWeb/IbeJourneyOdd.asmx
2¡¢¸øwebserviceÆð±ðÃû£¬Ò²¾ÍÊÇÒÔºóÄãµ÷ÓõÄÃüÃû¿Õ¼ä ÀýÈçIbeJourneyOdd
ÕâÑùÔ ......
WebjxComÌáʾ£ºÕâÀïÒ»¶¨ÒªÌí¼ÓWEB ÒýÓò˵¥²½ÖèÈçÏÂproject->add web reference...£¬È»ºóÊäÈëÎÒÃÇWeb ServiceµÄ·¾¶£¬ÕâÀïÊÇhttp://localhost/WebService1/Service1.asmx£¬µã»÷Ìí¼Ó¾ÍOKÁË¡£ÕâʱÄ㽫ÔÚÀàÊÓͼÖп´µ½localhostÃüÃû¿Õ¼äÁË¡£
ÕâÀïÒ»¶¨ÒªÌí¼ÓWEB ÒýÓò˵¥²½ÖèÈçÏÂproject->add web reference...£¬È»ºóÊä ......
ѧϰJQueryʱ£¬·¢ÏÖJQueryÖ»ÄÜ×öµ¥ÐÐÍÏ·Å£¬ ÓÚÊÇ»¨Ê±¼ä×öÁËÒ»¸ö¶àÐÐÍϷŵÄÀý×Ó£¬ ÒÔ±¸ÒÔºóʹÓá£
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="jquery-1.3.2.js"></scri ......
//ÔÚµ±Ç°Ò³ÖйرÕ
Response.Write("<Script>window.opener.opener= null;window.opener.location.replace(window.opener.location.href='ideabank.aspx');window.close();</Script>");
//¸¸ÀàÒ³´ò¿ª ×ÓÒ³
Response.Write("<script>window.open('upideabank.aspx?id="+id+"','','height=50 ......
ÿ´Î½«ÍøÒ³·¢Ë͵½·þÎñÆ÷ʱ£¬¶¼»á´´½¨ÍøÒ³ÀàµÄÒ»¸öÐÂʵÀý¡£ÔÚ´«Í³µÄ Web ±à³ÌÖУ¬Õâͨ³£Òâζ×ÅÔÚÿһ´ÎÍù·µÐгÌÖУ¬Óë¸ÃÒ³¼°¸ÃÒ³ÉϵĿؼþÏà¹ØÁªµÄËùÓÐÐÅÏ¢¶¼»á¶ªÊ§¡£ÀýÈ磬Èç¹ûÓû§½«ÐÅÏ¢ÊäÈëµ½Îı¾¿ò£¬¸ÃÐÅÏ¢½«ÔÚ´Óä¯ÀÀÆ÷»ò¿Í»§¶ËÉ豸µ½·þÎñÆ÷µÄÍù·µÐгÌÖжªÊ§¡£
ΪÁ˽â¾ö´«Í³µÄ Web ±à³Ìµ ......