Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > custom validation not executing

Reply
Thread Tools

custom validation not executing

 
 
Andrew
Guest
Posts: n/a
 
      06-29-2004
I've tested the logic in the design on other pages and it works fine.
THere is one major difference between where I want it to work and
where it has worked. THe page I'm working on was launched from a page
using Server.Transfer. I'm very new to this stuff so this very well
could be a simple one.

Ideas?

The same thing is happening with a button click on the same page and
I'm guess the two failures are related.
 
Reply With Quote
 
 
 
 
ranganh
Guest
Posts: n/a
 
      06-29-2004
Dear Andrew,

Do not use Server.Transfer. In case of Server.Transfer, the client (i.e. the browser) is not aware of the redirection and therefore, it will not be able to
perform validations and events which require the client interaction.

Therefore, use Response.Redirect.

Hope it helps.

"Andrew" wrote:

> I've tested the logic in the design on other pages and it works fine.
> THere is one major difference between where I want it to work and
> where it has worked. THe page I'm working on was launched from a page
> using Server.Transfer. I'm very new to this stuff so this very well
> could be a simple one.
>
> Ideas?
>
> The same thing is happening with a button click on the same page and
> I'm guess the two failures are related.
>

 
Reply With Quote
 
 
 
 
Andrew Jones
Guest
Posts: n/a
 
      06-29-2004
I apologize in advance, because much of this is new to me. I've changed
it to a response.redirect, but that doesn't seem to change the page ...
although the address is changing.

There are three pages here ... the first is blocked because of Form
Authentication; the second is a login page and the third is a new
password page. I'm trying to redirect from the login page to the
password page.

server.transfer loads it and client side validation seems to work, but
the click events and server side validation shows no life.

response.redirect doesn't seem to want to refresh the page.

Any recommended reference material would also be greatly appreciated.

Thanks.



*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to stop executing if validation returns false mak Javascript 4 03-08-2008 10:50 PM
Function is executing before validation Santosh ASP .Net Datagrid Control 0 05-17-2006 09:48 AM
How to stop a validation function from executing after it encounters an error? effendi@epitome.com.sg Javascript 5 03-02-2005 10:56 PM
Using Summary Validation control with server Custom validation =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= ASP .Net 2 10-15-2004 06:15 PM
Re: only custom validation control does server side validation? Colin Mackay ASP .Net 0 06-25-2003 07:54 AM



Advertisments