摘要:
一Html.ActionLink("linkText","actionName")该重载的第一个参数是该链接要显示的文字,第二个参数是对应的控制器的方法,默认控制器为当前页面的控制器,如果当前页面的控制器为Products,则Html.ActionLink("detail","Detail")则会生成<ahref="/Products/Detail">all</a>二Html.ActionLink("linkText","actionName 阅读全文
posted @ 2012-11-05 17:08
Raywang80s
阅读(305)
评论(0)
推荐(0)
摘要:
使用绝对路径,不要使用相对路径 <form runat="server" method="get" action=@Url.Content("~/addtools/onpays/alipay/default.aspx") > 阅读全文
posted @ 2012-11-05 15:55
Raywang80s
阅读(144)
评论(0)
推荐(0)
摘要:
使用asp.net 接收html静态页面提交的表单时,接受的函数应使用 this.Request.QueryString["userName"],不能使用string userName = this.Request.Form["userName"].ToString(); 后一种方法会提示“未将对象引用设置到对象的实例”。我的代码如下:html静态页面:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login_xhtml.aspx.c 阅读全文
posted @ 2012-11-05 11:15
Raywang80s
阅读(468)
评论(0)
推荐(1)
浙公网安备 33010602011771号