Link to home
Start Free TrialLog in
Avatar of thedeal56
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:
 
<asp:TemplateField>
                    <ItemTemplate> 
                    <asp:Label ID="Label1" runat="server"  Text='<%# Bind("ctlmap") %>'></asp:Label>  </ItemTemplate> 
                    </asp:TemplateField>

Open in new window


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

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Tuyau2poil
Tuyau2poil

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thedeal56
thedeal56

ASKER

That did it.  Thanks.