+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Url Problem in sitefinity

Url Problem in sitefinity

5 posts, 0 answered
  1. Deepak
    Deepak avatar
    17 posts
    Registered:
    30 Aug 2010
    31 Aug 2010
    Link to this post
    I made the sub page Management.aspx inside the Aboutus.aspx .In the About.aspx i am using slide show control which is already include in creativity.master page and aboutus.aspx page use this masterpage.
                                               The problem is that when i am run this site and click on subpage( Management.aspx) the slide show is not working.
                                           because the subpage (Mangement.aspx) is come from ( http://localhost/Elabsweb/Aboutus/ManagementTeam.aspx) means Management.aspx page take the resources from parent folder.?
    why this parent folder is created by default.
    so on account of this page could not upload the slideshow.js file and slideshow.cs file.

    The code of Slideshow.ascx is --><%@ Control Language="C#" AutoEventWireup="true" CodeFile="Slideshow.ascx.cs" Inherits="UserControls_Slideshow" %>
    <link rel="Stylesheet" type="text/css" href="Sitefinity/UserControls/Slideshow/slideshow.css" />
    <script type="text/javascript" src="Sitefinity/UserControls/Slideshow/mootools.js"></script>
    <script type="text/javascript" src="Sitefinity/UserControls/Slideshow/slideshow.js"></script>
    <div id="show" class="slideshow">
        <img />
    </div>


    and error is:--> Failed to load source for: http://localhost/Elabsweb/Aboutus/Sitefinity/UserControls/Slideshow/slideshow.js




     
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    31 Aug 2010
    Link to this post
    Hello Deepak,

    You can use CssFileLink and JsFileLink controls. You have this problem because you use HTML controls to add the scripts. You will face the same issue on each ASP.NET website when you have some page level  hierarchy.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Deepak
    Deepak avatar
    17 posts
    Registered:
    30 Aug 2010
    01 Sep 2010
    Link to this post

      ok THANKS
    But tell me where i have to use this link file in our project @ in MASTER PAGE  or ASP page
    Actully I m using the slide show control in Master page and using this master page as a template in 11 page of our site
    but when i m use same template for sub navigation page (About us--> Mangement.aspx) it does not show slide show.
    So plz tell me where we use these link and how.
     CssFileLink and JsFileLink controls.
    Thanking You
    Deepak Sharma
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Sep 2010
    Link to this post
    Hello Deepak,

    If you want the script and css files to be registered on all pages that uses these template you have to declare the controls in your master page. If you want to have them on particular page you can use user/custom controls.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Deepak
    Deepak avatar
    17 posts
    Registered:
    30 Aug 2010
    01 Sep 2010
    Link to this post
    Thank's for Help.
Register for webinar
5 posts, 0 answered