62,074
社区成员
发帖
与我相关
我的任务
分享
<form action="" method="post" name="form1" id="form1">
<input type="hidden" name="username" id="username" />
<input type="hidden" name="password" id="password" />
<input type="submit" name="submit" id="submit" value="Submit" />
</form>
//jquery
$('#form1')[0].action = "User.aspx";
//C#
<form action='<%= GetUrl()%>' method="post" name="form1" id="form1">
public string GetUrl()
{
return "";
}