问题急死了,想不通呀,盼高手指点!
<script language= "javascript ">
function Show(strParam1,strParam2,strParam3)
{
Total.aspx?strID= <%=showID()%> &strParam1= " + strParam1+ "&strParam2= "+strParam2+ "&strParam3= "+strParam3);
}
</script>
Total.aspx 的.cs文件中
Page_Load
{
string strID = Request[ "strId "];
//这个可以正常接受字符串,也可以进行字符串操作;
string strParam2 = Request[ "strParam2 "];
//直接return strParam2 参数正常,是正确的.但是对strParam2进行字符串操作则,提示 对象未实例化(例如:strParam2.ToString()), 并且Request[ "strParam2 "]=null
}
着急呀,盼高手解决
------解决方案--------------------string strParam2 = (string)Request[ "strParam2 "];
不应该啊 应该是string类型啊