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

JSÓëAsp.NetµÄ´«Öµ

1. JSÖÐÈ¡µÃAsp.NetµÄÖµ
(1)È¡µÃ·þÎñ¶Ë¿Ø¼þµÄÖµ
var s = document.getElementById("TextBox1").value;   //È¡µÃTextBox1µÄTextÖµ
(2)È¡µÃÈ«¾Ö±äÁ¿µÄÖµ
ÔÚPage_Load()·½·¨Ç°¶¨Òåprotected String sT;
ÔÚPage_Load()·½·¨Öи³ÖµsT = "¹þ¹þ";
JSÖÐÕâÑùдȡµÃ
var s = "<%=sT %>";
--------------------------------------------------------------------------------
2. Asp.NetÖÐÈ¡µÃJSµÄÖµ
ÍÆ¼öʹÓÃ<asp:HiddenField ID="HiddenField1" runat="server" />¿Ø¼þ
ÔÚJSÖÐÌí¼Ó´úÂë
document.getElementById("HiddenField1").value = '·çÖÐ×··ç';
ÔÚºǫ́´úÂëÖÐ,¿ÉÒÔÖ±½ÓʹÓÃHiddenField1.ValueÈ¡µÃ
ʹÓÃ<input type="hidden" id="leslie" runat="server" />
ÔÚºǫ́´úÂëÖÐ,¿ÉÒÔÖ±½ÓʹÓÃleslie.ValueÈ¡µÃ
PS:
Ò²¿ÉÒÔʹÓÃ<input type="hidden" id="leslie" name="leslie">·½·¨
ÔÚºǫ́²Ù×÷ÖÐÓÃRequest.Form.Get("leslie");  //È¡µÃµÄÊÇname="leslie"µÄÖµ


Ïà¹ØÎĵµ£º

dz̸ASP.net°²È«±à³Ì

ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔǰµÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕß¶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......

asp.net¶ÏµãÐø´«¼¼Êõ

¶ÏµãÐø´«µÄÔ­Àí
  ÔÚÁ˽âHTTP¶ÏµãÐø´«µÄÔ­Àí֮ǰ£¬ÏÈÀ´ËµËµHTTPЭÒ飬HTTPЭÒéÊÇÒ»ÖÖ»ùÓÚtcpµÄ¼òµ¥Ð­Ò飬·ÖΪÇëÇóºÍ»Ø¸´Á½ÖÖ¡£ÇëÇóЭÒéÊÇÓɿͻ§»ú(ä¯ÀÀÆ÷)Ïò·þÎñÆ÷(WEB SERVER)Ìá½»ÇëÇóʱ·¢Ëͱ¨ÎĵÄЭÒé¡£»Ø¸´Ð­ÒéÊÇÓÉ·þÎñÆ÷(web server)£¬Ïò¿Í»§»ú(ä¯ÀÀÆ÷)»Ø¸´±¨ÎÄʱµÄЭÒé¡£ÇëÇóºÍ»Ø¸´Ð­Òé¶¼ÓÉÍ·ºÍÌå×é³É¡£Í·ºÍÌåÖ® ......

asp.net membership

±¾ÎÄĿ¼£º
1.membership¼ò½é
2.membershipÔÚsql serverÖеÄÉèÖÃ
3.ÅäÖÃweb.config
4.´´½¨Óû§CreateUserWizard¿Ø¼þ
5.Óû§µÇ¼login¿Ø¼þ
6.ÏÔʾµ±Ç°Óû§µÄÃû³ÆLoginName¿Ø¼þ
7.¼ì²âÓû§µÄÉí·ÝÑé֤״̬µÄLoginStatus¿Ø¼þ
8.Ϊ²»Í¬Àà±ðÓû§³ÊÏÖ²»Í¬ÄÚÈݵÄLoginView¿Ø¼þ
9.¸ü¸ÄÃÜÂëµÄChangePassword¿Ø¼þ
10.×ÔÖúÕÒ» ......

asp.netÈ¡Îļþ¼ÐÖÐËùÓÐÎļþÃû

string[] files = Directory.GetDirectories(Server.MapPath("Themes/"));
ÏÈÉùÃ÷ÁËÒ»¸ö×Ö·ûÊý×飬mapPath·½·¨µÃµ½µÄÊÇÒ»¸ö¾ø¶Ô·¾¶¡£
ÒòΪGetFiles·µ»ØµÄÊÇÒ»¸östring[]Êý×飬ËùÒÔÓà filesÀ´½ÓÊÕËü¡£
È»ºóÎÒÃÇÔÚÓÃÒ»¸öforeachÑ­»·À´±éÀúÕâ¸öÊý×飬ȡ³öËùÓÐÖµ¡£
foreach (string file in files)
{
Response.W ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ