Avatar of weimha
weimhaFlag for United States of America asked on

PostBackURL on button click

I'm sure this is a simple question, but I have an ASP page that has a button on it.  When the button is clicked I do some logic to determine which page to go to next.  I set the buttons PostBackURL to that page.  On the first button click it just redisplays the same page.  On the second button click it goes to the right page.  What am I missing to make it go to the right page on the first button click?
.NET ProgrammingASPASP.NET

Avatar of undefined
Last Comment
dweppenaar

8/22/2022 - Mon
SOLUTION
dweppenaar

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
weimha

When I use that method, the program blows up when I'm using PreviousPage to get values from the first page.
dweppenaar

What do you mean by "blows up", can you give me the exception that you are getting, if any? Or any additional information would help...

Regards.
ASKER CERTIFIED SOLUTION
weimha

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
dweppenaar

Good stuff, I'm glad you got it working. If theres any other problems, do not hesitate to ask.

Regards
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck