473,322 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Unable to validate data when posting to another page

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
Nov 19 '05 #1
2 1610
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!
***************************

"Stu" wrote:
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

Nov 19 '05 #2
Stu
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 :-)
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:A2**********************************@microsof t.com...
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!
***************************

"Stu" wrote:
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

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: FabFreddy | last post by:
Hi, I can't find out what the problem is with the error message below! I get it when I go from one to another page with controls in these pages. Anyone knows??? THX Unable to validate...
0
by: Amy | last post by:
Hi, I'm suddenly getting this error when I post back from my application. the application worked once, i added some code on one page (customizing a datagrid), and suddenly I'm getting this...
0
by: Peter O'Reilly | last post by:
I receive the following error when I post a webpage: "Unable to validate error" - System.Web.HTTPException. The web page is an ASP WebForm page. I have a few controls on the page that when...
5
by: sjl | last post by:
I've got an .aspx webform for searching my database. It basically takes user input and passes it as a parm into a stored proc to search a table. The results are returned in a SQLDataReader and...
0
by: BuddyWork | last post by:
Hello, When setting the Web Gardens to 3 and I start browsing one of my asp.net page I get the following error shown below. I don't get the error when I set the Web Gardens to 1. Please note...
4
by: Mike Fellows | last post by:
running IIS on a single server, hosting pages on an intranet basis, one single user out of 50 is having an unable to validate data issue how do i fix this (the microsoft KB is a little...
7
by: James Crowley | last post by:
Hi everyone, My site is randomly firing off a "ExceptionHttpException : Unable to validate data. " error on some of its forms at the moment: ------- HttpException : Unable to validate data....
1
by: Smokey Grindle | last post by:
to start off with the page the free text box (version 3) is on has validateRequest="false" in the page directive already... but even with that when I am in the page and then click on a link to...
6
by: Solje | last post by:
Im developing an ASP.NET application used for maintinance purpose and it may be idle for some ours. The application crash with the error shown below when the user click on some contol in the...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.