ASP.netµÄurlÖØÐ´
1.
ÓйØÓÚURLµÄÖØÐ´£¬±¾ÎÄÒ²Ö»ÊÇÄÃÀ´Ö÷Òâ¡£Ïà¼ÌÓÐMSµÄ×é¼þ“URLRewriter”ºÍÔÚGlobal.asaxÀïµÄ“Application_BeginRequest()”±àÂ뷽ʽ£¬ÒÔ¼°IISÀïµÄISAPIÉèÖá£
ÄÈÁÐÏÂÀ´£¬ÊµÏÖ·½·¨Ò²¶¼ºÜ¼òµ¥¡£
·½·¨Ò»£ºMS×é¼þ
ÕâÀïÒ²²»ÓÃÏê½âÁË£¬Ïà¹ØÇë¿´£º
http://www.microsoft.com/china/msdn/library/webservices/asp.net/URLRewriting.mspx
Ó÷¨ºÜ¼òµ¥£¬Ö»ÐèÒª°Ñ×é¼þURLRewriter.dll¿½µ½Ó¦ÓóÌÐòµÄbinĿ¼Ï£¬È»ºóÔÚweb.configϼÓÈëÈçÏ´úÂ룺
ÔÚ<configuration></configuration>ÖмÓÈ룺
<configSections>
<sectionname="RewriterConfig"type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
</configSections>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/(\d{4})/(\d{2})/Default\.aspx</LookFor>
<SendTo>~/Default.aspx?ID=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
È»ºóÔÚ<system.web></system.web>ÖмÓÈ룺
<httpHandlers>
<addverb="*"path="*.aspx"
type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
</httpHandlers>
×îºóÔÚµØÖ·À¸ÉϼüÈ룺http://localhost/Test/2004/12/News.aspx
Ч¹û³öÀ´ÁË¡£
ÉÏÃæµÄ<LookFor>~/(\d{4})/(\d{2})/News\.aspx</LookFor>Õâ¾äÕâÕýÔò±í´ïʽURL£¬¼´±»ÖØÐ´µÄURL£¬¶ø
Ïà¹ØÎĵµ£º
ASP.NETʵÏÖÔÚÏß²¥·ÅFLVÊÓÆµ¼þµÄ´úÂë
ǰ̨µ÷ÓôúÂë
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1&q ......
ÏÈ¿´¿´ASP.NETÒ³ÃæË¢ÐµÄʵÏÖ·½·¨£º
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); }
µ ......
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),È»ºó½«ÀïÃæµÄjscriptsĿ¼¿½µ½ÄãµÄÍøÕ¾Ä¿Â¼
¼ÙÉèÄãµÄaspxÒ³ÃæÖÐijһ¸öµØ·½ÐèÒªÓõ½±à¼Æ÷£¬Ôò¼ÓÈë
<asp:TextBox ID=”brand” TextMode=”MultiLine” runat=”server” />
²¢Í¬Ê±ÔÚheaderÀï¼ÓÈ룺
<script ......
public void SendSMTPEMail(string strSmtpServer, string strfrom, string strfromPass, string strto, string strSubject, string strBody)
{
System.Net.Mail.SmtpClient client = new SmtpClient(strSmtpServer);
client.UseDefaultCredentials = false;
client.Credentials = new System.Net.NetworkCre ......