Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding data to DropDown causes invalid post back

Status
Not open for further replies.

blah2468

Technical User
Mar 14, 2007
11
CA
Hi there,

I have a drop down in a web user control. Its auto postback is set to false. This user control goes inside a multi view in my main page.
User clicks on a link to activate the multiview. Now, the first time around, when user clicks on the link, this web user control loads just fine. The second time around, however, I get the attached error.

After a bit of investigation, I commented out the part where data is being added to my drop down and everything went smoothly (except I wouldn't have a populated drop down). However, when I uncomment this area again, I keep on getting the following error:


Code:
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.

Thanx for your help. Let me know if I you need more info to give me a hand. Bare in mind this is not my original code and so I might be overlooking something simple.. so any help is appreciated.

cheers!
 
For future reference, I think this belongs in the ASP.net forum forum855

Also, you should post your code causing the error, not just the error. If you post back with code, maybe someone can help.

Good LUck,

Alex



Ignorance of certain subjects is a great part of wisdom
 
oh right, sorry!

Just to close the subject, I have the solution:
the name of my Drop Down was conflicting with a drop down in my main page!!! All I had to do was to rename my drop down.

cheers!!
 
Glad you got it sorted :)

The simple things are the most frustrating!

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top