Hi all,
Is there anyone with a simple sample for string concatenating in a databinding field...
Here's my case.
I have a RadGrid with a hyperlink column. I want the link to link to a customer, but also to add a querystring parameter called returnurl.
The value of the ReturnUrl is the AbsoluteUri of the page. It can vary by it's QueryString.
A simple thing in many ways. And I could solve this by using the databound events, but I just think that another solution must be possible.
This is one take I tried. ReturnUrl is a public property on the page, returning the AbsoluteUri of the page. I did remember to call DataBind on the page.
I also tried to make the call directly to the Request.Url.AbsoluteUri in stead of the property.
I also tried with ' in stead of "
So, if anyone has a take on this, please help me :)
Kind regards,
Morten
Is there anyone with a simple sample for string concatenating in a databinding field...
Here's my case.
I have a RadGrid with a hyperlink column. I want the link to link to a customer, but also to add a querystring parameter called returnurl.
The value of the ReturnUrl is the AbsoluteUri of the page. It can vary by it's QueryString.
A simple thing in many ways. And I could solve this by using the databound events, but I just think that another solution must be possible.
This is one take I tried. ReturnUrl is a public property on the page, returning the AbsoluteUri of the page. I did remember to call DataBind on the page.
<telerik:GridHyperLinkColumn DataTextField="Name" HeaderText="Name" |
UniqueName="ClientName" DataNavigateUrlFields="ID" |
DataNavigateUrlFormatString="clEdit.aspx?clID={0}&returnurl=<%# ReturnUrl |
%>" > |
I also tried to make the call directly to the Request.Url.AbsoluteUri in stead of the property.
I also tried with ' in stead of "
So, if anyone has a take on this, please help me :)
Kind regards,
Morten