R
Randy
Hello,
I'm trying to figure out how to set up and call a javascript pop up window
within C# ASP. I know how to use RegisterStartupScript. This works fine if I
use it in the Page_Load area. What I want to do is call a pop-up window from
several areas in my class.
For example, I've got a Submit button but based on several conditions I
might want to pop up a message with the message varying. If I put the
RegisterStartupScript in this Submit_Click function, it doesn't pop up
anything.
I'm thinking I need to register a javascript popup function and then call
the function where I need to, but I don't know how to do this.
Can someone point me in the right direction?
Thanks
I'm trying to figure out how to set up and call a javascript pop up window
within C# ASP. I know how to use RegisterStartupScript. This works fine if I
use it in the Page_Load area. What I want to do is call a pop-up window from
several areas in my class.
For example, I've got a Submit button but based on several conditions I
might want to pop up a message with the message varying. If I put the
RegisterStartupScript in this Submit_Click function, it doesn't pop up
anything.
I'm thinking I need to register a javascript popup function and then call
the function where I need to, but I don't know how to do this.
Can someone point me in the right direction?
Thanks