@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> hello peop;e
<1> Good morning
<0> i have a question.. i want to do a Response.Write
<0> but i have alot of " and ' in the string
<0> what should i do about it /
<0> ?
<2> use them
<2> Response.Write "Bob said, ""That's a load of ****."""
<1> Is your name Bob, by any chance? :)
<2> No, but I do say that often, coincidentally
<1> heh
<0> but if i need to wrote a code like this <span dir="ltr">
<0> <input type="text" name="user" />
<0> &#1513;&#1501; &#1502;&#1513;&#1514;&#1502;&#1513; </span> <span a dir="ltr">
<0> <input type="p***word" name="p***" />
<0> oops :\



<2> Then you do exactly the same thing
<2> Look at my example above
<0> Microsoft JScript compilation (0x800A03F7)
<0> Unterminated string constan
<1> yuck
<0> Response.Write("
<2> Right... actually look at my example above
<2> See anything... odd, there?
<0> yes
<2> What is it>?
<0> """
<0> all the ""
<2> Close
<2> ""
<2> What do you think that means?
<0> ignore all the ' and " inside
<0> ?
<2> uhh... no
<2> Why would I have it multiple times
<2> Why not try that line of code and see what happens?
<2> ahh.. ignoring that
<0> hmm.....
<0> i think i know what's the problem
<0> but i'm looking for a good solution
<2> You just got one
<1> !?
<2> either that, or don't use Response.Write
<2> Your choice. Those are the only two reasonable ones
<0> i cannot check all the quotes in the code
<2> Then don't use response.write
<2> not a problem
<0> what can i use ?
<2> nothing
<2> <% this is asp code %>
<2> this is HTML
<2> <%this is more ASP%.
<2> this is plain HTML
<1> BUG BUG BUG
<1> %.
<2> yes yes
<1> hehe
<1> just-me: where is this string coming from?
<1> db?
<1> user input?
<0> no
<0> i want to make a login
<0> and if the user enter the right p***word the code will change to "hello user"
<1> but, what does have to do with lots of " and ' ?
<2> that's retarded... why not just log them in and take them to the next page?
<2> OR response.write?
<2> All this can be done with plain HTML or javascript
<1> don't tell me you are using a hard-coded p***word!
<0> nope....
<2> So what's the issue here?
<2> Either escape the quotes when using response.write
<2> or do nto even put them in a response.write
<2> It's a simple damn issue
<0> how do i escape the quotes
<0> escape()?
<2> I just showed you
<2> ****sake



<0> ohh that way..
<0> o.k
<2> Those are you two options. choose which ever suits your situation best
<0> thank you
<3> anyone know how I can generation time of my asp pages ?
<4> im getting an array of data from an html form (like <input name="array[]">) but I seem to be getting a type mismatch when I try to treat the variable getting the values as an array (like array(0))
<4> any ideas why?
<3> have you setup the array for the variable ?
<4> Dim descp(3)
<4> descp = Upload.Form("descp")
<3> *shrug* ... I'm not great with ASP, haven't dev'd stuff in a while
<3> do you know how I go about recording the time it takes for the server to generate a page ?
<5> how come it's not working in firefox?
<5> xmlhttp=new XMLHttpRequest();
<5> xmlhttp.open("POST", url, false);
<5> xmlhttp.Send(sendVal);
<5> alert(xmlhttp.responseText);
<5> ?
<0> hello again
<6> lo
<0> g1bz can you help me
<0> ?
<0> http://pastebin.ca/135962
<6> what's problem?
<0> i get an error
<0> /index.asp, line 54, column 16
<0> Response.Write('
<0> Unterminated string constant
<6> can't see where
<0> me too
<0> so why do i get this problem
<0> ?
<6> wasn't sure js allowed multiline in strings
<6> in other c based languages you'd get "newline in constant"
<0> so what do recommend me to do ?
<4> how can i select the record with the lowest id in a table?
<0> yes you right
<0> it's because the multple lines
<7> Response.Write(" _
<0> multiple
<0> to write _ in the start and that's it ?
<4> anyone answer me?
<7> just-me: at the end of line
<7> not in start
<7> better to do as it: #
<7> Response.Write("<p>&#1499;&#1504;&#1497;&#1505;" & _
<7> "2nd line" & _
<7> and so on
<0> not working
<0> Response.Write('this is \' \"_
<0> a test\'\" ');
<0> ?
<7> Response.Write('this is " & _
<7> "a test')
<7> Response.Write("'this is " & _
<7> "a test')
<7> Response.Write("'this is " & _
<7> "a test')
<0> in my example it's not working
<0> Response.Write('this is \' \" &_
<0> a test\'\" ');
<7> it cant work
<7> \' and \" - that is not vbscript escapes
<6> catlion - that's vbscript
<6> he's using javascript
<6> just-me - you can do " + at the end of each line and open the string at the start again
<6> but that's a lot of wasteful concatination
<6> just take the linebreaks out
<6> and turn wordwrap on in your program
<0> o.k..
<0> is there any other good solution ?
<6> google javascript line continuation
<0> i'm sure this case happens alot to users..


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #asp
or
Go to some related logs:

#beginner
#computers
#nhl
#beginner
#computers
#worldcup
#politics
#computers
#unixhelp
#gamedev



Home  |  disclaimer  |  contact  |  submit quotes