R
rockdale
Hi, all:
I have a linkbutton and I use javascript to open another webpage in a
new window. I also want to set my session variable value when this
linkbutton get clicked. These session variable is used in the the
webpage that in the new window. I do not want pass these variables as
parameters to the web page. Can I let the linkbutton execute postback
to set the session variable's value and also execute client javascript
to open a new window? I tried but get no luck. Or you have a better
idea to achieve this?
following is my code
<script language="javascript">
function NewWindow(strUrl){
var win = window.open(strUrl, null, 'height=600,width=1024,status=no,
toolbar=no,menubar=no,location=no');
}
code behind
lbnPrint.Attributes.Add("onClick","NewWindow('print.aspx)");
Thanks a lot
-rockdale
I have a linkbutton and I use javascript to open another webpage in a
new window. I also want to set my session variable value when this
linkbutton get clicked. These session variable is used in the the
webpage that in the new window. I do not want pass these variables as
parameters to the web page. Can I let the linkbutton execute postback
to set the session variable's value and also execute client javascript
to open a new window? I tried but get no luck. Or you have a better
idea to achieve this?
following is my code
<script language="javascript">
function NewWindow(strUrl){
var win = window.open(strUrl, null, 'height=600,width=1024,status=no,
toolbar=no,menubar=no,location=no');
}
Print</asp:linkbutton>
code behind
lbnPrint.Attributes.Add("onClick","NewWindow('print.aspx)");
Thanks a lot
-rockdale