Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   whats wrong? (http://www.velocityreviews.com/forums/t83375-whats-wrong.html)

=?Utf-8?B?bWFoc2E=?= 07-23-2004 07:26 AM

whats wrong?
 
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

Shiva 07-23-2004 08:33 AM

Re: whats wrong?
 
Hi,

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

"mahsa" <mahsa@discussions.microsoft.com> wrote in message
news:2AE8C0EB-86FF-44AF-A2CC-AFAD1E3886A4@microsoft.com...
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



Hans Kesting 07-23-2004 08:57 AM

Re: whats wrong?
 

"mahsa" <mahsa@discussions.microsoft.com> wrote in message news:2AE8C0EB-86FF-44AF-A2CC-AFAD1E3886A4@microsoft.com...
> 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


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



Jordan 07-23-2004 10:14 AM

Re: whats wrong?
 
It must be this guy's version of a Rorshach inkblot test. : )



"Hans Kesting" <news.2.hansdk@spamgourmet.com> wrote in message
news:eIZwnMJcEHA.2816@TK2MSFTNGP11.phx.gbl...
>
> "mahsa" <mahsa@discussions.microsoft.com> wrote in message

news:2AE8C0EB-86FF-44AF-A2CC-AFAD1E3886A4@microsoft.com...
> > 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

>
> 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
>
>





All times are GMT. The time now is 09:02 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.