PostbackUrl and field validation

Last post 11-16-2007 6:53 AM by bpag. 1 replies.

Sort Posts:

  • PostbackUrl and field validation

    11-16-2007, 5:18 AM
    • Loading...
    • karl0s
    • Joined on 06-24-2005, 12:25 PM
    • Weston-super-Mare
    • Posts 27

    I'm trying to validate a number of fields, but my postbackurl property is kicking in long before my click event has, which of course means that none of my fields are getting validated.

    I need to carry the values of these fields onto the next page, and I'd like to do it using the querystring to pass information at the same time.

    I can't use server.execute or server.transfer because it just posts back to the same age with the contents of my new page at the top. I can't use postbackurl because it doesn't validate fields anymore.

    Surely something so blindingly obvious can't have been overlooked by .NET developers?

    Cheers,

    Karl.
     

  • Re: PostbackUrl and field validation

    11-16-2007, 6:53 AM
    Answer
    • Loading...
    • bpag
    • Joined on 04-07-2006, 12:05 PM
    • Columbus, OH
    • Posts 528

    You can just not use PostbackUrl so the page posts back to itself and then do your validation and if everything is validated correctly use Response.Redirect to navigate to the next page and pass whatever query strings you want.

    If this post answered your question please remember to 'Mark as Answer'!
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter