a major bug when using PostBackUrl?!

D

Daves

I have a paired TextBox and Button on my masterpage for login, this way user
doesn't have to go to a special login page to do that - fewer clicks. The
trick is done via PostBackUrl and in the target page the TextBox's class is
built up again by this.PreviousPage.FindControl("textbox") ...

Obviously, in the background the previous aspx page is re-run to initialise
it's classes so that I can grab the entered value in the button's paired
TextBox. Fine - this works until some querystring value is required for that
previous page to run, let's say getting an ID for an item to fetch from
database. So an error occurs and boom... the application is down.


This must be a bug in asp.net? Has anyone come to workarounds?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top