框架中有好几个页面组成,我想向其中一个页面传参数,怎么传?

解决方案 »

  1.   

    目标设置到指定的frame名称 target="framename"
      

  2.   

    <frameset name="left" src="webform1.aspx?uid=<%=Request.QueryString["uid"]%>" >
      

  3.   

    不行啊!我是在程序里接受参数的, 
    If IsNumeric(Request.QueryString("ID")) Then
                top = Request.QueryString("ID")
    End If
    在同一个框架下,向另一个页面传参数是没有问题的,可是我现在想从另一个页面跳转到当前的框架页面时,其中一个页面接收参数,
    用你们的方法试了,不行啊
      

  4.   

    明白你的意思
    这样的话你可能需要做框架页路径重定位
    parent.frames["main"].location.href = location
      

  5.   

    在主框架页面
    然后取 (eg、http://localhost/sdm/Login.aspx?url=/sdm/Index.aspx)
    url所带的参数,加载其中一个页面
      

  6.   

    <a href ='main1.frames["mainFram"].location.href =operation_detail1.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id")%>' target ="mainFrame"></a>这样写对吗?可是还不行,是不是我写错了?
      

  7.   

    function GotoPage(id)
    {
        var location = "operation_detail1.aspx?id=" + id
        main1.frames["mainFram"].location.href = location;
    }<a href='javascript:GotoPage(<%# DataBinder.Eval(Container.DataItem, "ID")%>)'></a>
      

  8.   

    main1.frames["mainFram"].location.href = location;
    改成windows.frames["mainFram"].location.href = location;
      

  9.   

    不好意思
    我只是把你上面的代码整合为一个javascript函数而已
    至于VB的代码我不会写