Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Attributes on btn_click

Status
Not open for further replies.

need2progm

Programmer
Dec 13, 2002
92
US
I have an aspx web form that needs to pass an obj ID to a pop up window

this is what I have..

btnEdit.Attributes.Add("OnClick", "javascript:window.open('PopUpAnswer.aspx?QUESTIONID=Quest.QuestionID ',
'PopUp','width=700,height=600.scrollbars=yes')")

I get a post back .. no pop
Thoughts?
 
Because its around single quotes, its treated as a literal.

you'll have to do something like:

'PopUpAnswer.aspx?QUESTIONID=" & Quest.QuestionID & "'

D'Arcy
 
I will try it Thursday.. Got stuck in meetings about meetings today :(

You Rock!
Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top