using a form in an UpdatePanel


Ned White


is it possible to use a html style form inside an UpdatePanel ?
Like that;

<%-- Page: Default.aspx --%>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<form id="try1" method="post" action="Default.aspx">
<input type="text" name="ExpDate_Month" value=""/>
<select name="cardType">
<option value="1">Visa</option>
<option value="2">MasterCard</option>
<input type="submit" value="Submit Payment"/>
<input type="hidden" name="total1" value="7.50">

<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<asp:Button ID="Btn1" runat="server" Text="Button" onclick="Button1_Click"
<br />
<asp:Label ID="lblName" runat="server" Text="Label"></asp:Label>



I am getting error when i use any controls of second UpdatePanel
(UpdatePanel2 )
Error Message is:

Microsoft JScript runtime error:
Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or
callback argument. Event validation is enabled using <pages
enableEventValidation="true"/> in configuration or <%@ Page
EnableEventValidation="true" %> in a page. For security 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.RegisterForEventValidation method
in order to register the postback or callback data for validation.


bruce barker

yes, but because its an html form, it will do a standard form post and
replace current page (or whatever is the target) rather than an async

-- bruce (

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question