Michael Liu

Southern California

Age: 31

I'm a professional C#/ASP.NET developer.

Careers 2.0 profile

1d
revised ASP.NET CheckBox inside a hidden DIV always returns false
edited tags
1d
comment ASP.NET: Using Eval in an if statement
Is all this code inside a repeater? If so, please edit your question and add the markup for it.
2d
comment Check a CheckBoxField from code behind file
<asp:CheckBoxField> is always placed inside another control, like <asp:GridView>. Edit your question and provide the markup for that control.
May
16
revised Emit local variable and assign a value to it
deleted 133 characters in body; edited tags
May
14
comment Overriding ASP.NET DropDownList width for responsive website
Set a breakpoint in RenderChildren and check whether the Width of the DropDownList has been set to 275px. The standard DropDownList control does not hard-code any width.
May
14
answered Japanese unicode in string
May
10
awarded Nice Answer
May
7
comment C# type conversion inconsistent?
In C# 1.0, an InvalidCastException occurs if you enumerate an ArrayList of long values with an int variable, and in C# 4.0, an InvalidCastException occurs if enumerate the LINQ query from int i in myList select i. Basically, I think it's the automatic numeric conversion from long to int that's surprising; I would expect only explicit reference and unboxing conversions to be performed.
May
7
revised C# type conversion inconsistent?
added 229 characters in body
May
7
revised C# type conversion inconsistent?
added 9 characters in body
May
7
answered C# type conversion inconsistent?
May
6
comment How to remove column headers from listview in ASP.NET
The question is about ASP.NET, not Windows Forms.
May
5
revised Why does overwriting an XML file create an extra end tag?
deleted 77 characters in body; edited tags; edited title
May
4
comment Collection was modified; enumeration operation may not execute
Are you sure DCache[words] isn't returning the same dictionary referenced by dWords? In other words, even though you have two variables, maybe you only have one dictionary.
May
4
comment Ignore whitespace while reading XML
XmlReaderSettings.IgnoreWhitespace only affects text nodes that consist solely of whitespace. In this case <Tag> contains the text node "\r\n····Value\r\n".
May
4
revised How to ensure that a static constructors is called without calling any member
changed doc URL
May
4
answered Why does List<T>.ForEach() implement a for loop?
May
3
answered What is the deserialize equivalent of ISerializable.GetObjectData?
May
1
awarded Necromancer
May
1
comment Fetching the MAC address of my router (not my network card MAC) using C#
Vote to reopen: The question is NOT a duplicate.
1 2 3 4 5