Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8715393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:49:59+00:00 2026-06-13T05:49:59+00:00

I am developing a JQuery mobile application in ASP.net MVC4 razor using VSRC, In

  • 0

I am developing a JQuery mobile application in ASP.net MVC4 razor using VSRC, In cshtml page section scripts are written like the following.

@section Scripts
 {
  <script type="text/javascript">
     $(document).ready(function () {
        jQuery("#register-form").validationEngine();
  });
 </script>
}

In layout.cshtml I have…

"@RenderSection("Scripts", false)".

It works for the initial page (page which render first), but when it linked via “ActionLink” to other pages then the section script written in those pages are not working.

Any ideas?

Please help, Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:50:01+00:00Added an answer on June 13, 2026 at 5:50 am

    I had the same problem. In order to workaround this I just avoid the “Scripts” section.

    Remove @section Scripts{ from every page and put your js code at the end of the page.

    For your example, make sure to move @Scripts.Render("~/bundles/jquery", "~/bundles/jquerymobile") to the line before </head> in _Layout.cshtml. This will guarantee that jquery is loaded when it gets to $(document).ready(function () {...

    ===============================================

    explanation about why it happens and other solution. http://lextell.com/blog/2012/10/23/script-section-is-not-rendered-in-asp-net-mvc-4-jquery-mobile-when-navigate-to-another-page-2/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a JQuery mobile application using asp.net MVC 4 razor. In my
We're developing a jQuery Mobile application using ASP.NET 3.5, and we've run into a
I'm developing a mobile application using jQuery. On Microsoft Azure, I have an Asp.Net
I am developing an application using PhoneGap and jQuery Mobile. Now when the page
We are developing JQuery Mobile app using RC1 + ASP.NET MVC3. My question is:
I am developing an application using jquery mobile and flot charts. In That i
I am developing an application using jQuery mobile 1.1.0 RC1 and phonegap 1.5.0 I
I am developing an events page using jquery mobile. I have a stylish way
I am developing an application whose front-end is built using jquery mobile. This application
I am developing a web application using asp.net mvc... I am listing out the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.