User Object and page onload event

U

UJ

I have a page that I am going to convert to a user object that works just
fine. Problem is it displays a prompt by checking a hidden text field on
load to see if it should display it. Which means I have a piece of
JavaScript in the head section plus an onload= in the body tag. How can I
get this to work in my object? Do I need to put the same code on every page
that will be calling this object in order for it to work?

TIA.

Jeffrey.
 
P

Phillip Ian

You'll probably want to look up the RegisterClientScriptBlock() and
RegisterStartupScript() methods of the page object. And don't be
fooled by intellisense...while they don't show up there, they are valid
methods...you'll find them in help.
 

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,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top