Server.Transfer

S

Steve Caliendo

Hi,

Does anyone know why I can't do a Server.Transfer in a dynamically generated
button?

It always works just fine if I place the button on the webform at design
time, but if I add the button at runtime and I add a handler for it, I get
"Object reference not set to an instance of an oject".

Other code in the button executes just fine. I just NEED to leave this page
and I can't find a way to do it with dynamically created controls.
Response.Redirect doesn't work either.

Any ideas?

Thanks,

Steve
 

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top