我正在使用Global.asax中的tradicional Routing库来使用友好的URL,但现在我正尝试使用params进行路由,我不能说:
无法使用前导..退出顶级目录。
routes.MapPageRoute("", "marca/{nome}", "~/marca.aspx");
我在jquery中使用它来创建自动控件: ...
"</div>" +
"<div class='pull-right'>" +
"<a href='/produto/" + res[i].id_produto + "' class='btn btn-primary btn-sm hidden-xs'>Mais Informação</a>" +
"</div>" +
...
然后当用户点击此控件并显示该错误时
答案 0 :(得分:0)
我将使用正在运行的JQuery显示我的一个代码:
routes.MapPageRoute("profile", "profile/{ID}", "~/profile.aspx");
我在自动填充中使用它
.append("<a href='/profile/" + item.userId + "'>" + item.fullName + "</a>")
它运作良好。还要检查绑定值是否正常!