Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > march 2008 > threads for saturday march 22

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

response.redirect
Posted by Jeff User at 3/22/2008 11:44:59 PM
Hi all What are the ramifications of either of the possible values for the [optional] boolean endResponse parameter when calling Response.Redirect? If if false, is there some mysterious processing that continues on the current page? Normally, when I place a Response.Redirect in my code,...more >>


How to resolve constant object property reference in DLinq expression
Posted by Andrus at 3/22/2008 11:30:00 PM
The following code fails: CompaniesDetails c2 = (from c in db.CompaniesDetails where c.CompanyID == comp.ID select c).Single(); "comp" is an instance of class Company: public class Company { public int ID; { get; set; } ...more >>

Sorting Bindinglist based DataGridView
Posted by Andrus at 3/22/2008 10:22:47 PM
I have 3.5 WinForms DataGridView whose DataSource is BindingList<TEntity>. I need to sort when user clicks in column header. I tried MSDN sample but Sort(newColumn, direction); causes exception: DataGridView control cannot be sorted if it is bound to an IBindingList that does not supp...more >>

Interesting notice regarding pointers
Posted by K Viltersten at 3/22/2008 6:40:23 PM
Just for fun of it i tried to send in the value of null into a constructor. It looks like this. public Donkey (Object ob, char ch) {} The first call below works well but the second produces errors. Donkey d1 = new Donkey (null, 'd'); Donkey d2 = new Donkey (null, null); I und...more >>

output from a process: StandardOut, or Pipes
Posted by ghandi at 3/22/2008 4:50:23 PM
I am trying to redirect output from a process that I didn't create. I see that the process class has the ability to redirect this through the StandardOutput property. I also noticed that .net 3.5 has pipes, so I assume that I should be able to use those new classes as well. What's the differen...more >>

[ping] Marc Gravell.
Posted by Michael Starberg at 3/22/2008 4:44:30 PM
Happy easter. Just wanted to tell you that this tuesday I got a weird exception, stemming from NOT disposing a DataContext. So like Bill Maher we just added New Rules in our project. Always using using on a DataContext. I of course wrote a snippet that when typing db and tab it you get ...more >>

shopping cart & ecommerce
Posted by jp2msft at 3/22/2008 3:41:57 PM
I've been asked to provide a shopping cart for someone's website, but I've never done this before. Is there a basic step-by-step for this somewhere? I want to make sure I do the cart fundamentally correct and secure. Thanks. ...more >>

Hidden Application Data
Posted by sternr at 3/22/2008 11:28:42 AM
Hey, I have a commercial application, that needs to store the user's id and password on the local machine, and we'd like to hide it from our users (to prevent frauds etc.). How can I store my application's data in a hidden way? And don't tell me the obvious solutions: hidden file, registry ke...more >>



Implementing Linq IENumerable<T> without new() constraint
Posted by Andrus at 3/22/2008 10:40:17 AM
I noticed that Linq-SQL DataContext ExecuteQuery method does not have new() constraint: IEnumerable<TResult> ExecuteQuery( command, ... ) IEnumerable must return object so it must create this object in some way. Any idea why and how ExecuteQuery<T> can be implemented witout new() constr...more >>

Closures, Deferred Execution and IDisposable
Posted by Caddzooks at 3/22/2008 8:45:06 AM
Q2FuIHNvbWVvbmUgc3BvdCB0aGUgcHJvYmxlbSBoZXJlOg0KDQpwdWJsaWMgY2xhc3MgRm9ybTEg OiBGb3JtDQp7DQogICBwdWJsaWMgRm9ybTEoKQ0KICAgew0KICAgICAgdXNpbmcoIE15TG9ja09i amVjdCBsb2Nrb2JqID0gbmV3IE15TG9ja09iamVjdCgpICkNCiAgICAgIHsNCiAgICAgICAgIEFw cGxpY2F0aW9uLklkbGUgKz0gZGVsZWdhdGUoIG9iamVjdCBzZW5kZXIsIEV2ZW50QX...more >>

Really simple question on 'msgbox'
Posted by COHENMARVIN@lycos.com at 3/22/2008 6:01:20 AM
I'm a VB programmer, learning C#. How does one do the equivalent of a "msgbox" (from Visual Basic) in C#? Is there something like this: System.Forms.MessageBox("Hello World"); Thanks, Marvin...more >>

Overiding generic functions
Posted by colin at 3/22/2008 3:07:34 AM
Hi, If i have a set of overloaded serialization routines such as void Serialize(ref Int32 x); void Serialize<T>(ref T x); this works great,... when I call the function with an int32 it calls the first one, any other type it calls the second one. however If i have a serializer for a gener...more >>


DevelopmentNow Blog