Connecting Tech Pros Worldwide Forums | Help | Site Map

Unable to validate data when posting to another page

Stu
Guest
 
Posts: n/a
#1: Nov 19 '05
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



Cowboy (Gregory A. Beamer) - MVP
Guest
 
Posts: n/a
#2: Nov 19 '05

re: Unable to validate data when posting to another page


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:
[color=blue]
> 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
>
>
>[/color]
Stu
Guest
 
Posts: n/a
#3: Nov 19 '05

re: Unable to validate data when posting to another page


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" <NoSpamMgbworld@comcast.netNoSpamM> wrote
in message news:A28CEDAC-3584-44FF-BB5E-485258747BE2@microsoft.com...[color=blue]
> 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:
>[color=green]
>> 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
>>
>>
>>[/color][/color]


Closed Thread