Sytax for asp.net /windown.open

S

susie

I need to open a new blank page with specification in
NavigateUrl as below. The following syntax is wrong.
1.What is the correct syntax?
2.How to specify the target window in asp:hyperlink tag?

<asp:hyperlink text="link"
NavigateUrl="javascript:window.open
('http://web/Camelot/appDetail.aspx?
id='&tAppID,'', 'toolbar=no,location=no,
directories=no,status=no,resizable=no,width=400,
height=400'); void('');" runat="server"/>


Thank you very much!
 
J

Jimmy [Used-Disks]

<asp:hyperlink text="link"
NavigateUrl="javascript:window.open
('http://web/Camelot/appDetail.aspx?
id='&tAppID,'', 'toolbar=no,location=no,
directories=no,status=no,resizable=no,width=400,
height=400'); void('');" runat="server"/>

<asp:hyperlink text="link"
NavigateUrl="javascript:window.open
('http://web/Camelot/appDetail.aspx?
id='+AppID,'', 'toolbar=no,location=no,
directories=no,status=no,resizable=no,width=400,
height=400'); void('');" runat="server"/>

Looks like you were trying to use VB syntax in JavaScript.
 
G

Guest

What is your solution?
-----Original Message-----

<asp:hyperlink text="link"
NavigateUrl="javascript:window.open
('http://web/Camelot/appDetail.aspx?
id='+AppID,'', 'toolbar=no,location=no,
directories=no,status=no,resizable=no,width=400,
height=400'); void('');" runat="server"/>

Looks like you were trying to use VB syntax in JavaScript.

--
-Jimmy


.
 
A

Alessandro Zifiglio

I see you have opened two posts. Look for first, i've posted a reply there.
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top