Java from server side

S

sunshinevaldes

What am I doing wrong?

btnSubmit.Attributes.Add("onClick",
"javascript:window.open('Report.aspx?Name=' +
Session('Name'),'Report','width=800,height=600,resizable=yes,scrollbars=yes,left=0,top=0')")

All I want to do is open a new window and pass Session("Name").

Thanks for all your help...

Sunshine
 
J

John Timney \(MVP\)

You've not actually said what your problem is but you probably have your end
strings in the wrong place. I think it might perhaps be this:

btnSubmit.Attributes.Add("onClick","javascript:window.open('Report.aspx?Name='"
+ Session("Name") +
",'Report','width=800,height=600,resizable=yes,scrollbars=yes,left=0,top=0')")

Regards

John Timney (MVP)
 
S

sunshinevaldes

John said:
You've not actually said what your problem is but you probably have your end
strings in the wrong place. I think it might perhaps be this:

btnSubmit.Attributes.Add("onClick","javascript:window.open('Report.aspx?Name='"
+ Session("Name") +
",'Report','width=800,height=600,resizable=yes,scrollbars=yes,left=0,top=0')")

Regards

John Timney (MVP)


John,

Thanks for your help! I had to change the single tick after "Name=" to
before the ",'" so the final version looks like the following:

btnSubmit.Attributes.Add("onClick","javascript:window.open('Report.aspx?Name="

+ Session("Name") +
"','Report','width=800,height=600,resizable=yes,scrollbars=yes,left=0,top=0')")

Thanks again for your help!

Sunshine
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top