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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:59:51+00:00 2026-06-18T01:59:51+00:00

Javascript var form = document.getElementById(‘date_budget’); pop(”, ‘exp_upd’, ’95’, ’80’); form.action = test.aspx; form.target =

  • 0

Javascript

var form = document.getElementById('date_budget');
pop('', 'exp_upd', '95', '80');
form.action = "test.aspx";
form.target = 'exp_upd';
form.submit();

HTML

<form id="date_budget" name="date_budget" method="post">
    <table>
    <tr>
        <!--#include file="zone.inc" -->
        <td id='mlodg_loc'><select name="loc" id="loc">
                <option value="Select Location">Select Location</option>
            </select></td>
        <td>
            <select name="month" id="month">    
                <option value="1">1</option>
            </select>
        </td>
        <td>
            <select name="year" id="year">
                <option value="2013">2013</option>
            </select>
        </td>
    </tr>
    </table>
</form>

The above code opens a popup window, but when I change the html by adding the runat attribute, I am getting “Validation of viewstate MAC failed”, and some extra junk. the modified html is below

<form id="date_budget" name="date_budget" method="post" runat="server">
    <table>
        <tr>
            <!--#include file="zone.inc" -->
        <td id='mlodg_loc'><select name="loc" id="loc" runat="server">
            <option value="Select Location">Select Location</option>
            </select></td>
            <td>
                <select name="month" id="month" runat="server"> 
                <option value="1">1</option>
                </select>
            </td>
            <td>
                <select name="year" id="year" runat="server">
                <option value="2013">2013</option>
                </select>
            </td>
        </tr>
    </table>
</form>

Is there any workaround to use both the runat server and using the same element in JS, without using those asp tags something like <%= hidBT.ClientID %> I don’t want that any other way.

  • 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-18T01:59:52+00:00Added an answer on June 18, 2026 at 1:59 am
    1. Try to add this <pages enableViewStateMac="false"> in your web.config (or)

    2. Try to Change this <form id="date_budget" name="date_budget" method="post"> to

      this <form id="date_budget" name="date_budget" runat="server">

      It shouldn’t specify method or action

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

Sidebar

Related Questions

var projectWindow; function btnNew_Click() { var form = document.createElement(form); form.setAttribute(target, projectWindow); form.setAttribute(method, post); form.setAttribute(action,
function getUsername() { var userName = document.form.screen_name.value; document.getElementById(display).innerHTML = userName; var apiName = https://api.twitter.com/1/users/lookup.json?screen_name=
I have the following Javascript code: function checkIfValid(){ var form = document.createuserform; var valid
I have this in my JavaScript var identifier = event.target.id; it works on Chrome
You can backreference like this in JavaScript: var str = 123 $test 123; str
So I have the following JavaScript: <script language=JavaScript> function reload(form){ var val=form.profile.options[form.profile.options.selectedIndex].value; self.location='?profile=' +
Im trying to set the action of a form with javascript! How come it
I'm having a little problem with a validation thing in javascript. <form action=insert.php id=form
Possible Duplicate: JavaScript: var functionName = function() {} vs function functionName() {} AFAIK, there
I have this JavaScript: var Type = function(name) { this.name = name; }; var

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.