Re: [ADVANCED-DOTNET] How to press a button programmatically...

2008-09-08 Thread Adam Tuliper
http://forums.asp.net/p/1258291/2408979.aspx#2408979 (from page - not from me) --- One way to do this is to dynamically add hidden elements to the form with the appropriate values and the fire the click event of a button on the form. Here is an example... Windows Form, trigger on some even

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Ryan Heath
I use OrdinalIgnoreCase since we use only the ASCII characters :) At the point of the suspected code both string *should* be semantically equal. I added the comparison only for guarding reasons. Once in a while it encounters a difference ... // Ryan On Mon, Sep 8, 2008 at 7:23 PM, Sébastien Lori

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Sébastien Lorion
For now I made the list public to make it easier for me and everyone, but I could make it so that a new user needs to send a request before becoming a member and existing members can invite friends. I think that should at least stop the spammers. As for signal to noise, I could make it invite only

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Sébastien Lorion
I especially like the comments at the bottom ... That's funny and sad at the same time :p Don't you DARE close this without fixing like you did with TypeConverter.IsValid. Posted by IDisposable1 on 11/16/2006 at 2:44 PM They dared Posted by Marc Gravell on 11/27/2006 at 10:10 PM On Mon, Sep 8,

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Mark Hurd
On Tue, Sep 9, 2008 at 5:57 AM, Sébastien Lorion <[EMAIL PROTECTED]> wrote: > My bottom line is, if I control the data and I am 100% sure it won't contain > problematic chars, then by all means, I will use ordinal compare and get the > speed increase. Otherwise, as a non English native myself, I wa

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Mark Hurd
It looks like we're moving to Google Groups (unless the offer(s) to move the lists work out), but for those of you would like to continue with a normal email list albeit with more traffic, including VB.NET, C# and .NET general topics and the odd "flame war and such childish things" but mostly limit

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Mark Hurd
It looks like we're moving to Google Groups (unless the offer(s) to move the lists work out), but for those of you would like to continue with a normal email list albeit with more traffic, including VB.NET, C# and .NET general topics and the odd "flame war and such childish things" but mostly limit

Re: [ADVANCED-DOTNET] How to press a button programmatically...

2008-09-08 Thread Adam Tuliper
this is totally off the top of my head and Im sure there's an easier way.. but until someone replies it may give a head start if I recall - you set the postback event source and then submit the form.. I'll look quick for more info on it. that way asp.net knows where to route the request (ie who cal

[ADVANCED-DOTNET] How to press a button programmatically...

2008-09-08 Thread Clark, Michael (OFM)
I am trying to figure out how to click a button on a web page programmatically. Specifically, I have a WinForm with a WebBrowser control. Once it navigates, in the DocumentCompleted event handler I have the following set up for logging in: HtmlDocument doc = webBrowser1.Document; HtmlElement us

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Adam Tuliper
we're all being so insensitive to other cultures here! in a nutshell - if your current language settings has a character that is not the exact same value as one of the invariant characters which are all 'generic'..ex 0 1 2 3 4 5 6 7 8 9 % & * ( ) - _ = + ' " ; : . > "," < ? / a b c d e f g h i j

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread David Glauser
I fear you're correct. Not 2 minutes ago the WinTech OT group, hosted on Google groups, was informed about the exciting fact that Pam Anderson's rack just doesn't quit. I don't know how I could make it through a day thinking of threads and mutexes without that thought to comfort me. Do not archive

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Pardee, Roy
Hah--thanks for the laugh. Not for nothing, but I suspect/fear that one big reason we've had such a high signal/noise ratio on here is the relative obscurity of the list. I love google groups (and will join the new one, as well as Efran's) but won't be surprised if our bright stars are diluted

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Sébastien Lorion
string s1 = "Straße"; string s2 = "STRASSE"; int ordinal = string.Compare(s1, s2, StringComparison.OrdinalIgnoreCase); // = 140 int current = string.Compare(s1, s2, StringComparison.CurrentCultureIgnoreCase); // = 0 OrdinalIgnoreCase does not use Unicode conversion tables for making letters upper

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Sébastien Lorion
My bottom line is, if I control the data and I am 100% sure it won't contain problematic chars, then by all means, I will use ordinal compare and get the speed increase. Otherwise, as a non English native myself, I want to make my apps international and so, I will use the culture aware comparison (

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Zaccariah Bowling
Errr woops. That was supposed to be a directly reply. Used to mailman type list servers allowing me to reply directly. Now everyone knows our evil plans. That sucks. Zac On Sep 8, 2008, at 2:11 PM, Zaccariah Bowling wrote: Just have us mono contributors take over the list. We could use it

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Zaccariah Bowling
Just have us mono contributors take over the list. We could use it as part of our plans of world domination where we can control the content and lightly sway and shape the base over to getting everyone over to running their CLI code on Linux over time. Muhaha.. (I'm just upset because my in

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Per Bolmstedt
Define "won't work". Also, can you shed some more light on why it "won't work"? On Mon, 8 Sep 2008 14:32:02 -0400, =?ISO-8859-1?Q?S=E9bastien_Lorion?= <[EMAIL PROTECTED]> wrote: >It won't work with international characters. > >Sébastien >On Mon, Sep 8, 2008 at 2:19 PM, Per Bolmstedt ><[EMAIL PROT

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Sébastien Lorion
Well, if everyone agree with that, then I created http://groups.google.com/group/advanced-dotnet and you can simply join the group. Sébastien On Mon, Sep 8, 2008 at 2:18 PM, Greg Young <[EMAIL PROTECTED]> wrote: > Well we can always just create a google group and move on over ... > > Cheers, > >

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Sébastien Lorion
It won't work with international characters. Sébastien On Mon, Sep 8, 2008 at 2:19 PM, Per Bolmstedt <[EMAIL PROTECTED]>wrote: > On Mon, 8 Sep 2008 13:23:16 -0400, =?ISO-8859-1?Q?S=E9bastien_Lorion?= > <[EMAIL PROTECTED]> wrote: > > > by using OrdinalIgnoreCase, you are limiting yourself to only

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Per Bolmstedt
On Mon, 8 Sep 2008 13:23:16 -0400, =?ISO-8859-1?Q?S=E9bastien_Lorion?= <[EMAIL PROTECTED]> wrote: > by using OrdinalIgnoreCase, you are limiting yourself to only the > first 128 chars of ASCII, which in 2008 is kinda out of fashion... How so? According to "New Recommendations for Using Strings i

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Greg Young
Well we can always just create a google group and move on over ... Cheers, Greg On Mon, Sep 8, 2008 at 10:15 AM, Sébastien Lorion <[EMAIL PROTECTED]> wrote: > I agree with Per here, moving to Google Groups would be great as this list > has many knowledgeable people contributing and as far as I c

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Paul Cowan
I agree with google groups.Yahoogroups gets spammed way to much. And I agree there are some heavy hitters on this site. Their opinion is [EMAIL PROTECTED]> Date: Mon, 8 Sep 2008 13:15:53 -0400> From: [EMAIL PROTECTED]> Subject: Re: [ADVANCED-DOTNET] Retiring the ListServ> To: ADVANCED-DOTNET@

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Sébastien Lorion
I agree with Per here, moving to Google Groups would be great as this list has many knowledgeable people contributing and as far as I can remember, no flame wars or such childish things. Sébastien On Mon, Sep 8, 2008 at 8:55 AM, Per Bolmstedt <[EMAIL PROTECTED]>wrote: > On Mon, 8 Sep 2008 13:31:3

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Sébastien Lorion
What is the result if you use CurrentCultureIgnoreCase or InvariantCultureIgnoreCase? Also, by using OrdinalIgnoreCase, you are limiting yourself to only the first 128 chars of ASCII, which in 2008 is kinda out of fashion... Sébastien On Mon, Sep 8, 2008 at 7:25 AM, Ryan Heath <[EMAIL PROTECTED]>

[ADVANCED-DOTNET] problem deleting 'child' element from EF...

2008-09-08 Thread Mark Nicholls
I have somethign like an invoice + invoice items... so InvoiceComponent Invoice : InvoiceComponent (inherits). InvoiceItem has a foreign key into Invoice...and fk into InvoiceComponent.. So you can create composite invoices of invoice Items and invoices... Delete an item and "A relationsh

Re: [ADVANCED-DOTNET] Planning to keep the list alive

2008-09-08 Thread David L. Penton
That is great news Efran!!! Efran Cobisi wrote: Hi all, I am worried about the retirement of our lists as most of us are. Therefore, I am making arrangements with Rich in order to move all of the lists to my servers and keep them alive. Hope to get back to you with some good news soon. -- Efr

[ADVANCED-DOTNET] Planning to keep the list alive

2008-09-08 Thread Efran Cobisi
Hi all, I am worried about the retirement of our lists as most of us are. Therefore, I am making arrangements with Rich in order to move all of the lists to my servers and keep them alive. Hope to get back to you with some good news soon. -- Efran Cobisi http://www.cobisi.com =

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Mike Andrews
Yes, I can't agree more. I've subscribed for a very long time now and I'm sad to see it go. It will be more difficult now to find something similar. I have been very grateful for this list. Thanks, Mike On Mon, Sep 8, 2008 at 9:18 AM, Zaccariah Bowling <[EMAIL PROTECTED]>wrote: > Yes, this lis

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Zaccariah Bowling
Yes, this list very focused and one of the best kept secrets on the internets. It has a great deal of Microsoft employees following it. It truly is an "advanced" listed. The topics that come up on here are only of the most complicated nature and are not those that be solved with a simple go

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread HK Ball
... here's one plea for continuance ... while the other mediums are useful, they are often cluttered and unfocused ... an email mailing list allows time to reflect and respond to thoughts from people you grow to know and trust ... ... anyway, I am grateful for this very valuable list ... hk

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Ryan Heath
Same here, but lists that uses email to distribute, that's one of the main reasons asp.net it not working for me. // Ryan On Mon, Sep 8, 2008 at 2:43 PM, Geoff Taylor <[EMAIL PROTECTED]> wrote: > Hi, > That's a shame! I've been an avid lurker on this list (via various email > addresses) for year

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Per Bolmstedt
On Mon, 8 Sep 2008 13:43:04 +0100, Geoff Taylor <[EMAIL PROTECTED]> wrote: > There's a very active alt.net discussion group, but it's much > more focused on alt.net techniques than pure .NET. And there's > Win Tech Off Topic, which has some good .NET folks on it but > is (naturally enough) for su

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Geoff Taylor
Hi, That's a shame! I've been an avid lurker on this list (via various email addresses) for years. I'm gonna miss it. So I'll ask the obvious question: Before simply re-creating this list on Google or Yahoo, where are good high signal-to-noise discussions taking place on advanced .NET topics? C

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Per Bolmstedt
On Mon, 8 Sep 2008 13:31:37 +0100, Richard Blewett <[EMAIL PROTECTED]> wrote: > the world has moved on from mail reflectors to blogs, web forums > and other discussion mediums. Yeah, like Google Groups. Why not just migrate the list there instead of this overly dramatic adieu? Or to Yahoo! Groups

Re: [ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread John Warner
Have you thought about or considered creating a about 6 .zip files of the archive that could be downloaded? Since this is a text forum you would see a pretty good size reduction using this simple compression routine. Just a thought for those who might want to grab the entire archive for 'long term'

[ADVANCED-DOTNET] Retiring the ListServ

2008-09-08 Thread Richard Blewett
Hi all We are currently undertaking an infrastructure review at DevelopMentor and have realised that apart from this one list the listserv is not really used any more. Unfortunately we cannot really justify maintaining the server for this one list and so we have decided to retire the listserv. I

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Ryan Heath
On Mon, Sep 8, 2008 at 1:04 PM, Simon Robinson <[EMAIL PROTECTED]> wrote: > 1. Check the culture settings that your code is working in. I think that > override of String.Compare() is culture-dependant, so maybe there's some > unusual culture that doesn't recognize eg. 'r' and 'R' as being equivale

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Ryan Heath
On Mon, Sep 8, 2008 at 12:58 PM, Per Bolmstedt <[EMAIL PROTECTED]> wrote: > This sounds like a non-sequitur to me, since I would have expected the > lengths to be the same, even if the contents differ. I was thinking more of "roma{null}garbage", when printed it would print "roma" but its length wo

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Simon Robinson
Well if you're certain you've checked the code for typos etc. and it's failing as you claim, that does seem odd :) The only possibilities I can think of (and both of these seem like very long shots) are... 1. Check the culture settings that your code is working in. I think that override of String

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Per Bolmstedt
On Mon, 8 Sep 2008 12:38:32 +0200, Ryan Heath <[EMAIL PROTECTED]> wrote: > At first I thought the internal representation of the strings where > not equal, so I logged the length of the strings. But even their > lengths are the same! :S This sounds like a non-sequitur to me, since I would have ex

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-08 Thread Ryan Heath
Yeah, that will teach me to post some contrived code to the list :) But the production code is really working that way, String.Compare doesn't return zero for strings that seem to be equally to me. At first I thought the internal representation of the strings where not equal, so I logged the lengt

Re: [ADVANCED-DOTNET] DataGridViewComboBoxColumn and entity framework....

2008-09-08 Thread Mark Nicholls
To be fair the problem is not with the entity framework, my problem with EF, is that there seems to be a lack of comprehendable yet informative documentation, and a lack of decent samples. The problem is with the grids, that don't really seem to do anything sensible in this context, I think in gen

Re: [ADVANCED-DOTNET] DataGridViewComboBoxColumn and entity framework....

2008-09-08 Thread Paul Cowan
This post is certainly not warming me to the Entity Framework or DataGrids.I've migrated to ASP.NET MVC half-way through a project and I think it was the right move.I am an Nhibernate guy so I am bound to be biased.I think I would go down the Linq-to-Sql route before EF even it has somewhat limi

Re: [ADVANCED-DOTNET] DataGridViewComboBoxColumn and entity framework....

2008-09-08 Thread Mark Nicholls
As predicted...this doesn't seem to workit displays correctly...but then the grid tries to assign strings into the underlying entity... I'll persevere and then give up in about an hour. === This list is hosted by DevelopMentor® http://www.develop.com View arc

Re: [ADVANCED-DOTNET] DataGridViewComboBoxColumn and entity framework....

2008-09-08 Thread Mark Nicholls
I've fixed it...in a mildly unpleasant way... I created my own custom drop down...well to be honest I reused the existing one and then fixed the problem in an overridewhich is unpleasant. Bottom line is that it's the "GetFormattedValue" method on the DataGridViewComboBoxCell class that throws