| |
| |
| |
|
Comments:
<0> anyway to ***ign a single thread to multiple virtual cpus on a dual core PC? so instead of utilizing only 50% of the cpu the thread uses 100%? <1> I want all lines from a database where the 'name' field got a certain letter or word inside it, how should the sqlstring look like? <2> I have a variable and I want to use an IF statement on it and if IF is succesful I want it to load a certain URL, anyone point me in the right direction please? <3> JoseUK: if (thestatement = true) then response.redirect("http://www.exmple.xom") <4> hey guys - what's the best answer for "What do you consider your worst attributes?" in an interview? :) <3> EoN: that you rely on irc instead of your real life friends for advice. <3> I'm ****ing everywhere. <5> can some1 help me test a page..... i'm not sure if only my own network can access my website or it's it's externally available (router config etc...) give me a shout (just a 2 second job, click on a link and tell me) thank you <6> i need visual studio guys <6> any body has it <1> how do you check how many records a recordset has without looping through it?
<2> ta shiaraka <2> im a total asp nubcake trying to put this forwarded based on IP thing together <2> <% <2> for each x in Request.ServerVariables("REMOTE_ADDR") <2> if (x & = 127.0.0.1) then response.redirect("http://www.exmple.xom") <2> %> <2> how much do I ****? :P <2> hrm I keep downloading example scripts from various places and none of them work ;/ <2> basic scripts do but as soon as i use slightly less nubish code i get err600 <2> err, 500 <7> x & = <-- this isn't correct ASP syntax <7> 127.0.0.1 is not a valid constant too, try "127.0.0.1' <7> and no need for the "for each" part <2> " ' | <2> ? <7> so here is a code for what you seem to want to do : <2> like this : <2> <% <2> x in Request.ServerVariables("REMOTE_ADDR") <2> if (x & = "127.0.0.1') then response.redirect("http://www.exmple.xom") <2> %> <7> no <7> like this : <7> If Request.ServerVariables("REMOTE_ADDR") = "127.0.0.1" Then Response.redirect "http://www.example.com" %> <7> and just add a " <% " at the beginig, that is : <7> <% If Request.ServerVariables("REMOTE_ADDR") = "127.0.0.1" Then Response.redirect "http://www.example.com" %> <2> ahh <2> one liners ftw <2> cheers that worked <2> now, for other hosts can I just do else statements? <7> yes <2> sweet :) works fine <7> great :) <2> cheers :) <7> cheers, enjoy :) <2> now i only have 200 entries to do.. <2> excel time :P <7> what are you trying to do exactly/ <7> maybe there is a simpler way :) <8> you don't want 200 if-then-else statements !? <2> if a user comes from specific IP, goto their website <7> alright ... excel seems fine heeh <2> ja, its crude but it will work <7> ah JoseUK, don't use a "if-then"
<7> use a "select case" <2> ahh <7> it goes sth like this : <7> <% select case request.servervariables("REMOTE_ADDR") <2> select case grabs the IP then goes to the correct part of the code? byp***ing the rest? <7> yes kinda :) <2> I will stay crude till I understand it a little better <2> the only .asp knowledge I have is from hacking server 2003 OWA code <7> http://rafb.net/p/jmvlTV15.html <7> check that link :) <2> ta <2> thats some nice code or something going on there :P <2> i like the line definitions too <7> when you use the code don't copy the line numebrs :D <2> ofc :P <8> As an alternative to that, you could also use a database to store all ip adresses, and then check up against that - but that's probably for later :) <8> although it would make your code much smaller :) <2> i only have max 180 or so IP addys <2> its for a very small customer base <8> could that base grow ? <8> at any given time in future <2> not at a quick rate :P <2> 5 extra per year or so <8> alright <2> its for primary schools in my local LEA <2> not corporate customers etc. <2> its basicaly, depending on which IP they come from so I can identify the school and give them a link on their home page to goto their school website <2> atm i have www.primaryt.co.uk/google.html <8> just a h***le to manually update your ASP page everytime, instead of having it an admin area, where you can just add the IP to the database... but for now, using select-statements is good enough <2> yeah, to be honest, id have to do all the admin work anyway <2> schools don't know what IP address' are ;) <8> hehe <2> where i come from newho, heh <2> my solicitor is starting to piss me off <2> oops, wrong chan <9> how do I get the whole query at once? <9> if user did: index.asp?id=1&number=2 <9> i want at least: "id=1&number=2" <9> theres a way? <9> so I can redir him back in case he needs to log in before acessign that page <9> thanks in advance. <9> oh, finally found it <2> :P <2> isn't irc so helpful? <9> haha yes :) <10> I have a gridview, now how would i change this to only apply it to the very top horizontal row in the gridview(e.Row.BackColor = Color.Red;) <10> how would i specify to make the top horizontal row red? <10> anyone here? <11> using Microsoft.XMLDOM how do I print out/save the xml document with indentation? <11> right now I get one long line <8> ?? paste
Return to
#asp or Go to some related
logs:
courtney cox's tits #gentoo tortoisitis
#windowsxp #gentoo msdn t-sql insert select READCOMMITTED
#beginner #networking #computers #nhl
|
|