Technical support This forum is closed.
Version 1.x > Technical support > datagrid link View modes: 
User avatar
Member
Member
kamran - 8/24/2006 7:01:27 AM
   
datagrid link
I have written a user control and have registered using CMS, which is a success but i have a slight problem..

I am using a datagrid not a cms one, which gets data from the another database. In the datagrid I have to provide a link with one parameter which points to another web page. In the master page i am using breadcrumbs so when the user clicks on the link it directs to that web page and shows the link in the breadcrumb.

the problem is how can i first take the user to that web page using the correct URL
using this in each row of the datagird
<a href="<%=%>?ID=somevallue">

Also making sure that link appears in the breadcrumb.

thanls

User avatar
Guest
admin - 8/28/2006 9:13:46 AM
   
Re: datagrid link
Hello,

if you need to create a link to some page managed by Kentico CMS, you need to ensure that your DataSource contains the AliasPath column of the CMS_Tree table. Then, you can get the URL of the page like this:
<%# ResolveUrl("~/.") + Eval("AliasPath") + ".aspx" %>

Best Regards,