0

我正在尝试使用来自所选 gridview 行的链接在我的网页上填充 hyperlink1 文本。我无法收回任何价值。有任何想法吗?

Private Sub GridView1_RowCommand(sender As Object, e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand

    If e.CommandName = "Select" Then
        Dim index As Integer = Convert.ToString(e.CommandArgument)
        Dim row As GridViewRow = GridView1.Rows(index)
        Me.NameTextBox.Text = Server.HtmlDecode(row.Cells(1).Text)
        Me.Product1DropDown.SelectedValue = Server.HtmlDecode(row.Cells(2).Text)
        Me.Product2DropDown.SelectedValue = Server.HtmlDecode(row.Cells(3).Text)
        Me.JobNumberTextBox.Text = Server.HtmlDecode(row.Cells(4).Text)
        Me.AdTextBox.Text = Server.HtmlDecode(row.Cells(5).Text)
        Me.MediaTypeDropDown.SelectedValue = Server.HtmlDecode(row.Cells(6).Text)
        Me.AuthorDropDown.SelectedValue = Server.HtmlDecode(row.Cells(7).Text)
        Me.PublicationDropDown.SelectedValue = Server.HtmlDecode(row.Cells(8).Text)
        Me.RunDatesTextBox.Text = Server.HtmlDecode(row.Cells(9).Text)
        Me.CostTextBox.Text = Server.HtmlDecode(row.Cells(10).Text)
        Me.CostCenterTextBox.Text = Server.HtmlDecode(row.Cells(11).Text)
        Me.CommentsTextBox.Text = Server.HtmlDecode(row.Cells(12).Text)
        Me.HyperLink1.Text = Server.HtmlDecode(row.Cells(13).Text)
        Me.HyperLink1.NavigateUrl = Server.HtmlDecode(row.Cells(13).Text)
        Me.TextBox1.Text = Server.HtmlDecode(row.Cells(14).Text)
        Label14.Text = "Update"
    End If

End Sub
4

0 回答 0