猿问

asp.net生成伪静态页如何动态带参数

<a href="news2.aspx?newsId=<%#MD5.EncryptText(Eval("news_id").ToString())%>&columnid=1" >
webconfig里该如何配
<rewrite url="~/news2.html$" to="~/news2.aspx?colmunid=4" />

海绵宝宝撒
浏览 557回答 2
2回答

慕标5832272

如果是伪静态页,<a href="news2.aspx?newsId=<%#MD5.EncryptText(Eval("news_id").ToString())%>&columnid=1" >这里就不该这么写吧?<a href="news_<%#MD5.EncryptText(Eval("news_id").ToString())%>_1.html" >应该是类似这种情况吧?

繁星coding

<rewrite url="~/news2.html\??(\d*)" to="~/news2.aspx?colmunid=$1" />
随时随地看视频慕课网APP
我要回答