This is a migrated thread and some comments may be shown as answers.

Not able to set value for SourceUrl property

1 Answer 71 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
zalak m
Top achievements
Rank 1
zalak m asked on 13 Jan 2010, 09:49 PM
Hi,

I have two projects in one application.One of my project contains bunch of html files and I wanted to access these files in another project in same application.
So how can i set the value of SourceUrl property of RadHtmlPlaceholder from the code behind?

I did the following, but it does not return me correct path:
this.RadHtmlPlaceholder1.SourceUrl= new Uri("/AssemblyName;component/fileName.htm",UriKind.Relative);


1 Answer, 1 is accepted

Sort by
0
Accepted
Valentin.Stoychev
Telerik team
answered on 14 Jan 2010, 06:56 AM
Hello zalak m,

You should use a url that the browser can render. URL from the dll is not allowed. Just copy your files in specific directory of your server and set the url to link to them.

Sincerely yours,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
HTMLPlaceHolder
Asked by
zalak m
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or