On the Master page, the relative paths of Html controls img, a, javascript, and CSS in the Master node are incorrect.

Source: Internet
Author: User

1. Add the ControlRunat = "server"

After modification:

2. <a> controlsAddRunat = "server"

 

After modification:

<A href = "Report/WCDMAHSDPA. aspx" runat = "server"> wcdma hsdpa </a>

3. javascript

 

Path Problem, add a section <% = Request. ApplicationPath %>

<Script src = "<% = Request. ApplicationPath %> sdmenu/sdmenu. js">

In this way, do not place the script code in the head and put it in the Body.

 

1. Add the following to the head label in MasterPage. master: <asp: ContentPlaceHolder ID ="HeadHolder"Runat =" server ">
</Asp: ContentPlaceHolder>

2. Add

<Asp: Content ID = "HeaderContent2" ContentPlaceHolderID ="HeadHolder"Runat =" Server ">
<Link rel = "stylesheet" href = "../css/layout.css" type = "text/css" media = "screen"/>
<Script src = "../js/jquery. tablesorter. min. js" type = "text/javascript"> </script>

</Asp: Content> in this way, you can specify the path to the Content page relative to js and css.

3. The Content control must have the same ID!

 

1. CSS: <link rel = "stylesheet" href = "~ /Css/layout.css "type =" text/css "media =" screen "/> "~ "Symbol

2. Master page JS: <% = "<script type = 'text/javascript 'src = '" + ResolveUrl ("~ /Js/jquery-1.5.2.min.js ") +" '> </script> "%>

3. Dashboard page img '/>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.