第一个传递页面的后台代码段
ScriptManager.RegisterClientScriptBlock(gvSelPatient, this.GetType(), "AJAXResponseScript", "if(confirm('病人病例信息录入成功,是否直接开药?')){document.location.href='.././Clinic.aspx?PatientID=' + getPatientID() + '&PatientName=' + getPatientName();}", true);其中getPatientID和getPatientName为JS函数。protected void Page_Load(object sender, EventArgs e)
{
if (Request["PatientID"] != null && Request["PatientName"] != null)
{
url
//PatientID =Int32.Parse(Request["PatientID"].ToString());
this.tx_Name.Value = Request["PatientName"].ToString();
}
}
解决此问题先!!
ScriptManager.RegisterClientScriptBlock(gvSelPatient, this.GetType(), "AJAXResponseScript", "if(confirm('病人病例信息录入成功,是否直接开药?')){document.location.href='.././Clinic.aspx?PatientID=' + getPatientID() + '&PatientName=' + getPatientName();}", true);其中getPatientID和getPatientName为JS函数。protected void Page_Load(object sender, EventArgs e)
{
if (Request["PatientID"] != null && Request["PatientName"] != null)
{
url
//PatientID =Int32.Parse(Request["PatientID"].ToString());
this.tx_Name.Value = Request["PatientName"].ToString();
}
}
解决此问题先!!
解决方案 »
- 对cookie的操作放在三层中的哪一层
- 用过AJAX中的PopupControlExtender请进
- 请教为什么enabled报错
- 装完VS2005奇怪问题,如何解决?
- datalist或者gridview如何一行显示2条或多条记录?
- 急问,在线等...
- web service客户端怎么通过http代理访问服务器?
- 关于两个站点的用户验证的问题。
- 焦点图如何用asp.net后台管理图片
- 哪位高人有:关于如何用.net控制TCP/IP和RS232的相关资料和samples? 请赐教,谢谢:)顺便讨论一下现在北京的就业情况,欢迎大家勇跃发言
- 为什么TextBox不显示韩文?
- 求救,验证视图状态 MAC 失败。
JS:escape();unescape();
那你就request.form......把值弄过来,写进隐藏域.让JS操作隐藏域.
request.form......把值弄过能不能说详细点啊,我是这样想得给隐藏域赋值
Request(strName){
var strHref = "www.cnlei.org/index.htm?a=aaa&b=bbb&c=ccc";
var intPos = strHref.indexOf("?");
var strRight = strHref.substr(intPos + 1);
var arrTmp = strRight.split("&");
for(var i = 0; i < arrTmp.length; i++) {
var arrTemp = arrTmp.split("=");
if(arrTemp[0].toUpperCase() == strName.toUpperCase()) return arrTemp[1];
}
return "";
} alert(Request("a"));
alert(Request("b"));
alert(Request("c"));
//-->
What can I do?
Help me !
UrlEncode(),HtmlEnCode()大家帮帮忙,看一下我的问题啊~~
http://community.csdn.net/Expert/topic/5671/5671873.xml?temp=.9969293