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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|