Ask a Question related to ASP Database, Design and Development.
-
Aaron Bertrand - MVP #1
Re: Need Help With Syntax!
> <td bgcolor="#FFFFFF" width="10">
Why do you need the double quotes to appear??? Double-quotes around>
> How do I get the double quotes to appear when using a variable for the
> color and width.
attribute values are useless, imho, unless the value has spaces. They
certainly shouldn't be used when the value is numeric, such as width="10"
.... all you're doing is adding two characters to the weight of the page,
every time you have such a value.
Anyway, see [url]http://www.aspfaq.com/2065[/url]
Aaron Bertrand - MVP Guest
-
if/else tag syntax
Hello, I know, how to do if/else in Actionscript, but how can I do something like if/else in MXML syntax? I want to decide on startup/compile... -
Help with SYntax, Please!
I want the name of a product to show IF the Name field is NOT NULL AND if there's an image for that Record. Can anyone help? Here's the code... -
If than syntax help please
I'm trying to say: If price2 equals the selected price than apply the style bold price. If price 2 is nothing or zero than show nothing. If price... -
Syntax again - Help!
I have a movie clip instance named 22mc. Can anyone tell me why this is not good syntax: on (release) { with (_root.22mc) { play(); } } ... -
Syntax
Hi, In a subclass, is sub new() end sub the same as sub new() -
Mark Schupp #2
Re: Need Help With Syntax!
Response.Write("<td bgcolor=""" & strBgColorBckGrnd & """ width=""" &
Len(x.Value) & """>")
--
Mark Schupp
--
Head of Development
Integrity eLearning
Online Learning Solutions Provider
[email]mschupp@ielearning.com[/email]
[url]http://www.ielearning.com[/url]
714.637.9480 x17
"zmaerd" <zmaerd@bellsouth.net> wrote in message
news:1c254f62.0308060812.69671b4@posting.google.co m...> I'm trying to get the following:
>
> Response.Write("<td bgcolor=" & strBgColorBckGrnd & " width=" &
> Len(x.Value) & ">")
>
> To look like this in the browser:
>
> <td bgcolor="#FFFFFF" width="10">
>
> How do I get the double quotes to appear when using a variable for the
> color and width.
>
>
> The above produces:
> <td bgcolor=FFFFFF width=10>
>
> Any ideas .asp pros?
> Thanks in advance!
Mark Schupp Guest
-
Ray at #3
Re: Need Help With Syntax!
Aaron, see here. [url]http://www.w3.org/TR/xhtml1/#h-4.4[/url]
Ray at work
"Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
news:uewQBkDXDHA.1680@tk2msftngp13.phx.gbl...
> Why do you need the double quotes to appear??? Double-quotes around
> attribute values are useless, imho, unless the value has spaces. They
> certainly shouldn't be used when the value is numeric, such as width="10"
> ... all you're doing is adding two characters to the weight of the page,
> every time you have such a value.
>
Ray at Guest
-
Aaron Bertrand - MVP #4
Re: Need Help With Syntax!
Well, my question wasn't, "is there some standards body that has written
some specification that 'recommends' that all attribute values must be
quoted?"
Rather, I was curious why this specific person needs to have attribute
values quoted. Since the browsers don't care, and in most cases it serves
only to make the page weigh more...
I understand the value of having standards, but I also understand the value
of not being required to follow every single line... we'd spend more time
reading the damn spec, and adding weight to our pages, than actually working
on the code...
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OznxtoDXDHA.1748@TK2MSFTNGP12.phx.gbl...width="10"> Aaron, see here. [url]http://www.w3.org/TR/xhtml1/#h-4.4[/url]
>
> Ray at work
>
> "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
> news:uewQBkDXDHA.1680@tk2msftngp13.phx.gbl...
>> > Why do you need the double quotes to appear??? Double-quotes around
> > attribute values are useless, imho, unless the value has spaces. They
> > certainly shouldn't be used when the value is numeric, such as>> > ... all you're doing is adding two characters to the weight of the page,
> > every time you have such a value.
> >
>
Aaron Bertrand - MVP Guest
-
Ray at #5
Re: Need Help With Syntax!
To each his own. I'll stick with following standards.
Ray at work
"Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
news:eA8yEuDXDHA.2592@TK2MSFTNGP09.phx.gbl...value> Well, my question wasn't, "is there some standards body that has written
> some specification that 'recommends' that all attribute values must be
> quoted?"
>
> Rather, I was curious why this specific person needs to have attribute
> values quoted. Since the browsers don't care, and in most cases it serves
> only to make the page weigh more...
>
> I understand the value of having standards, but I also understand theworking> of not being required to follow every single line... we'd spend more time
> reading the damn spec, and adding weight to our pages, than actuallypage,> on the code...
>
>
>
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:OznxtoDXDHA.1748@TK2MSFTNGP12.phx.gbl...> width="10"> > Aaron, see here. [url]http://www.w3.org/TR/xhtml1/#h-4.4[/url]
> >
> > Ray at work
> >
> > "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
> > news:uewQBkDXDHA.1680@tk2msftngp13.phx.gbl...
> >> > > Why do you need the double quotes to appear??? Double-quotes around
> > > attribute values are useless, imho, unless the value has spaces. They
> > > certainly shouldn't be used when the value is numeric, such as> > > ... all you're doing is adding two characters to the weight of the>> >> > > every time you have such a value.
> > >
> >
>
Ray at Guest
-
Aaron Bertrand - MVP #6
Re: Need Help With Syntax!
> To each his own. I'll stick with following standards.
Again, I didn't say I was opposed to following standards. I just think
there are some standards that make sense to follow, and others that don't.
Do you really, honestly follow every single "standard" on that page, every
time you code up an HTML page? Do you check the standard every time you
start a page, just in case it has changed since last time? Are you going to
change your coding style (and even go back and alter existing code) every
time W3C makes a change to that page? Or whenever any new organization
decides to publish standards? What happens when two different bodies post
"standards" that conflict (e.g. coding conventions at your workplace vs. W3C
recommendations)?
Also note that I intentionally highlighted the word "recommends" in my
previous e-mail. After all, you pointed me to a recommendation for the
XHTML standard, not an existing and accepted HTML standard. So, the answer
to the original question I posed may very well have been, "yes, I am
creating XHTML documents that must conform to the W3C recommendation." But
likely not.
Aaron Bertrand - MVP Guest
-
vivek #7
Re: Need Help With Syntax!
the simplest way is(unless this is a part of vbscript function) is end the
<% %> tags before you write html
like
%>
<td bgcolor="<%=strBgColorBckGrnd %> width=" <%=Len(x.Value) %>">
<%
carry on with ur rest of the asp script
%>
i personally dont like writing the html tags using response.write......this
is just personal statement...no standards attached ;-)
Vivek
"zmaerd" <zmaerd@bellsouth.net> wrote in message
news:1c254f62.0308060812.69671b4@posting.google.co m...> I'm trying to get the following:
>
> Response.Write("<td bgcolor=" & strBgColorBckGrnd & " width=" &
> Len(x.Value) & ">")
>
> To look like this in the browser:
>
> <td bgcolor="#FFFFFF" width="10">
>
> How do I get the double quotes to appear when using a variable for the
> color and width.
>
>
> The above produces:
> <td bgcolor=FFFFFF width=10>
>
> Any ideas .asp pros?
> Thanks in advance!
vivek Guest
-
Ray at #8
Re: Need Help With Syntax!
"Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
news:eW%23PV1DXDHA.1640@TK2MSFTNGP10.phx.gbl...No, I still can't bring myself to use lowercase tags. I hate lowercase>> > To each his own. I'll stick with following standards.
> Again, I didn't say I was opposed to following standards. I just think
> there are some standards that make sense to follow, and others that don't.
>
> Do you really, honestly follow every single "standard" on that page, every
> time you code up an HTML page?
tags.
Do you check the standard every time youto> start a page, just in case it has changed since last time? Are you goingYes. (That's a lie.)> change your coding style (and even go back and alter existing code) every
> time W3C makes a change to that page?
It's fine. I just wanted to make sure that you and the OP were aware so
that y'all can decide accordingly. Not to mention it's fun to contradict
you and possibly be right, because it is a rare opportunity. :P
Ray at work
Ray at Guest
-
Aaron Bertrand - MVP #9
Re: Need Help With Syntax!
> It's fine. I just wanted to make sure that you and the OP were aware so
Well, in cases like this, I think it's completely subjective. But I'm still> that y'all can decide accordingly. Not to mention it's fun to contradict
> you and possibly be right, because it is a rare opportunity. :P
right, so nya-nya! :-p
Aaron Bertrand - MVP Guest
-
Jim Plante #10
Re: Need Help With Syntax!
Seems the thread here got way off the topic....
Anyways, I would just do this
Response.Write("<td bgcolor=" & Chr(34) & strBgColorBckGrnd & Chr(34) & "
width=" & Chr(34) & Len(x.Value) & Chr(34) & ">")
Maybe this is easiest.
Jim
"zmaerd" <zmaerd@bellsouth.net> wrote in message
news:1c254f62.0308060812.69671b4@posting.google.co m...> I'm trying to get the following:
>
> Response.Write("<td bgcolor=" & strBgColorBckGrnd & " width=" &
> Len(x.Value) & ">")
>
> To look like this in the browser:
>
> <td bgcolor="#FFFFFF" width="10">
>
> How do I get the double quotes to appear when using a variable for the
> color and width.
>
>
> The above produces:
> <td bgcolor=FFFFFF width=10>
>
> Any ideas .asp pros?
> Thanks in advance!
Jim Plante Guest
-
zmaerd #11
Re: Need Help With Syntax!
Arrghh, why didn't I think of that!?!?! I feel like a big dummy. :)
Thanks for your help!
"vivek" <vivsandela@yahoo.com> wrote in message news:<8FaYa.246397$BA.59641025@twister.columbus.rr .com>...> the simplest way is(unless this is a part of vbscript function) is end the
> <% %> tags before you write html
> like
>
> %>
> <td bgcolor="<%=strBgColorBckGrnd %> width=" <%=Len(x.Value) %>">
> <%
> carry on with ur rest of the asp script
> %>
>
> i personally dont like writing the html tags using response.write......this
> is just personal statement...no standards attached ;-)
>
> Vivek
>
>
>
>
> "zmaerd" <zmaerd@bellsouth.net> wrote in message
> news:1c254f62.0308060812.69671b4@posting.google.co m...> > I'm trying to get the following:
> >
> > Response.Write("<td bgcolor=" & strBgColorBckGrnd & " width=" &
> > Len(x.Value) & ">")
> >
> > To look like this in the browser:
> >
> > <td bgcolor="#FFFFFF" width="10">
> >
> > How do I get the double quotes to appear when using a variable for the
> > color and width.
> >
> >
> > The above produces:
> > <td bgcolor=FFFFFF width=10>
> >
> > Any ideas .asp pros?
> > Thanks in advance!zmaerd Guest



Reply With Quote

