问题描述
寻求帮助
<form action="/foo" method="post">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Login</h4>
</div>
<div class="modal-body">
<img src="xxx" style="height: 220px;background: white;padding: 60px;">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="dic_username" name="email" aria-describedby="emailHelp"/>
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input name="password" type="password" class="form-control" id="dic_password"/>
</div>
</div>
<div class="modal-footer">
<input class="btn btn-primary" value="Login" type="Submit" />
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</form>
第foo.aspx.cs页
try
{
dynamic results = Newtonsoft.Json.JsonConvert.DeserializeObject<dynamic>(UnicodeEncoding.UTF8.GetString(client.UploadValues(url,"POST",client.QueryString)));
Response.Redirect("/some route ");
}
catch (Exception ex)
{
Response.Redirect("");
}
我希望在表单上显示错误,而不是重定向,我该怎么做,任何帮助将不胜感激
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)