error on postback

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/1/2010 2:12:39 AM
Gravatar
Total Posts 98

error on postback

Hi,

I get this error when I try to save in database some information

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.

 

I  set in web.config the property enableEventValidation="true" but same server error

Please tell me anyone how resolve

To this moment the custom module works without problems (today i discovered that not working anymore)

 

Thanks, Valik

3/2/2010 7:06:53 AM
Gravatar
Total Posts 18439

Re: error on postback

This kind of error can happen when you are dynamically adding controls to the page. You need to make sure the same controls are created during the init event during the postback request.

Also, you must keep in mind that PageLoad event always happens before button click events so if you are initializing control values from page load you often need to wrap it in if(!IsPostBack) so that you don't set them again during postback.

More help from google.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.