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

ASP.NET³£ÓÃÓï¾ä

1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ò
Response.Write(" <script language='javascript'>alert('²úÆ·Ìí¼Ó³É¹¦£¡')
</script >");
3.//ɾ³ýÎļþ
string filename ="20059595157517.jpg";
pub.util.DeleteFile(HttpContext.Current.Server.MapPath("../file/")
+filename);
4.//°ó¶¨ÏÂÀ­Áбí¿òdatalist
System.Data.DataView dv=conn.Exec_ex("select -1 as code,'ÇëÑ¡Ôñ¾­ÓªÄ£Ê½'
as content from dealin union select code,content from dealin");
this.dealincode.DataSource=dv;
this.dealincode.DataTextField="content";
this.dealincode.DataValueField="code";
this.dealincode.DataBind();
this.dealincode.Items.FindByValue(dv[0]["dealincode"].ToString
()).Selected=true;
5.//ʱ¼äÈ¥ÃëÏÔʾ
<%# System.DateTime.Parse(DataBinder.Eval
(Container.DataItem,&quot;begtime&quot;).ToString()).ToShortDateString()%>
6.//±êÌâ´øÁ´½Ó
<%# &quot; <a class=\&quot;12c\&quot; target=\&quot;_blank\&quot;
href=\&quot;http://www.51aspx/CV/_&quot;+DataBinder.Eval
(Container.DataItem,&quot;procode&quot;)+&quot;.html\&quot;>&quot;+
DataBinder.Eval(Container.DataItem,&quot;proname&quot;)+&quot; </a>&quot;%>
7.//ÐÞ¸ÄתÏò
<%# &quot; <A href=\&quot;editpushpro.aspx?id=&quot;+DataBinder.Eval
(Container.DataItem,&quot;code&quot;)+&quot;\&quot;>&quot;+&quot;ÐÞ¸Ä
&quot;+&quot; </A>&quot;%>
8.//µ¯³öÈ·¶¨°´Å¥
<%# &quot; <A id=\&quot;btnDelete\&quot; onclick=\&quot;return confirm('ÄãÊÇ·ñ
È·¶¨É¾³ýÕâÌõ¼Ç¼Âð?');\&quot; href=\&quot;pushproduct.aspx?
dl=&quot;+DataBinder.Eval(Container.DataItem,&quot;code&quot;)
+&quot;\&quot;>&quot;+&a


Ïà¹ØÎĵµ£º

asp.netÖÐʹÓûùÓÚ½ÇÉ«roleµÄFormsÑéÖ¤

asp.netÖÐʹÓûùÓÚ½ÇÉ«roleµÄFormsÑéÖ¤£¬´óÖ¾­¹ý¼¸ÏÂËIJ½£º
1.ÅäÖÃϵͳweb.config
timeout="20" path="/" />
ÆäÖÐ ±íʾ±¾Ó¦ÓóÌÐò²ÉÓÃFormsÑéÖ¤·½Ê½¡£
1). ±êÇ©ÖеÄname±íʾָ¶¨ÒªÓÃÓÚÉí·ÝÑéÖ¤µÄ HTTP Cookie¡£Ä¬ÈÏÇé¿öÏ£¬name µÄÖµÊÇ .ASPXAUTH¡£²ÉÓôËÖÖ·½Ê½ÑéÖ¤Óû§ºó,ÒÔ´ËÓû§µÄÐÅÏ¢½¨Á¢Ò»¸öFormsAuthenticati ......

ASP.NET Routing for URLRewriting with QueryStrings

In the last post I showed how to use the ASP.NET 3.5 Routing Engine
for URLRewriting purposes. I want to go further in this post by adding
the ability to add variables into a route path and forward and append
query string variables to the destination Web Form request.
A route can contain one or ......

ASP.NET°´Ê±¼ä²éѯ

select  top 6 *  from ViewHouseSale  where  1=1 and  (EstateType='0' or EstateType='1')
and DateDiff(day,PubDate,getdate()) <=7 and IfBenefit='Y' and IfValid='Y'  order by PubDate DESC
select  top 6 *  from ViewHouseSale  where  1=1 and&nb ......

TinyMCE£¨¸»Îı¾±à¼­Æ÷£©ÔÚAsp.NetÖеÄʹÓ÷½·¨

TinyMCE ÔÚAsp.NetÖеÄʹÓ÷½·¨Æäʵͦ¼òµ¥µÄ£¬´Ó¹Ù·½ÍøÕ¾ÏÂÔØTinyMCE),È»ºó½«ÀïÃæµÄjscriptsĿ¼¿½µ½ÄãµÄÍøÕ¾Ä¿Â¼
¼ÙÉèÄãµÄaspxÒ³ÃæÖÐijһ¸öµØ·½ÐèÒªÓõ½±à¼­Æ÷£¬Ôò¼ÓÈë
<asp:TextBox ID=”brand” TextMode=”MultiLine” runat=”server” />
²¢Í¬Ê±ÔÚheaderÀï¼ÓÈ룺
<script ......

Asp.NetÖÐSession

Session¼´»á»°£¬ÊÇÖ¸Ò»¸öÓû§ÔÚÒ»¶Îʱ¼äÄÚ¶Ôijһ¸öÕ¾µãµÄÒ»´Î·ÃÎÊ¡£ 
Session¶ÔÏóÔÚ.NETÖжÔÓ¦HttpSessionStateÀ࣬±íʾ“»á»°×´Ì¬”£¬¿ÉÒÔ±£´æÓ뵱ǰÓû§»á»°Ïà¹ØµÄÐÅÏ¢¡£
Session¶ÔÏóÓÃÓÚ´æ´¢´ÓÒ»¸öÓû§¿ªÊ¼·ÃÎÊij¸öÌØ¶¨µÄaspxµÄÒ³ÃæÆð£¬µ½Óû§À뿪Ϊֹ£¬Ìض¨µÄÓû§»á»°ËùÐèÒªµÄÐÅÏ¢¡£Óû§ÔÚÓ¦ÓóÌÐòµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ