I have removed it and tried "false". No luck, same result.
Main Topics
Browse All TopicsI'm running into a weird issue with the response.redirect. This code is in the RowCommand event of a DataGrid. Anyway, the code runs fine and processes the response.redirect.
When you stop through the code, it takes you to the Assign.aspx page properly. However, if you do not step through the code by pressing F5 (but run it in debug), it processes, runs some of the code in assign.aspx, and then comes back to the RowCommand Event hitting the cntAssign again (this time getting the value of 1) and redirects you to Response.Redirect("~/Admin
Any ideas?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Yeah, I have removed both. I guess I should elaborate more. In testing, the 1st time the RowCommand event is fired, cntAssign ends up being the value of 0. So it bypasses the first Redirect() and then runs the Redirect( to Assign.aspx) like it is supposed to. However, it also, somehow, fires the RowCommand event AGAIN and this time cntAssign=1 and redirects to the wrong place....
I was afraid that might be your response. Thanks for trying... :(
If I put the breakpoint on the redirect(to assign.aspx) and step through with F11 all the way to the end, it works just like it should....
If I keep the breakpoint, but hit F5, it redirects goes to Assign.aspx and back to Default.aspx based on cntAssign=1 then redirects to the wrong page..... strange!
Business Accounts
Answer for Membership
by: prairiedogPosted on 2008-12-02 at 09:07:49ID: 23078718
Remove the last parameter in Response.Redirect, which means "True".