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 486343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:29:37+00:00 2026-05-13T01:29:37+00:00

I have a home page with a search box and a button on it.

  • 0

I have a home page with a search box and a button on it.

I click the search button and i go to a results page.

the results page also has a search button and when i click it i get the error Validation of viewstate MAC failed

<% using( Html.BeginForm("Result", "Search" )){ %>
<%= Html.TextBox("SearchText", Model.SearchText)%>
<input value="" type="submit"/>

Both pages contain the above piece of code.

If i use the same master page for both pages i don’t get the error. if they use different master pages i get the error.

i have turned off enableEventValidation and viewStateEncryptionMode and i still get the error.

UPDATE

When I press the button in both views, the views ActionResult is called, data is collected but when i say return View(myFormViewModel) I get the error.

So all’s good as far as the controller is concerned I think.

  • 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-05-13T01:29:38+00:00Added an answer on May 13, 2026 at 1:29 am

    Do your pages or master pages contain any declarative controls? Generally these are elements that have a runat=”server” somewhere in the markup.

    You can also see this error if you’re using the built-in anti-XSRF helpers. If you have an action decorated with [ValidateAntiForgeryToken], be sure that any form posting to it contains a call to Html.AntiForgeryToken().

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

Sidebar

Related Questions

I have a web application which has a search facility. On the home page
I have an application built using JSF1.2. I have a home page which has
we have a wpf application..in the Home page we have Work,Help,Approve Search tabs.. When
I have a jquerymobile site. One of the pages has a search box with
I have a domain-specific, specialized search engine. The home page of the site presents
I have a big search on my home-page and when the user types in
I have a single text box form on my home page (/). Right now
I have this page which loads quotes. It has a search form wherein if
I have a search query form on my home page (/) <% form_tag(search_path, :method
I have an ASP.NET home page where user provides his login ID. Depending on

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.