Joe Enos

Phoenix, AZ

jtenos.com

Age: 33

Software developer and architect, focused on .NET technologies. Aspiring entrepreneur, working on multiple startup projects.

Twitter: http://twitter.com/jtenos/

Jun
27
awarded Popular Question
Jun
26
comment Order by date without year
Or order by month(dt), day(dt), or whatever the applicable Oracle syntax is. Might be to_number(to_char(dt, 'MM')), to_number(to_char(dt, 'DD')), but I wouldn't swear to it...
Jun
26
comment Order by date without year
If your table size is small enough, you can convert all the dates into the same year, then order by date - performance is probably lousy, but wouldn't matter for a small table. So you'd be sorting 10-JAN-99, 22-JAN-99, 03-MAY-99, 17-JUN-99
Jun
26
answered How to set a DB Flag depending on previous row value in SQL Server
Jun
16
awarded Revival
Jun
16
awarded Notable Question
Jun
15
comment What's the best way to wrap a synchronous code as an async Task?
Check some of the answers on this question.
Jun
12
answered   character taking up space
Jun
9
comment Property Accessor 'Title' on object
Sounds like the Title property inside the Department class has some code in it, and the null reference exception is happening there. If that's the case, throw a breakpoint in the get of that property, and you should see the problem.
Jun
9
answered Set variable name as href id in JavaScript
Jun
9
comment C# - Exe application crashes when try to load an xml file at init
You're not including your code to create or read the XML file, or the error that occurs. I'll be exactly as descriptive with my answer. "Something is wrong." Hope that helps.
Jun
9
comment Linq to SQL replace .Any() with .Contains()
I'd even take it a step further, and try to make the LINQ query as simple as possible so there's less that can go wrong: int[] keys = dataBaseObjDictionary.Keys.ToArray(); ... .Where(x => keys.Contains(x.PersonRef).... I don't know if it would make a difference, but I know with Entity Framework, I've seen it complain at runtime about similar things, so you have to keep the LINQ simple.
Jun
9
comment Take input from textBox2.text and int.Parse
The hyphen is a legitimate int character, depending on its location and frequency (and I don't know if there are other "negative" characters in other languages/cultures). Also integers have a max value. So subscribing to a key event isn't necessarily going to guarantee valid input. But it is a good start.
Jun
8
comment Update input (type="Number") with two digits
Doesn't seem to be a great user experience as you click the wheel, but throwing something on the change event of the textbox to change the textbox value seems to work.
Jun
8
awarded Tumbleweed
Jun
8
awarded Famous Question
Jun
3
comment Set Asp:button command argument dynamically
You can't edit the name attribute of a server control. ASP.NET re-maps that name
Jun
3
comment Call c# code behind from jquery with parameters
As I said, just quoting the key in a javascript literal doesn't change anything. data:{value:"samplevalue"} and data:{ "value" :"samplevalue"} are exactly the same thing in javascript. Remember that a javascript object literal is not the same thing as JSON - javascript object literals don't require quoted keys.
Jun
3
comment Call c# code behind from jquery with parameters
You didn't provide any explanation of what you were suggesting or why it would make a difference, and what you put in there is exactly what they already tried in the question (quoting the key in a javascript object literal doesn't change anything, so this is exactly the same as data:{value:"samplevalue"}).
Jun
3
comment Call c# code behind from jquery with parameters
Also, this wouldn't be valid JSON, because in JSON (unlike javascript object literals), the keys must be quoted.
1 2 3 4 5