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

  • Home
  • SEARCH
  • 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 8025693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:14:48+00:00 2026-06-04T23:14:48+00:00

Web Config: <add key=ClientValidationEnabled value=true/> <add key=UnobtrusiveJavaScriptEnabled value=true/> JavaScript referenced files: <script src=@Url.Content(~/Scripts/jquery-1.7.2.min.js) type=text/javascript></script>

  • 0

Web Config:

<add key="ClientValidationEnabled" value="true"/>
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>

JavaScript referenced files:

<script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js") type="text/javascript"></script>

CSHTML page:

@using (Ajax.BeginForm(new AjaxOptions { UpdateTargetId = "result", LoadingElementId = "progress", InsertionMode = InsertionMode.Replace }))
{
    <div class="form">
        <div class="emailBox">
            <input id="email" name="email">
            <input type="submit" value="Join Us">
        </div>

        <div id="result">
        </div>
        <div id="progress" style="display:none;">
            <img src= "@Url.Content("~/Content/images/Ajax-loader-bar.gif") ">
        </div>
    </div>
}

Controller.cs:

    [HttpPost]
    public string Index(SignUpModel model)
    {
        return "Hello";
    }

What’s the reason when i click on the SUBMIT button, the entire page gets replace with a white page that says “hello”. I was under the impression that Ajax.BeginForm would replace the content of the DIV RESULT.

What am I doing wrong??

Also, the LoadingElementID
Would it HIDE automatically when the AJAX call will return its value?

=========================
ANSWER
Firebug showed that one of the Referenced JS files was NOT FOUND.
After I fixed that ..it all worked as expected.

Thanks guys

  • 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-04T23:14:49+00:00Added an answer on June 4, 2026 at 11:14 pm

    Make sure that you have jquery, Jquery.unobtrusive-ajax script files added on your page where you are using Ajax.BeginForm. Furthermore, check in firebug (or any debugger tool) for presence of javascript errors that might be causing ajax to fail and triggering full post back of the entire page. And yes, the loadingelement should hide automatically when the result of ajax post comes back.
    Also make sure that your web.config contains following setting

    <appSettings>
            <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
        </appSettings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this in my web.config <add key=DateFormat value=dd/MM/yy/> And I want to use
How to update settings in web.config File in ASP.Net ? <appSettings> <add key=DataSource value=localhost\SQLEXPRESS,1433>
I have a key in the web.config file like: <add key=MailFrom value=my@email.com/> I need
I have the following appSettings key-values in a web.config file: <add key=SomeSettings.Received value=Mottatt/> <add
Is it possible to transform the following Web.config appSettings file: <appSettings> <add key="developmentModeUserId" value="00297022"
I have this variable defined in my web.config file : <appSettings> <add key =version
I have a UserControl which I have added to my web.config <add tagPrefix=BCF src=~/controls/MyMessageBox.ascx
How can I add and read the value from web.config file?
I have this in my code: <script type=text/javascript src=path?key=1234567890> </script> I added this in
How do I access a key value from web.config in my Razor view. This

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.