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

ASP.NET´ò¿ªÐ´°¿Ú·½·¨

ASP.NET´ò¿ªÐ´°¿Ú·½·¨Ò»:
Response.Write(" <script language=\"javascript\">window.open('aaa.aspx','д°¿Ú,\"toolbar=yes,location=no,directories=yes,status=yes,menubar=yes,resizable=yes,scrollbars=yes\"); </script>");
ÕâÖÖ·½Ê½´úÂëÿ´ÎÊÇÉú³ÉÔÚÒ³Ãæ×î¶¥¶Ë
ASP.NET´ò¿ªÐ´°¿Ú·½·¨¶þ:
string strScript = "";
strScript += " <script language=\"javascript\">\n";
strScript += "window.open('aaa.aspx','д°¿Ú,\"toolbar=yes,location=no,directories=yes,status=yes,menubar=yes,resizable=yes,scrollbars=yes\");\n";
strScript += "location.href='index.html';";
strScript += " </script>";
bool b = ((Page)System.Web.HttpContext.Current.Handler).IsStartupScriptRegistered("PopUp");
if (!b)
{
((Page)System.Web.HttpContext.Current.Handler).RegisterStartupScript("PopUp",strScript);
}
ÕâÖÖ·½Ê½ÊÇÔÚÒ³ÃæÖÐÉú³ÉJAVASCRIPT´úÂë
×¢Òâ:Èç¹ûÊä³öJAVSSCRIPTÓï¾äºó,Ò³ÃæÓÖÓÃResponse.RedirectÌø×ªµ½ÆäËûÒ³,JAVASCRIPT½«²»»á³öÏÖ.
ʵÏÖµ¯³ö´°¿ÚºÍÌø×ªÍ¬Ê±±ØÐë¶¼ÔÚJAVASCRIPTÓï¾äÀï,
asp.netÖдò¿ªÐ´°¿ÚµÄ¶àÖÖ·½·¨
1.Response.Redirect("XXX.aspx",true)——Ö±½ÓתÏòеÄÒ³Ãæ£¬Ô­´°¿Ú±»´úÌæ;
2. Response.Write(" <script>window.open(XXX.aspx'',''_blank'') </script>")——Ô­´°¿Ú±£Áô£¬ÁíÍâÐÂÔöÒ»¸öÐÂÒ³Ãæ;
3.Response.Write(" <script>window.location=XXX.aspx'' </script>")——´ò¿ªÐµÄÒ³Ãæ£¬Ô­´°¿Ú±»´úÌæ;
4.Server.Transfer("XXX.aspx")——´ò¿ªÐµÄÒ³Ãæ;
5.Response.Write(" <script>window.showModelessDialog(XXX.aspx'') </script>")——Ô­´°¿Ú±£Áô£¬ÒÔ¶Ô»°¿òÐÎʽ´ò¿ªÐ´°¿Ú;
6.Response.Write(" <script>window.showModalDialog(XXX.aspx'') </script>")——¶Ô»°¿òÐÎʽ´ò¿ªÐ´°¿Ú£¬Ô­´°¿Ú±»´úÌæ;
£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­ 
<script language="javascript">
function popupkind(xdm)
{
url ="ThisTerm2Add.aspx?xdm="+xdm
hr=window.showModalDialog(url,'',"dialogHeight:300px;dialogWidth:300px;dialogLeft:60px;dialogTop:30px;center:1;status:1;title:0;")
}
&


Ïà¹ØÎĵµ£º

ASP.NET Êý¾Ý°ó¶¨³£ÓôúÂë

ÓÃDataBinder.eval °ó¶¨Êý¾Ý²»±Ø¹ØÐÄÊý¾ÝÀ´Ô´(Dataread»òdataset)Ò²²»±Ø¹ØÐÄÊý¾ÝµÄÀàÐÍ,eval»á°ÑÕâ¸öÊý¾Ý¶ÔÏóת»»ÎªÒ»¸ö×Ö·û´®¡£Êǵײã°ó¶¨×öÁ˺ܶ๤×÷£¬Ê¹ÓÃÁË·´ÉäÐÔÄÜ¡£ÕýÒòΪʹÓ÷½±ãÁË£¬µ«È´Ó°ÏìÁËÊý¾ÝÐÔÄÜ¡£µ±Óëdataset°ó¶¨Ê±£¬DataItemÆäʵÊÇÒ»¸öDataRowView£¨Èç¹û°ó¶¨µÄÊÇÒ»¸öÊý¾Ý¶ÁÈ¡Æ÷£¨dataread£©Ëü¾ÍÊÇÒ»¸öIdat ......

ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂëʵÏÖ

1.   
´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.net
Ò³ÃæÖеÄij¸öButton
±»µã»÷ºódisable
µô¸ÃÒ³ÃæÖÐËùÓеÄButton
£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton
½Å±¾.
//ASP.NET
ÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script
language="javascript"> < !-- function dis ......

ASP.NETÖ®ÐÔÄÜÓÅ»¯

¡¡1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
¡¡¡¡Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø± ......

asp.net ³ÌÐò¶¯Ì¬Ìí¼Ógridview

ǰ̨:
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
   
   
     ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ