469,945 Members | 2,278 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

How to Assign Paramer & Values to a hyperlink column in a datagrid

Dear Friends
I would like to know how to assign some parameter and values to the url in a datagrid hyperlink column..
i have datagrid with 5 items and i made the column as hyperlinkcolumn and here i want to pass some parameters and values to the next page along with the url. can any one help me out this problem please.
i will Appreciate your help
Nov 18 '05 #1
1 1650

<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container,
"DataItem.Col1") %>' NavigateUrl='<%# "page.aspx?col1=" +
DataBinder.Eval(Container.DataItem,"col1") + "&col2=" +
DataBinder.Eval(Container.DataItem,"col2") %>'
ID="Hyperlink1"></asp:HyperLink>

Av.
"YSRao" <ys***********@yahoo.com> wrote in message
news:5A**********************************@microsof t.com...
Dear Friends,
I would like to know how to assign some parameter and values to the url in
a datagrid hyperlink column...
i have datagrid with 5 items and i made the column as hyperlinkcolumn and
here i want to pass some parameters and values to the next page along with
the url. can any one help me out this problem please..
i will Appreciate your help

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Rudolph Araujo | last post: by
2 posts views Thread by Ravikanth[MVP] | last post: by
1 post views Thread by D. Shane Fowlkes | last post: by
1 post views Thread by I am Sam | last post: by
19 posts views Thread by Joe | last post: by
3 posts views Thread by TPhelps | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.