D
David Wier
I'm trying to assign the results of a variable in ASP.Net to a button's
onclick event (a Javascript function) - -
The Javascript function is:
function OpenIt(NewWindow) {
flyout=window.open(NewWindow,"flyout","resizable=no,scrollbars=no,width=755,
height=550,scrollbars=1,top=100,left=100")
}
Then, I add this to the the routine that returns the URL
btnvideo.attributes("onclick")="OpenIt('<%#sURL %>');"
If I don't include the single quotes, it just tells me it's a syntax
error - - which doesn't really help -
the generated html is:
<input type="submit" name="btnvideo" value="Get Video" id="btnvideo"
onclick="OpenIt('<%# sURL %>');" />
Any ideas on how to get this working?
onclick event (a Javascript function) - -
The Javascript function is:
function OpenIt(NewWindow) {
flyout=window.open(NewWindow,"flyout","resizable=no,scrollbars=no,width=755,
height=550,scrollbars=1,top=100,left=100")
}
Then, I add this to the the routine that returns the URL
btnvideo.attributes("onclick")="OpenIt('<%#sURL %>');"
If I don't include the single quotes, it just tells me it's a syntax
error - - which doesn't really help -
the generated html is:
<input type="submit" name="btnvideo" value="Get Video" id="btnvideo"
onclick="OpenIt('<%# sURL %>');" />
Any ideas on how to get this working?