我想点击某按钮实现后退到上一页面
Response.Write("<script>window.history.go(-2)</script>");使用了上面的代码,但是页面没有后退,go()的参数用了-1,-3,-4都没用
点击浏览器“后退”按钮却后退到上一页面了多谢指教...
Response.Write("<script>window.history.go(-2)</script>");使用了上面的代码,但是页面没有后退,go()的参数用了-1,-3,-4都没用
点击浏览器“后退”按钮却后退到上一页面了多谢指教...
解决方案 »
- 发送手机短信-想做一个网站,需要给会员发送手机短信,请问有没有免费接口?有没有做过此类开发的前辈?望指点
- 为啥我的XP系统装IIS5.1发布网站老报没权限?
- OWC11 导出Excel栏位丢失问题
- 困扰了我几个月的js颜色选择问题!
- 汉字不能在表单中提交
- (webform)datagrid中编辑模板列中DropDownList选择其中一项。其他单元格更新的问题
- 如何触发JS代码
- 为什么我在TreeView控件的nodes里面添加节点以后,运行时看到的是一横着的排文字,也就是说没有呈现树状结构????
- Jquery+WebService在火狐下的问题
- 关于DLL问题,,,,在线送分,谢谢。。
- 谁用利用存储过程对datalist简单的分页……
- 谁能帮我分析分析这些sql语句 用于同步数据的 帮加些注释
Response.Write("<script>window.history.back();</script>");这样看看
Response.Redirect("FileName");
#region 属性
private string inspectionId;
private string masterName;
private string phoneNo;
private string mobile;
private string inspectionDate; public string InspectionId
{
get
{
return inspectionId;
}
} public string MasterName
{
get
{
return masterName;
}
} public string PhoneNo
{
get
{
return phoneNo;
}
} public string Mobile
{
get
{
return mobile;
}
} public string InspectionDate
{
get
{
return inspectionDate;
}
}
#endregion
int selectIndex = e.NewSelectedIndex;
inspectionId = gvData.Rows[selectIndex].Cells[0].Text.Replace(" ", "");
masterName = gvData.Rows[selectIndex].Cells[1].Text.Replace(" ", "");
phoneNo = gvData.Rows[selectIndex].Cells[2].Text.Replace(" ", "");
mobile = gvData.Rows[selectIndex].Cells[3].Text.Replace(" ", "");
inspectionDate = gvData.Rows[selectIndex].Cells[4].Text.Replace(" ", "");
Server.Transfer("UploadDataDetail.aspx");
这个是跳转
UploadDataDetail.cs:
UploadDataQuery uploadDatQuery;
uploadDatQuery = (UploadDataQuery)Context.Handler;
inspectionId = uploadDatQuery.InspectionId;
masterName = uploadDatQuery.MasterName;
phone = uploadDatQuery.PhoneNo;
mobile = uploadDatQuery.Mobile;
inspectionDate = uploadDatQuery.InspectionDate;这个是接收
这个Server是
System.Web.HttpServerUtility
的实例
为什么你的不行呢?
你试试这个
Page.ClientScript.RegisterStartupScript(typeof(string),"key","<script>window.history.go(-2)</script>");
现在用Server.Transfer("UploadDataDetail.aspx");
就不能返回了,但是点击浏览器的后退键,是可以返回的