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

Asp.netʵÓü¼ÇÉд°¿ÚÖдò¿ªÒ³ÃæAPI


1.ÔÚд°¿ÚÖдò¿ªÒ³Ãæ
   
ÎÒÃǾ­³£ÐèÒªÔÚµã»÷ij¸öButtonµÄʱºò´ò¿ªÒ»¸öеÄÒ³Ã棬¶øÇÒÓÉÓÚÓ¦ÓõÄÐèÒª£¬ÎÒÃÇÓÖ²»ÄÜʹÓ󬼶Á¬½Ó»òÕßLinkButtonÀ´´úÌæÕâ¸ö
Button£¬ÓÚÊÇÎÒÃÇÖ»ÓÐÔÚButtonµÄClickʼþÖнøÐÐÐÂÒ³ÃæµÄ´ò¿ª¹¤×÷¡£ÎÒ½«Õâ¸ö¹¤×÷·â×°³ÉÒ»¸öAPI£¬ÈçÏ£º
 1
OpenWindowInNewPage
#region
 OpenWindowInNewPage
 2
        
//
ÔÚд°¿ÚÖдò¿ªÒ³Ãæ
 3
        
public
 
static
 
void
 OpenWindowInNewPage(Page curPage ,
string
 destUrl)
 4
        
{            
 5
            
string
 scriptString 
=
 
string
.Format(
"
<script language='JavaScript'>window.open('
"
 
+
 
"
{0}
"
 
+
 
"
','_new');<
"
 ,destUrl) ;
 6
            scriptString 
+=
 
"
/
"
;
 7
            scriptString 
+=
 
"
script>
"
;
 8
            
if
(
!
curPage.IsStartupScriptRegistered(
"
Startup
"
))
 9
            
{
10
                curPage.RegisterStartupScript(
"
Startup
"
, scriptString);
11
            }
12
        }
13
        
#endregion
2.Èç¹ûÐèÒª´ò¿ª¹Ì¶¨´óСµÄÒ³Ã棬¿ÉÒÔʹÓÃÈçÏÂAPI


Ïà¹ØÎĵµ£º

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

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

ASP.NET

Èý¡¢ÈçºÎ£ºÉèÖà ASP.NET Web ·þÎñÆ÷¿Ø¼þÊôÐÔ
      ÔÚ ASP.NET ÍøÒ³ÖУ¬¸ù¾ÝËùÐèµÄÊôÐÔ (Property) ÉèÖÿؼþÉùÃ÷µÄÊôÐÔ (Attribute)¡£
ÄúËùÉèÖõÄÈ·ÇÐÊôÐÔÈ¡¾öÓڿؼþºÍÊôÐÔ¡£ÓйØÌض¨¿Ø¼þµÄÊôÐÔµÄÐÅÏ¢£¬ÇëÔÚ“°ïÖú”Ë÷ÒýÖÐËÑË÷¸Ã¿Ø¼þÀàµÄÃû³Æ£¨ÀýÈ磬“Button Àà (System.Web.UI ......

ASP.NET

Ê®¡¢ÒÔ±à³Ì·½Ê½·ÃÎÊ ASP.NET ¿Ø¼þ
1¡¢Web ´°Ìå¿Ø¼þ±êʶ
      ASP.NETÍøÒ³ÉϵÄÿһ¸ö¿Ø¼þ¶¼±ØÐëÊÇ¿ÉΨһ±êʶµÄ¡£Í¨³££¬Îª¿Ø¼þµÄ ID ÊôÐÔ·ÖÅäÒ»¸öÖµÀ´Î¨Ò»±êʶ¸Ã¿Ø¼þ¡£¸ÃÖµ½«³ÉΪ¿Ø¼þµÄʵÀýÃû³Æ£¨¼´£¬ÔÚ´úÂëÖÐÒýÓÿؼþËùÒÀ¾ÝµÄÃû³Æ£©¡£ÀýÈ磬Èç¹û½« TextBox ¿Ø¼þµÄ ID ÊôÐÔÉèÖÃΪ Text1£¬Ôò¿ÉÒÔÔ ......

asp.net²Ù×÷XMLС½á

 

Ò»¡¢¼òµ¥½éÉÜ
using System.Xml;
//³õʼ»¯Ò»¸öxmlʵÀý
XmlDocument xml=new XmlDocument();
//µ¼ÈëÖ¸¶¨xmlÎļþ
xml.Load(path);
xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));
//Ö¸¶¨Ò»¸ö½Úµã
XmlNode root=xml.SelectSingleNode("/root" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ