J
JoRo
Hi,
I'm trying to add an onclick event to a button control so it will open
up a new popup window. Everything works fine except where I add
variables to pass on to the popup window. Where I have "&column" it
prints out the html as "&column", like I'm trying to write to html.
How do I avoid this?
Button btn = new System.Web.UI.WebControls.Button();
btn.Text = "Upload";
btn.CssClass = "button";
btn.Attributes.Add("onClick","javascript:window.open('/admin/inc/upload.aspx?id="
+ pageID + "&column=" + columnID +
"','Upload','location=0,status=0,scrollbars=0,width=500,height=350');");
thnx in advance,
joro
I'm trying to add an onclick event to a button control so it will open
up a new popup window. Everything works fine except where I add
variables to pass on to the popup window. Where I have "&column" it
prints out the html as "&column", like I'm trying to write to html.
How do I avoid this?
Button btn = new System.Web.UI.WebControls.Button();
btn.Text = "Upload";
btn.CssClass = "button";
btn.Attributes.Add("onClick","javascript:window.open('/admin/inc/upload.aspx?id="
+ pageID + "&column=" + columnID +
"','Upload','location=0,status=0,scrollbars=0,width=500,height=350');");
thnx in advance,
joro