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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:22:17+00:00 2026-06-05T03:22:17+00:00

I have four textboxes one combobox and one button ( and some other controls)

  • 0

I have four textboxes one combobox and one button ( and some other controls) in my page . Based on the values typed in the textboxes the related values are updated in the combobox. On clicking the submit button in my page It was giving the following error .

“Invalid postback or callback argument. Event validation is enabled using in configuration or in a page. For Secuity purposes,this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected . Use the ClientScriptManager.RegisterForEventsValidation method in order to register the postback or callback data for validation.”

Now in the page directive I added

<%@Page EnableEentValidation="false"> 

When I type the values in the four textboxes the corresponding value will appear in the cobobox . But when I select that combobox value, the selected value wil be deleted . What is the reason for this ?

<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="AddeChecklist.aspx.cs"
    Inherits="LabTrack.WebApplication.Echecklist.AddeChecklist" EnableEventValidation ="false" %>

<%@ Register TagPrefix="Labinal" TagName="AutoCompleteControl" Src="~/UserControls/AutoCompleteEnabledWebUserControl.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Styles/CheckListRev.css" rel="stylesheet" type="text/css" />
    <!-- Style for the page -->
    <link href="../Styles/AddeChecklist.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
    </asp:ScriptManager>
    <asp:Panel ID="ErrorMessagePanel" CssClass="ErrorPanel" Visible="true" runat="server">
        <div class="ErrorDiv">
            <asp:BulletedList CssClass="ErrorMessage" ID="ErrorMessageBulletedList" runat="server">
            </asp:BulletedList>
        </div>
    </asp:Panel>
    <div class="PageTitle">
        <asp:Label ID="PageHeaderLabel" runat="server"></asp:Label>
    </div>
    <div class="MainDiv">
        <div style="text-align: center;">
            <div class="PlaceHolder">
                <table id="formTable">
                    <tr>
                        <td>
                            <asp:UpdatePanel runat="server" ID="updatepanelCustomer" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <span class="boldLabelLong">Customer:</span><br />
                                    <asp:TextBox ID="CustomerNameTextBox" Width="200" runat="server"></asp:TextBox>
                                    <asp:HiddenField ID="IxCustomerHiddenField" runat="server" />
                                    <asp:Button ID="customerTriggerbutton" runat="server" Text="Button" Style="display: none;" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                        <td>
                            <asp:UpdatePanel runat="server" ID="updatepanelProgram" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <span class="boldLabelLong">Program:</span><br />
                                    <asp:TextBox ID="ProgramNameTextBox" Width="200" runat="server"></asp:TextBox>
                                    <asp:Button ID="programTriggerbutton" runat="server" Text="Button" Style="display: none;" />
                                    <asp:HiddenField ID="IxProgramHiddenField" runat="server" />
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="customerTriggerbutton" EventName="Click" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                        <td>
                            <asp:UpdatePanel runat="server" ID="updatepanelWorkPackage" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <span class="boldLabelLong">WorkPackage:</span><br />
                                    <asp:TextBox ID="WorkPackageNameTextBox" Width="200" runat="server"></asp:TextBox>
                                    <asp:HiddenField ID="IxWorkPackageHiddenField" runat="server" />
                                    <asp:Button ID="workPackageTriggerbutton" runat="server" Text="Button" Style="display: none;" />
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="programTriggerbutton" EventName="Click" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                        <td>
                            <asp:UpdatePanel runat="server" ID="updatepanelActivity" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <span class="boldLabelLong">Activity:</span><br />
                                    <asp:TextBox ID="ActivityNameTextBox" Width="200" runat="server"></asp:TextBox>
                                    <asp:HiddenField ID="IxActivityHiddenField" runat="server" />
                                    <asp:Button ID="activityTriggerbutton" runat="server" Text="Button" Style="display: none;" />
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="workPackageTriggerbutton" EventName="Click" />
                                    <asp:AsyncPostBackTrigger ControlID="activityTriggerbutton" EventName="Click" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="PlaceHolder">
                <asp:Label ID="TemplateLabel" Text="Template:" CssClass="ControlLabel" runat="server"></asp:Label>
                <asp:UpdatePanel runat="server" ID="updatepanelTemplate" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:DropDownList ID="TemplateSelectDropDownList" runat="server" Width="400" Visible="true"
                            AutoPostBack="true">
                        </asp:DropDownList>
                        <asp:HiddenField ID="IxTemplateHiddenField" runat="server" />
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="workPackageTriggerbutton" EventName="Click" />
                    </Triggers>
                </asp:UpdatePanel>
                <asp:Panel ID="SustainPanelTemplateOwner" Visible="true" runat="server">
                    <div>
                        <asp:Label ID="TemplateOwnerLabel" Text="Owner:" CssClass="ControlLabel" runat="server"></asp:Label>
                        <asp:TextBox ID="TemplateOwnerTextBox" CssClass="controlMargin" Width="400" runat="server"></asp:TextBox>
                    </div>
                </asp:Panel>
                <asp:HiddenField ID="IxDeliverableHiddenField" runat="server" />
                <asp:HiddenField ID="IxReleaseActionHiddenField" runat="server" />
                <asp:HiddenField ID="IxConfigHiddenField" runat="server" />
                <asp:HiddenField ID="IxTemplateOwnerHiddenField" runat="server" />
                <asp:HiddenField ID="TemplateSelectedSnameHiddenField" runat="server" />
                <asp:HiddenField ID="TemplateOwnerSelectedsNameHiddenField" runat="server" />
                <asp:HiddenField ID="DeliverableSelectedHiddenField" runat="server" />
                <div>
                    <asp:Label ID="DeliverableLabel" CssClass="ControlLabel" runat="server" Text="Deliverable:"></asp:Label>
                    <asp:TextBox ID="DeliverableTextBox" CssClass="controlMargin" Width="400" runat="server"></asp:TextBox>
                </div>
                <asp:Panel ID="SustainPanelConfig" Visible="true" runat="server">
                    <div>
                        <asp:Label ID="ConfigurationLabel" runat="server" Text="Configuration:" CssClass="ControlLabel"></asp:Label>
                        <select id="ConfigurationSelect" class="controlMargin">
                            <option></option>
                        </select>
                    </div>
                </asp:Panel>
                <asp:Panel ID="SustainPanelRelease" Visible="true" runat="server">
                    <div>
                        <asp:Label ID="ReleaseActionLabel" CssClass="ControlLabel" runat="server" Text="Release Action:"></asp:Label>
                        <asp:TextBox ID="ReleaseActionTextBox" CssClass="controlMargin" Width="400" runat="server"></asp:TextBox>
                    </div>
                </asp:Panel>
                <asp:Panel ID="SustainPanel" Visible="true" runat="server">
                    <div class="SustainPanelControls">
                        <div>
                            <asp:Label ID="ChangeLabel" Text="Change #: " runat="server"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="ChangeTextBox" Width="110" runat="server"></asp:TextBox>
                        </div>
                        <div>
                            <asp:Label ID="SupplementLabel" Text="Supplement: " runat="server"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="SupplementTextBox" Width="80" runat="server"></asp:TextBox>
                        </div>
                        <div>
                            <asp:Label ID="NewWrrLabel" Text="WRR #: " runat="server"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="NewWrrTextBox" Width="80" runat="server"></asp:TextBox>
                        </div>
                        <div>
                            <asp:Label ID="DddLabel" Text="3D: " runat="server"></asp:Label>
                        </div>
                        <div>
                            <asp:TextBox ID="DddTextBox" Width="80" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div>
                        <table id="DesignDataTable2">
                            <tr>
                                <td>
                                    <asp:Label ID="AllFbSheetsWrrLabel" Text="All F/B Sheets w/WRR #:" CssClass="ControlLabel" runat="server"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox CssClass="completeControl" ID="AllFbSheetsWrrTextBox" Width="588" Rows="2"
                                        TextMode="MultiLine" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </div>
            <div class="EditButtonGroup">
                <input id="EditButton" type="button" value="Edit" class="ButtonSettings" />
                <input id="RemoveButton" type="button" value="-" class="ButtonSettings" />
                <input id="AddButton" type="button" value="+" class="ButtonSettings" />
            </div>
        </div>
        <div class="ViewData">
            <div class="ViewDataDiv">
                <table id="DesignDataTable" class="designDataTable">
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="submitButtonDiv">
            <asp:Button ID="SubmitButton" runat="server" Text="Button Text" class="submitButtonCreateChecklist" />
        </div>
    </div>
</asp:Content>
  • 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-05T03:22:19+00:00Added an answer on June 5, 2026 at 3:22 am

    You are creating new values on the client side, and posting them back to the server.

    For security reasons ASP.NET implements “event validation”. When even validation is enabled, if the server creates a combo with 3 possible values, it will only accept this values on postback. If you create a different value and send it back to the server, you get the error you’re referring to.

    Here you have some info:
    Page.EnableEventValidation Property

    You can use ClientScriptManager.RegisterForEventValidation Method if you know which are the possible values generated on the client side, or disable validation completely if you don’t know them in advance.

    To disable validation:

    You set the EnableEventValidation property by setting the enableEventValidation attribute of the @ Page directive or the enableEventValidation attribute of the pages element in the Web.config file. If you set this property in code, you must set it before the page is initialized.

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

Sidebar

Related Questions

I have one form with four textbox and every textbox has requirefieldvalidator. One Button
I have four related tables and, using the following query, combine them with 4
I have four buttons which has click able property. Clicking on button will make
I have four classes which share some arrangement of four properties. I have currently
I have two web pages: one consists of four asp.net text boxes and one
I have two TextRanges from two different RichTextBoxes, and four strings from regular textboxes.
I have a GridView in Which I have four TextBoxes in the Template Field.
I have a repeater consisting of several textboxes and four buttons. The four buttons
I have four text boxes all with similar code. Each one on hover fades
I have to get a running total from four textboxes and have that total

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.