adding javascript to html control button

  • Thread starter Thread starter Matt Tapia
  • Start date Start date
M

Matt Tapia

I have a user control that I have placed an html control button. I want to
dynamically create a javascript window.open action with certain query string
properties (why it needs to be dynamic) to the onClick event. How can I best
do this? Note: I am using code-behind pages.
 
Matt Tapia said:
I have a user control that I have placed an html control button. I want to
dynamically create a javascript window.open action with certain query
string properties (why it needs to be dynamic) to the onClick event. How
can I best do this? Note: I am using code-behind pages.
controlname.attributes["onclick"]="window.open(....)"
 
Back
Top