关于url重写的问题 我试着把*.aspx?id=12重定向为12.html,却不行!但是把它写成12.aspx却可以这里求教大家,谢谢!(我vs05运行时可以,但是配置到虚拟目录时却不能浏览了!) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 配置文件:<configuration> <configSections> <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/> </configSections> <connectionStrings> <add name="xiaocaiConnectionString" connectionString="Data Source=.;Initial Catalog=xiaocai;Persist Security Info=True;User ID=sa;Password=xiaocai" providerName="System.Data.SqlClient" /> </connectionStrings> <RewriterConfig> <Rules> <RewriterRule> <LookFor>~/articles/(\d+)\.aspx</LookFor> <SendTo>~/show.aspx?D_id=$1</SendTo> </Rules> </RewriterConfig><system.web> <httpHandlers> <add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/> </httpHandlers>---------------- 这是链接:<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "../articles/"+Convert.ToString(Eval("D_id"))+".aspx" %>' Text='<%# "<li>"+Eval("Title") %>'></asp:HyperLink> 因为html默认是不传到asp.net引擎的只需修改一下就行 将html用asp.net引擎就行aspx默认就是 所以会出现你说的问题 Repeater嵌套问题 关于url转发的一个问题! vb.net如何连接sql server2000 在File控件不作为服务器端控件的条件下,如何处理文件的上传啊? 求购基于asp.net(c#)的网络商城 [性能相关]页面呈现时的CPU消耗,请高手谈谈经验 如何限制页面刷新? 菜鸟问题 :关于tabel的显示问题? SQLServer连接问题!请各位帮帮忙! 紧急求助:使用SpreadsheetClass时出错!!! VSS Server端数据库备份问题 把winform嵌入到webform中的问题.....100分求救
<configuration>
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
</configSections>
<connectionStrings>
<add name="xiaocaiConnectionString" connectionString="Data Source=.;Initial Catalog=xiaocai;Persist Security Info=True;User ID=sa;Password=xiaocai"
providerName="System.Data.SqlClient" />
</connectionStrings>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/articles/(\d+)\.aspx</LookFor>
<SendTo>~/show.aspx?D_id=$1</SendTo>
</Rules>
</RewriterConfig>
<system.web>
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
</httpHandlers>
----------------
这是链接:
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "../articles/"+Convert.ToString(Eval("D_id"))+".aspx" %>'
Text='<%# "<li>"+Eval("Title") %>'></asp:HyperLink>
只需修改一下就行 将html用asp.net引擎就行
aspx默认就是 所以会出现你说的问题