|
Why is it that is seems like whenever someone asks a question in a forum their brains fall out of their head when they start reading the answers?
It used to be that users brains evaporated when they sat down in front of a keyboard and mouse. Now that's moved on to people "writing" code!?
|
|
|
|
|
See? I told you to have a drink.
|
|
|
|
|
What's wrong with that? He proved clearly that he understood the words you said to him, and he could reliably reproduce your words, character by character, not even a iota did he get wrong.
|
|
|
|
|
OriginalGriff wrote: Wasn't going to work, because it would be the same as writing:
string checkuser = " select count(*) from UserDetail where UserName='System.Web.UI.WebControls.TextBox'";
Just give him codezzz
To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson
----
Our heads are round so our thoughts can change direction - Francis Picabia
|
|
|
|
|
OriginalGriff wrote: UserName='System.Web.UI.WebControls.TextBox' I wonder what kind of password would go with a username like that?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: what kind of password would go with a username like that?
My first try would be:
X';DROP TABLE UserDetail;--
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Please, start to think about what you are doing? Please?
I think, the member either didn't bother to comprehend your answer and just proceed to copy-paste the texts in your <pre> tags or he didn't comprehend it clearly. Either way, the 'begging' part actually makes me laugh.
Don't mind those people who say you're not HOT. At least you know you're COOL.
I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64
|
|
|
|
|
Surely it should be:
string checkuser = " select count(*) from UserDetail where UserName=@UserName";
SqlCommand com = new SqlCommand(checkuser, conn);
com.Parameters.AddWithValue("@UserName", TextBoxUN.Text);
|
|
|
|
|
Now I need to get the wife to buy into this.
|
|
|
|
|
|
Personally, I prefer women who don't fart, but vive la difference.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
|
a for not linking to the question. I, for one, am getting a bit sick of naming the bad questions. Shaming is a different ball of string entirely.
|
|
|
|
|
dem commams though.
Srsly, what the actual hell. really? ugh.
|
|
|
|
|
And this is the next generation of coders.
I'm getting tempted to remove all my money from the bank, stop flying...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
tbf it's probably not representative of the entire generation. You just don't hear from the smart ones because they already know the answers. I assume anyway...
|
|
|
|
|
You know how it is in programming.
When you're doing something right people will wonder if you've done anything at all.
That's why you never hear of the good ones.
It's an OO world.
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
Yeah, its really hard to remove those pesky inverted commams from a string.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
I once asked myself the question how I could add them... Of course nothing that a quick Google search couldn't answer.
Removing them... Now that's a whole different matter. Perhaps a nice addition for .NET 5.0? Optional inverted commams for everyone!
It's an OO world.
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
|
|
Why remove them? Why not just un-invert them? Much more challenging.
|
|
|
|
|
I found this line of Lua code in a graphical application and thought it qualified as both weird and wonderful.
local PI = math.asin(1) * 2
What an interesting little trick to calculate Pi.
Unfortunately the math library has math.pi. If that was not implemented in an earlier version I would write the whole 3.14etc. rather then use this mathematical trick.
|
|
|
|
|
genius
In code we trust !
|
|
|
|
|
Fueled By Caffeine wrote: I would write the whole 3.14etc
Good luck with that!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|