Vinit Patel

hyperlink – dynamic navigateurl

Posted on: September 25, 2009


if you want to pass mutiple parameters

<asp:HyperLink ID=”View” Text=”View<br />” runat=”server”

NavigateUrl=’<%# String.Format(“~/{1}?id={0}”, Eval(“FILE_NAME”),Eval(“FILE_NAME_WITHOUT_EXTENSION”)) %>‘></asp:HyperLink>

Your URL

<asp:HyperLink ID="HyperLink2" NavigateUrl='<%# String.Format("{0}?categoryid={1}", Eval("CategoryLinkURL"), Eval("CATEGORY_ID")) %>
 runat="server"></asp:HyperLink>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Calendar

September 2009
M T W T F S S
« Jul   Oct »
 123456
78910111213
14151617181920
21222324252627
282930  

Stats Of Blog

  • 7,092 hits

Cluster Map

%d bloggers like this: