whats wrong?

G

Guest

Hi do you know whats wrong with this code?
<asp:HyperLink id="HLink_Help" runat="server" NavigateUrl='<%# "javascript:window.open('comments.aspx?id=1,width=500,height=600, scrollBars=yes');" %>'>Need Help?</asp:HyperLink>
 
S

Shiva

Hi,

There are some single quotes inside NavigateUrl value which itself is
enclosed in single quotes.

Hi do you know whats wrong with this code?
<asp:HyperLink id="HLink_Help" runat="server" NavigateUrl='<%#
"javascript:window.open('comments.aspx?id=1,width=500,height=600,
scrollBars=yes');" %>'>Need Help?</asp:HyperLink>
 
H

Hans Kesting

mahsa said:
Hi do you know whats wrong with this code?
<asp:HyperLink id="HLink_Help" runat="server" NavigateUrl='<%# "javascript:window.open('comments.aspx?id=1,width=500,height=600,

What *appears* to be wrong?
- do you get a compile-time error?
- if so, what error?
- do you get a runtime error?
- if so, what error?
- does the page not "look right"?
- if so, what do you see and what did you expect
- what html is generated (do a "view source")?
- does the page not "work right"?
- what did you expect, what happens?

Why do you need databinding in this case? It looks like a fixed string (but that can
be because this was meant as an example)

Hans Kesting
 

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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top