Friday, July 8, 2011

Adding JavaScript function in a common file in asp.net

In your ASP.Net project instead of adding JavaScript functions on each and every page,we can create a single file with JavaScript functions and that file can be included in the header section of aspx pages where needed. If we are using master pages then include file in Master Pages.


Sample:

<head id="Head1" runat="server"><title>My Sample</title>


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

<script src="../Scripts/Locum.js" type="text/javascript"></script>

</head>

No comments:

Post a Comment

Your project is not referencing the "MonoAndroid,Version=v8.1" framework. Add a reference to "MonoAndroid,Version=v8.1" in the "frameworks" section of your project.json, and then re-run NuGet restore.

I had  the same problem. Reason: file obj/project.assets.json target "MonoAndroid,Version=v7.1" when my project target androi...