calling registerstartupscript from outside class

O

o0JoeCool0o

I am trying to call Page.RegisterStartupScript from a method in a user
control.
I am getting a null reference error whenever I try to use
Page.RegisterStartupScript.
I trying to set the focus of a button on my user control...
however this gets called from a method inside the user control
not the main page. so how do I reference the Page class without getting
this null reference error?
 

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
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top