what is proper page navigation to go back to yourself?

  • Thread starter Thread starter Flip
  • Start date Start date
F

Flip

I'm creating a webpage to send an email, but I'm having a problem with page
navigation, data entry and the validators. :< I cannot seem to get it right
with the IsPostBack property I think.

When I goto my page (http://www.pchenry.com/LaunchExtendedUrls/), enter in
the information then click on the send button, without doing anything
special, the page refreshes with the same data I typed out before. Ok, so I
put in a redirect to itself (using Response.redirect( request.getFullUrl())
(the method name might be wrong, sorry, I'm doing this from memory). But
now the validator logic seems to be screwed up.

What is the proper way to clear out the data on the page when I want to go
back to itself after a user clicks on the Send button?

Thanks.
 
Thanks Brock.
The resirect to your Request.Path should work. I'd suggest to only do this
I should be using the .Path? I think I'm using something else, but I'll try
this one tonight! :>
if Page.IsValid returns true. Perhaps this is what you mean by your
validator logic being messed up?
I think you're right! :< I'm so used to everything just working for me,
that I keep forgetting about the Page.IsValid property. :< Thank you! I'll
let you know tomorrow if it works! :>
 
The resirect to your Request.Path should work. I'd suggest to only do this
if Page.IsValid returns true. Perhaps this is what you mean by your
validator logic being messed up?
I did what you suggested and it worked like a charm! The thing I found
unsettling was, the validators behave differently on IIS5 and IIS6! Why is
that? With my dev box and XP (iis5) the code worked like a charm without
your suggestions, but not on IIS6, with my w2k3server box I had to have your
suggestions in order to make it work. I've seen this before, why is the
validator behaving differently on the two servers?

Thanks.
 
I've seen this before, why is the validator behaving
differently on the two servers?

Not sure -- perhaps you have two different version of the runtime? There
is a version specific javascript include that the validators use deployed
to \inetpub\wwwroot\aspnet_client.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Back
Top