Unable to validate data when posting to another page

  • Thread starter Thread starter Stu
  • Start date Start date
S

Stu

Hi,

When I try and use Javascript to post page form data from one aspx page to
another I get the error 'Unable to validate data. '. I am not trying to read
the data using web controls I am trying to read using the request object
(Request.Form("FieldName")).

I have had this working before but get this error when trying to reproduce
the page in a new project. Anyone any ideas?

Thanks in advance,

Stu
 
Picking up items on another page may or may not be the issue here. For example:

* Do you have validation controls on the page? If so, they will attempt to
fire, but not be able to pick up from ViewState, as you have pushed to
another page.

Overall, it is better to have a single page as both form and form handler
(at least until the 2.0 Framework). Use panels to show/hide content and
confirmation. If you step outside of this box, you are working all of the
form handlers yourself.

Without seeing code, I can only guess at what you are doing.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
This is quite a large e-comm site and the page I am posting from already has
~8k lines of code and is showing/hiding 7 panels. I am trying to post to a
shopping basket is ~4k lines of code and contains 4 panels. The page layout
are so complex now that VS takes around 5 seconds to load the design
view....time for a rethink I guess.

Roll no .Net 2 :-)
 
Back
Top