I may be going about this all wrong but I am trying to set up a normal HTML button on the client side, using javascript and Window.Open to determine the page url, size, position, etc.
What I would like to do is pass local variables from code-behind and some how attach the query string segment to the url within the Window.Open script dynamically. What I was thinking of doing is constructing the query string in the code behind and assign it to a string variable. I would the like to simply attached the variable from code-behind to the query string segment of the url, in the Window.Open script.
Something like this, although I this isn't working...
<input type="button" value="Printer Friendly Copy" onclick="window.open('Print.aspx?<%= MyString %>', '_blank', 'toolbar=no, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400')" />
Could anyone tell me the proper way of doing this? I could navigate to a new page all together using Response.Redirect in code-behind but I would prefer to open a new window and so far, javascript seems to be the best way of doing this from my research.