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

asp.netÖÐSystem.DateTime.Now.ToString()µÄһЩÓ÷¨


Asp.netÖеÄÈÕÆÚ´¦Àíº¯Êý
     //2007Äê4ÔÂ24ÈÕ
     this.TextBox6.Text = System.DateTime.Now.ToString("D");
     //2007-4-24
     this.TextBox7.Text = System.DateTime.Now.ToString("d");
     //2007Äê4ÔÂ24ÈÕ 16:30:15
     this.TextBox8.Text = System.DateTime.Now.ToString("F");
     //2007Äê4ÔÂ24ÈÕ 16:30
     this.TextBox9.Text = System.DateTime.Now.ToString("f");
     //2007-4-24 16:30:15
     this.TextBox10.Text = System.DateTime.Now.ToString("G");
     //2007-4-24 16:30
     this.TextBox11.Text = System.DateTime.Now.ToString("g");
     //16:30:15
     this.TextBox12.Text = System.DateTime.Now.ToString("T");
     //16:30
     this.TextBox13.Text = System.DateTime.Now.ToString("t");
     //2007Äê4ÔÂ24ÈÕ 8:30:15
     this.TextBox14.Text = System.DateTime.Now.ToString("U");
     //2007-04-24 16:30:15Z
     this.TextBox15.Text = System.DateTime.Now.ToString("u");
     //4ÔÂ24ÈÕ
     this.TextBox16.Text = System.DateTime.Now.ToString("m");
     this.TextBox16.Text = System.DateTime.Now.ToString("M");
     //Tue, 24 Apr 2007 16:30:15 GMT
     this.TextBox17.Text = System.DateTime.Now.ToString("r");
     this.TextBox17.Text = System.DateTime.Now.ToString("R");
     //2007Äê4ÔÂ
     this.TextBox19.Text = System.DateTime.Now.ToString("y");
 &nb


Ïà¹ØÎĵµ£º

Asp.net³£ÓõÄ51¸ö´úÂë(·Ç³£ÊµÓÃ)

Asp.net³£ÓõÄ51¸ö´úÂë(·Ç³£ÊµÓÃ)
1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
CODE:
Response.Write(&quot;<script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')</script>&quot;);
Response.Write(&quot;<script>window.location ='http://www.51aspx.com/bizpulic/upmeb.aspx'</script&g ......

asp.netºǫ́»ñÈ¡js±í¸ñµÄÊý¾Ý

»áajaxµÄÆ®¹ý
¿´ÂÛ̳ÀïºÃ¶àÈËÔÚÕÒºǫ́»ñÈ¡js±í¸ñµÄÊý¾Ý£¬¾Í°ÑÒÔǰµÄ·½·¨·ÅÔÚÕâÀïÁË
ǰ̨£º
 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xht ......

ASP.NET ·þÎñÆ÷¿Ø¼þÉúÃüÖÜÆÚ

Ô­ÎÄ£ºÁõÎä
| ASP.NET ·þÎñÆ÷¿Ø¼þÉúÃüÖÜÆÚ
âÒ¶¡½âÅ£:×ÝÏòÇÐÈëASP.NET 3.5¿Ø¼þºÍ×é¼þ¿ª·¢¼¼Êõ
   µÚÒ»Õ½²ÁËһЩ·þÎñÆ÷¿Ø¼þµÄ»ù±¾ÖªÊ¶£¬
ÆäÖÐasp.net·þÎñÆ÷¿Ø¼þµÄÉúÃüÖÜÆÚ£¬ÊÇ¿ª·¢¿Ø¼þµÄµÚÒ»²½£¬Ò²ÊǺËÐÄ¡£
·þÎñÆ÷¿Ø¼þÉúÃüÖÜÆÚ°üÀ¨ÒÔÏÂ11¸ö½×¶Î£º
³õʼ»¯£¨OnInit)£ºÍê³É¿Ø¼þµÄ³õʼ»¯¼°´ò¿ª¿Ø¼þµÄÊÓͼ״̬¸ ......

ASP.NET ÕýÔò±í´ïʽÇå³ýHTML´úÂë

public string ClearHtml(string HtmlStr)
{
string tmpStr = HtmlStr;
tmpStr = ReplaceHtml("&#[^>]*;", tmpStr, "");
tmpStr = ReplaceHtml("</?marquee[^>]*>", tmpStr, "");
tmpStr = ReplaceHtml("</?object[^>]*>", tmpStr, "");
tmpSt ......

ASP.NET³ÌÐòÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë

ASP.NET³ÌÐòÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë 
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º 
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ