P
Peter
Hello:
I have a hyperlink field in my gridview that redirects to a new page. I
would like to set a session variable to a value from the grid row where the
hyperlink was clicked before the redirection occurs. Is this possible? Can
anyone offer any suggestions?
Peter
<asp:GridView ID="Townlist" runat="server" >
<Columns>
<asp:HyperLinkField DataTextField="TownName"
HeaderText="Town" NavigateUrl="search.aspx" />
<asp:BoundField DataField="Townname" HeaderText="Town"
SortExpression="Town" />
<asp:BoundField DataField="Expires" HeaderText="Expires"
SortExpression="Expires" />
<asp:ButtonField ButtonType="Button" CommandName="Zip"
Text="Download" />
</Columns>
</asp:GridView>
I have a hyperlink field in my gridview that redirects to a new page. I
would like to set a session variable to a value from the grid row where the
hyperlink was clicked before the redirection occurs. Is this possible? Can
anyone offer any suggestions?
Peter
<asp:GridView ID="Townlist" runat="server" >
<Columns>
<asp:HyperLinkField DataTextField="TownName"
HeaderText="Town" NavigateUrl="search.aspx" />
<asp:BoundField DataField="Townname" HeaderText="Town"
SortExpression="Town" />
<asp:BoundField DataField="Expires" HeaderText="Expires"
SortExpression="Expires" />
<asp:ButtonField ButtonType="Button" CommandName="Zip"
Text="Download" />
</Columns>
</asp:GridView>