Relative URLs with HtmpPlaceHolder

2 posts, 0 answers
  1. Terry
    Terry avatar
    157 posts
    Member since:
    Jul 2009

    Posted 18 Nov 2009 Link to this post

    Hi:

    Is there a way to specify a relative URL for PDF files in my XAP file?  Or does it have to be an absolute URL read from the Internet?
  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 19 Nov 2009 Link to this post

    Hello Terry,

    You can specify relative paths for your PDF documents but they have to be relative to the .xap file of your Silverlight application i.e. the HtmlPlaceholder cannot render documents embedded in your .xap file. Whatever path you set to the HtmlPlaceholder, you should be able to open it yourself in a browser. So, there is no need for the PDFs to be hosted remotely (on another server) - they can be part of the same web project that hosts your Silverlight application. Let me know if you have any other questions.

    Kind regards,
    Tihomir Petkov
    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.
  3. DevCraft banner
Back to Top