Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ʹÓÃÕýÔò±í´ïʽ½âÎöÖÐÓ¢ÎÄ»ìÅÅÄÚÈÝ

¸ø³öÒ»¸ö×Ö·û´®£¬Èç¡°ÖйúChinaÎÒ°®ÄãI love you¡±£¬³ÌÐò¿ÉÒÔʵÏÖÖÐÓ¢ÎĵÄÇø±ð;
ʶ±ð½á¹ûÈçÏ£º¹²ËĸöÔªËØ
Öйú
China
ÎÒ°®Äã
I love you
 
 
 string ptn = "[\u4e00-\u9fa5]+|[a-zA-Z\\s]+";
System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex(ptn);
s ......

asp.netÁ´½Ósqlserver2000¡¢2005¡¢access´úÂë

Data Source=sqlservername;Initial Catalog=dbname;User ID=userid;Password=userpwd
Data Source=(local)\\SQLEXPRESS;Initial Catalog=Êý¾Ý¿âÃû;Integrated Security=True
Data Source=(local);Initial Catalog=Êý¾Ý¿âÃû;User ID=ÕʺÅ;Password=ÕʺÅÃÜÂë
Provider=Microsoft.Jet.OleDb.4.0;Data Source=C:\BegASPNET\ ......

Asp.netÖзþÎñ¶Ë¿Ø¼þʼþÊÇÈçºÎ´¥·¢µÄ

 
 
 
 
 Asp.net ÖÐÔÚ¿Í»§¶Ë´¥·¢·þÎñ¶Ëʼþ·ÖΪÁ½ÖÖÇé¿ö£º
Ò». WebControlsÖеÄButton ºÍHtmlControlsÖеÄTypeΪsubmitµÄHtmlInputButton
ÕâÁ½ÖÖ°´Å¥×îÖÕµ½¿Í»§¶ËµÄ±íÏÖÐÎʽΪ£º < input name="Submit1" id="Submit1" type="submit" value=”Submit”>£¬ÕâÊÇForm±íµ¥µÄÌ ......

ASP.NET±à³Ì¹æ·¶Ö®ÃüÃû¹æ·¶Ç³Îö

ASP.NET±à³Ì¹æ·¶Ö®ÃüÃû¹æ·¶¶¼ÓÐÄÄÐ©ÄØ£¿¾ßÌåÓÖÓÐʲôÄÚÈÝÄØ£¿ÈÃÎÒÃÇ¿ªÊ¼°É£º
ASP.NET±à³Ì¹æ·¶Ö®ÃüÃû¹æ·¶1£®°´Å¥IDÃüÃû£º
btn+°´Å¥²Ù×÷¹¦ÄÜ£¨ÈçbtnSave£©
ASP.NET±à³Ì¹æ·¶Ö®ÃüÃû¹æ·¶2£®ÆäËü¿Ø¼þ£º
I£®ÓëÊý¾Ý²Ù×÷Ïà¹Ø£ºÆäID<.SPAN>ΪÏàÓ¦µÄ×Ö¶ÎÃû³Æ£¬Èç¹ûÓжà¸ö¿Ø¼þ¶ÔÓ¦Ò»¸ö×ֶΣ¬Ôò°´ÒÔϹ淶ÃüÃû£º
×Ö¶ÎÃû+&rdqu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ