我有以下过程,当单击选择按钮时,会从单击选择按钮的 GridView 中的行中返回多个值。这些值存储为变量。此过程作为代码背后 (VB) 的一部分执行。我想将变量 BodyOfEmail 传递给非代码隐藏(aspx)页面并创建一个列出值的弹出窗口。我想我遇到的主要问题是如何将弹出消息链接到这个 onclick 过程。
Public BodyOfEmail As String
Protected Sub GridView2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView2.SelectedIndexChanged, GridView1.SelectedIndexChanged
Dim Number, BodyOfEmail, FullName As String
Dim RowValue As Double
RowValue = GridView1.SelectedDataKey.Value - 1
Number = GridView1.Rows(RowValue).Cells(5).Text.ToString
FullName = GridView1.Rows(RowValue).Cells(25).Text.ToString
BodyOfEmail = Number & " " & FullName
End Sub
谢谢