whats wrong?

  • Thread starter Thread starter Guest
  • Start date Start date
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>
 
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>
 
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

Back
Top