如何将ID值从一个页面传递到另一个页面

时间:2014-08-28 06:34:53

标签: asp.net vb.net

我的表中有三个超链接。 这些超链接用于水晶报告的打印预览。 问题是水晶报告的打印预览的选定内容应该等于来自另一页的ID。

这里是后面的代码,这个页面将负责ID的传递和重定向

    Sub OnFinishButtonClick(ByVal sender As Object, ByVal e As WizardNavigationEventArgs) Handles Wizard1.FinishButtonClick
    If Wizard1.ActiveStepIndex = 6 Then
        ''au1.regau1()
    ElseIf Wizard1.ActiveStepIndex = 7 Then
        'au2.regau2()
    End If
    Response.Redirect("~/operator/renewInstruction.aspx")
End Sub

这是另一页。 这是我在表格中的超链接:

<table class="req">
  <tr class="field_value3">
     <td><asp:Label ID="req3" runat="server" Text="A. Affidavit of Undertaking(FVO shall comply with the requirements of R.A. 8550)" ></asp:Label></td><td>
     <asp:HyperLink ID="au8550_h4" runat="server" ForeColor ="blue" Target="_Blank"><asp:Image ID="Image3" runat="server" ImageUrl ="~/images/preview.png" Height="25px" Width="30px" ImageAlign="AbsMiddle"/></asp:HyperLink></td>
  </tr> 
     <tr class="field_value4">
     <td><asp:Label ID="req4" runat="server" Text="B. Affidavit of Undertaking to the effect that the FVO shall comply with FAQ No. 232 (applicable only to fishing vessels which intend to operate in Manila Bay)" ></asp:Label></td><td>
     <asp:Hyperlink ID="au232_h3" runat="server" Target="_blank" ForeColor ="Blue" ><asp:Image ID="Image4" runat="server" ImageUrl ="~/images/preview.png" Height="25px" Width="30px" ImageAlign="AbsMiddle"/></asp:Hyperlink></td>
  </tr> 
    <tr class="field_value5">
    <td><asp:Label ID="req5" runat="server" Text="C. Certification to the effect that the fishing vessel is not involved in any administrative or judicial case" ></asp:Label></td><td>
    <asp:HyperLink  ID="Cert_h5" runat="server" Target ="_blank" ForeColor ="blue"><asp:Image ID="Image5" runat="server" ImageUrl ="~/images/preview.png" Height="25px" Width="30px" ImageAlign="AbsMiddle"/></asp:HyperLink></td>
  </tr> 
</table>  

这是超链接背后的代码:

au232_h3.NavigateUrl = "~/operator/printAU232.aspx?Au232VesselID=" & Session("vid")
            au8550_h4.NavigateUrl = "~/operator/printAu8550.aspx?Au8550VesselID=" & Session("vid")
            Cert_h5.NavigateUrl = "~/operator/printCERT.aspx?CertVesselID=" & Session("vid")    

如何将vid的值传递给其他页面,以便它成为选择水晶报表的打印预览内容的唯一基础。

0 个答案:

没有答案