473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Nov 18 '05 #1
3 2018
Hi,

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

"mahsa" <ma***@discussions.microsoft.com> wrote in message
news:2A**********************************@microsof t.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
Nov 18 '05 #2

"mahsa" <ma***@discussions.microsoft.com> wrote in message news:2A**********************************@microsof t.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
Nov 18 '05 #3
It must be this guy's version of a Rorshach inkblot test. : )

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...

"mahsa" <ma***@discussions.microsoft.com> wrote in message news:2A**********************************@microsof t.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

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Colin Steadman | last post by:
I have created a function to kill all session variables that aren't in a safe list. This is the function - Sub PurgeSessionVariables For Each Item In Session.Contents Select Case Trim(Item)...
3
by: Chris Geerdink | last post by:
combo with PHP. what is wrong with the Javascript? else { include("mysql.php"); $query1 = mysql_query("INSERT INTO gbook (naam, email, text) VALUES ('".$_POST."', '".$_POST."',...
4
by: asdf | last post by:
Hello! Can someone tell me whats wrong with this piece of code: Option Compare Database Option Explicit Sub retrieve() Dim rst As ADODB.Recordset Dim i As Integer
5
by: Alexandre Martins | last post by:
Provider=Microsoft.Jet.OLEDB.4.0;UserId=Admin;Password=teste;Data Source=C:\Inetpub\wwwroot\inktoner\dados\db_inktoner.mdb;Persist Security Info=True I can't connect in my database ! whats...
1
by: aa | last post by:
When I am reading from local disk (d:), everithing is OK, but then I am reading from map disk I am geting the this error. Whats wrong. Thanks Server Error in '/Extra' Application....
4
by: blah | last post by:
Hello everyone, Ive been trying to get my application to "click" on a button in another application using SendMessage, Ive gotten this far but Im not sure whats wrong with this code, here is the...
1
by: '~=_Slawek_=~' | last post by:
$DOW = (jddayofweek(unixtojd(mktime(1, 1, 1, $month, $day, $year)))+6)%7; $DOW= (jddayofweek(juliantojd($month, $day, $year))+6)%7; The results are supposed to be the same, but they are not....
7
by: Mike Barnard | last post by:
It's a simple test... VERY SIMPLE. But... In an external stlyesheet some attributes don't show. With the same styles cut and pasted to the test internally it works as expected. Anyone tell...
5
by: islayer | last post by:
can someone tell me what is wrong with the bold code? i am just learning perl. the program should create a perl file with a random name (5 letters, followed by a number), but the name is always just...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.