473,396 Members | 1,743 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,396 software developers and data experts.

css style sheet with asp code

Hi
I am having trouble with css style sheet with asp code, everything was
working till I put extra of css code in there, and I got error message
state expected end statement, anyone has idea
thanks in advance
wei

below is my code

Response.Write "<a class="three" href=""job.asp?ID=" & rs("ID") & """
style="text-decoration: none">"
Jul 19 '05 #1
4 1636
double up your quotes or use '

Response.Write "<a class='three' href='job.asp?ID=" & rs("ID") & "'
style='text-decoration: none'>"

that should work

"weiwei" <We*******@slps.org> wrote in message
news:d3**************************@posting.google.c om...
Hi
I am having trouble with css style sheet with asp code, everything was
working till I put extra of css code in there, and I got error message
state expected end statement, anyone has idea
thanks in advance
wei

below is my code

Response.Write "<a class="three" href=""job.asp?ID=" & rs("ID") & """
style="text-decoration: none">"

Jul 19 '05 #2
na
Don't forget your round brackets. ;)

response.write("<a class='three' href='job.asp?ID=" & rs("ID") &
"'style='text-decoration: none'>Something to click</a>")

ya.. thats the ticket

"Steven Scaife" <sp@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
double up your quotes or use '

Response.Write "<a class='three' href='job.asp?ID=" & rs("ID") & "'
style='text-decoration: none'>"

that should work

"weiwei" <We*******@slps.org> wrote in message
news:d3**************************@posting.google.c om...
Hi
I am having trouble with css style sheet with asp code, everything was
working till I put extra of css code in there, and I got error message
state expected end statement, anyone has idea
thanks in advance
wei

below is my code

Response.Write "<a class="three" href=""job.asp?ID=" & rs("ID") & """
style="text-decoration: none">"


Jul 19 '05 #3
na wrote on 18 sep 2004 in
microsoft.public.inetserver.asp.general:
Response.Write "<a class="three" ...
Don't forget your round brackets. ;)

response.write("<a class='three' href='job.asp?ID="
& rs("ID") &
"'style='text-decoration: none'>Something to click</a>")


No, at least with ASP-vbscript you do not need those brackets

response.write "Hi"

is good

response.write("Hi")

works, but adds some unnecesary processing.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 19 '05 #4
na wrote:
Don't forget your round brackets. ;)

response.write("<a class='three' href='job.asp?ID=" & rs("ID") &
"'style='text-decoration: none'>Something to click</a>")


No. The parentheses (round brackets) aren't needed unless you are writing
javascript. The places where parentheses are required in VB/VBA/vbscript are
covered here:
http://blogs.msdn.com/ericlippert/ar.../15/52996.aspx

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #5

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

Similar topics

2
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages...
2
by: Luke Bellamy | last post by:
Hi, I have been looking for a way to incorperate several different style sheets into a web page (i.e cascading effect). I have looked into the @import statement which seems to do what I want but...
3
by: joealey2003 | last post by:
Hi all... I included a css file on my html and i need to check some properties. The html is: <style id="myid" src="mycsspage.css"> </style> Now i need something to access it like: ...
2
by: Herb Stull | last post by:
I'm trying to give users a choice of the visual interface used in my ASP.NET application using Cascading Style Sheets. Ideally I'd like to offer them several choices for backgrounds, fonts, etc....
1
by: Amanda H. | last post by:
I posted about this a few days ago, and I got a few suggestions that fixed part of my problem. I am using a PHP script to switch external style sheets when the viewer clicks on the style link. ...
8
by: pamelafluente | last post by:
Hi guys, Is it possible to add "onload" (via Javascript) a new class to the <styleheader section? If yes, how would that be done ? <style type="text/css" media="screen"> .NewStyleClass{...
10
by: pamelafluente | last post by:
Hi, this time I am trying to add a style on the fly.I wish equivalency with this one (only the menuItemStyle line): <head> <style type="text/css" media="screen"> ... some static styles ......
1
by: abaybas | last post by:
I'm creating a page in which a certain "content" part of the page is refreshed using ajax. I do this by using a div#content, and it's child div#container. the code: ... ...
4
by: fjm | last post by:
Hello everyone. I’d like to know how to handle multiple style sheets. I have css tabs that have a style sheet and then I also have a separate style sheet for the content that goes inside the tab. ...
4
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.