Showing posts with label master page. Show all posts
Showing posts with label master page. Show all posts

Friday, November 19, 2010

Using Jquery in Master Pages

There are few things to notice :

1) try google CDN's
link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/sunny/jquery-ui.css" rel="stylesheet" type="text/css"/>
script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript">/script>
script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript">/script>

2) Put stepone in the head section of the Master page before Head Content Placeholder
head runat="server">
title>/title>
link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/sunny/jquery-ui.css" rel="stylesheet" type="text/css"/>


link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />



/head>

Monday, September 13, 2010

Jquery with master pages

Finally got it wirking for the master pages.

1)Link the below lines before the master cpntent in the master file. If its not working with the normal way
OLD:


NEW way point jquery to Web files:




2) Try goto content page. Try to make the custome .js file the same name as page e.g.
Default.aspx will have Default.js. This would help in the future.
and write the custom code in the Default .js file.

3)If you are using the User Controls in the Content pages even then you will follow the step 2: