thedeal56
asked on
Set Template Label Value To Vb.Net Variable
I need to create a vb.net variable from a label's value inside of a template field. This is what my template looks like:
How can I take the value of Label1 and set it to the string "ctlmap" in the following code?:
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("ctlmap") %>'></asp:Label> </ItemTemplate>
</asp:TemplateField>
How can I take the value of Label1 and set it to the string "ctlmap" in the following code?:
Sub GridView1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim row As GridViewRow = GridView1.SelectedRow
dim ctlmap,bill_group,bill_parcel,propertyid,special as string
ctlmap = HOW DO I SET THIS TO LABEL1?
Session("ctlmap") = ctlmap
response.redirect("Totals_test.aspx")
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER