当前位置: 代码迷 >> ASP.NET >> 技术有关问题,关于Page.Request("ID").ToString
  详细解决方案

技术有关问题,关于Page.Request("ID").ToString

热度:6302   发布时间:2013-02-25 00:00:00.0
技术问题,关于Page.Request("ID").ToString ?
(2007-05-24   09:03:03)       畅想成长(108325131)
<%@   Page   Language= "vb "   AutoEventWireup= "false "   Codebehind= "OpenForm.aspx.vb "   Inherits= "ZJCRB_ShareInf.OpenForm "%>
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN ">
<html>
    <head>
        <title> OpenForm </title>
        <meta   name= "GENERATOR "   content= "Microsoft   Visual   Studio   .NET   7.1 ">
        <meta   name= "CODE_LANGUAGE "   content= "Visual   Basic   .NET   7.1 ">
        <meta   name=vs_defaultClientScript   content= "JavaScript ">
        <meta   name=vs_targetSchema   content= "http://schemas.microsoft.com/intellisense/ie5 ">
    </head>
    <script   language= "javascript ">
 
function   openwindow(aspx)
{
now   =   new   Date
s=now.getFullYear()  
+now.getMonth()
+now.getDay()
+now.getHours()
+now.getMinutes()
+now.getMilliseconds   ();

aspx=aspx+ '?T= '+s;

var   win=window.open   (aspx,   'window ',  
'height=715,   width=1015,   top=0,   left=0,toolbar=no,   menubar=no,   resizable=no,   scrollbars=no,location=no,   status=yes ');
window.opener   = 'HRAdmin ';
win.focus   ();
window.close   ();
}
 
</script>
    <body   MS_POSITIONING= "GridLayout "   onload= ' <%#   "openwindow( 'FindReport.aspx '?id=) "   +   Page.Request( "ID ").ToString   %> '>

        <form   id= "Form1 "   method= "post "   runat= "server ">

        </form>

    </body>
</html>

------解决方案--------------------------------------------------------
<body MS_POSITIONING= "GridLayout " onload= "openwindow( 'FindReport.aspx ')>
aspx=aspx+ window.location.search + '&T= '+s;
//如果你当前URL就带一个参数,可以按上面的做,否则你要把window.location.search处理下,你可以把window.location.search alert出来看看是什么东西嘛~~~
  相关解决方案