Andrew Stevenson's WebLog

Write Here Write Now

Syndication

.Net Languages

ADO.Net

Asp.Net (Misc.)

Asp.Net Controls

Bad Patterns

Err What?

Files and Folders

Forums

IE Add-Ins

Methods for the Madness

Performance

See Clearer, C#

Test Driven

Published by

Comments

# re: Turn off the shutdown tracker in Windows 2003@ Monday, February 09, 2004 6:32 PM

Great Tip - I've always been totally annoyed by that.

Donny Mack

# re: Turn off the shutdown tracker in Windows 2003@ Tuesday, February 10, 2004 6:11 AM

Thanks ... thats one annoying feature !!

Saurabh Nandu

# re: Introducing Me@ Tuesday, February 10, 2004 9:20 AM

Hey Andrew, welcome to weblogs.asp.net :)

If you focused on Design-time behavior, that would be awesome. There seems to be little talk in the area of Design-Time, but a lot that you could do with it.

Adam Kinney

# re: Turn off the shutdown tracker in Windows 2003@ Saturday, February 14, 2004 10:59 AM

Scott W. posted a great link about this an other Dev environment isses with 2k3

http://www.msfn.org/win2k3/index.htm

AndrewSeven

# Implementing a ViewAsText property for a WebControl at design time @ Tuesday, February 24, 2004 7:53 AM

TrackBack

# The quoteable self article.@ Friday, March 12, 2004 12:58 PM

TrackBack

# The quoteable self article.@ Friday, March 12, 2004 1:01 PM

TrackBack

# re: A UserControl (ascx) event example@ Wednesday, March 24, 2004 12:10 PM

Yup, a writing machine he is, that just went up.

For someone who is trying to learn about controls, I would strongly suggest reading all of Scott's articles about controls.

http://www.scottonwriting.com/sowBlog/

AndrewSeven

# re: Are you as CSS challenged as I am...@ Wednesday, March 24, 2004 7:10 PM

TrackBack

# re: The quoteable self@ Wednesday, March 24, 2004 9:27 PM

Man who says it cannot be done should not stand in way of man doing it. - Old Chinese Proverb

StarPilot

# re: DAL rest in peace@ Thursday, March 25, 2004 9:05 AM

TrackBack

# Polling@ Thursday, March 25, 2004 11:32 AM

TrackBack

# Polling@ Thursday, March 25, 2004 1:41 PM

TrackBack

# re: What should the Help toolbar look like?@ Tuesday, March 30, 2004 9:18 PM

TrackBack

# re: Performance And Pooling : Comparisons of Data Access Techniques@ Wednesday, March 31, 2004 6:13 PM

You shouldn't be doing data access in your UI. Any loops you do with the data readers should have negligble performance impacts - 20 ms is A LOT !!! Something over a million MSIL instructions.

Udi Dahan - The Software Simplist

# re: Performance And Pooling : Comparisons of Data Access Techniques@ Thursday, April 01, 2004 9:20 AM

Udi:
I try to avoid any direct data access in my presentation layer.

I rarely have time to develop complete custom collections and data objects, so my buisness objects will usualy return untyped datasets.

EmployeeListDataGrid.DataSource = BizObject.Employees.List;

A million is a lot of intructions, you should write to the authors of the articles ;)

I mostly meant to keep this page as a collection of links on the subject, if you have some good ones (you must) please post em.

AndrewSeven

# re: I Love this@ Thursday, April 01, 2004 3:10 PM

TrackBack

# re: Is TextAmerica good enough for a desktop contest?@ Thursday, April 01, 2004 3:11 PM

TrackBack

# re: [Partial Rant] - A sick cyclic redundancy when providing answers to questions, versus questions asked...@ Monday, April 05, 2004 12:58 PM

TrackBack

# re: Imitation vs. Innovation@ Thursday, April 08, 2004 11:39 AM

TrackBack

# re: Hypocrites That We Are@ Wednesday, April 14, 2004 9:38 PM

TrackBack

# re: Localization in ASP.NET 2.0@ Wednesday, April 14, 2004 9:53 PM

TrackBack

# re: Two posers for you@ Monday, April 19, 2004 7:19 PM

TrackBack

# re: Idiot's Guide to Creating and Using VS Macros@ Wednesday, April 21, 2004 9:46 AM

TrackBack

# re: A more elegant solution to avoid ugly URL's with MCMS@ Friday, April 23, 2004 4:46 PM

TrackBack

# re: Even More Elegant URLs in MCMS + The Mac issue.@ Friday, April 23, 2004 5:01 PM

This looks good. But you don't have to pass the query string in published mode.
The caveat with your code: on IE you will no longer be able to switch to edit mode as you removed the script block. So you should add some code to check for the browser version.
In addition I would suggest to bind your overriden RegisterClientScriptBlock method in the HttpHandler as I did - this would avoid the need to have a "master page".

Cheers,
Stefan.

Stefan Goßner

# re: Even More Elegant URLs in MCMS + The Mac issue.@ Friday, April 23, 2004 5:08 PM

Thanks Stefan.

The stuff with the query string is for those just in case situations where the posting is given a query string posting.htm?aParamMightHappen=1 and you want that qs to be persisted during postback.

Dealing with the script block in the handler is better encapsulation, but I only realized how to do it as I wrote...I will try it.
The (small) expense of walking the control tree is probably a good trade off.



AndrewSeven

# re: Even More Elegant URLs in MCMS + The Mac issue.@ Friday, April 23, 2004 5:51 PM

Just tested your approach.
If the published URL has a different scope but then you get the following exception:

Server Error in '/CmsHtmlPhTemplate' Application.
--------------------------------------------------------------------------------

The virtual path '/Stefan/TestCh/htmlpage.htm' maps to another application, which is not allowed.


I will create a more general solution which works in all cases. Give me some minutes...

Stefan Goßner

# re: Even More Elegant URLs in MCMS + The Mac issue.@ Friday, April 23, 2004 6:19 PM

Yes, thats the same error we had when there were multiple root channels.

Cool

AndrewSeven

# re: Even More Elegant URLs in MCMS + The Mac issue.@ Friday, April 23, 2004 7:51 PM

I have a solution.
Before posting I would like you to test it (I don't have a Mac).
could you please send me a mail to webmaster@stefan-gossner.de so that I can send you the code?

Thanks,
Stefan.

Stefan Goßner

# re: Grammar Test@ Thursday, May 06, 2004 7:04 AM

Hi there,
I'ad appaered for the test n got good marks!!!!

Pranita Anchan

# re: OT : Three kinds of people in the world@ Friday, May 21, 2004 3:24 PM

Actually there are two types of people in the world. Those that put people into two types and those that don't.

J. Collins

# re: OT : Three kinds of people in the world@ Friday, May 21, 2004 4:11 PM

You are both mistaken- there are 10 types of people - those that understand binary and those that don't :)

Addy Santo

# re: OT : Three kinds of people in the world@ Saturday, May 22, 2004 8:10 PM

That's the joke Addy, 1 + 1 is 10, not 3.

;)

AndrewSeven

# re: Splitting a WebForm's First Page_Load from PostBack Page_Load@ Thursday, May 27, 2004 11:25 AM

it's not a good idea to fire events from an eventhandler. instead you should override the OnLoad method of the base class.

also, your commented out code doesn't work well either, consider

Page page = new PageEx();
page.Load += new EventHandler(Page_Load);

can't think of an alternative solution though, other than just simply eat the event altogether by not calling base.OnLoad()

Daniel Jin

# re: Splitting a WebForm's First Page_Load from PostBack Page_Load@ Thursday, May 27, 2004 12:35 PM

The override is a good suggestion.

I'm not sure I would want the real Load event to go away.

AndrewSeven

# re: Turn off the shutdown tracker in Windows 2003@ Thursday, June 03, 2004 12:59 PM

Thank you!!

Chris

# re: Adding Design-Time Support to ASP.NET Controls (by G. Andrew Duthie)@ Friday, June 04, 2004 10:14 AM

Thanks for the plug! Glad to hear that you find the article useful enough to keep going back to... :-)

G. Andrew Duthie

# re: The G(mail) Spot@ Monday, June 21, 2004 9:56 AM

can we stop the gmail spam? Pretty please?

matthew

# re: The G(mail) Spot - On/In/ I've got mail/ Thanks Frank!@ Tuesday, June 22, 2004 10:17 PM

Anytime, dude.

Frank

# re: The G(mail) Spot - On/In/ I've got mail/ Thanks Frank!@ Tuesday, June 22, 2004 11:15 PM

I'm not really liking GMail. Are you?

Francesco

# re: No castes!@ Wednesday, June 23, 2004 11:04 AM

TrackBack

# re: Grammar Test@ Friday, June 25, 2004 6:52 AM

Hi just want to do some testing, job interview coming up.

Muriel Miller

# re: IExtenderProvider & Asp.Net@ Friday, June 25, 2004 2:17 PM

You can check out my DefaultButtons control for an example of IExtenderProvider.
http://www.metabuilders.com/tools/DefaultButtons.aspx

Andy Smith

# re: The Stevensons@ Friday, June 25, 2004 4:06 PM

Hi Sandy:
My name is John Lawrence Stevenson. Noted your visit to the Elder John page.
My linage is Elder John/John/George W/Lorenzo/Burton/myself and also
Elder John/George/Martha/Burton/myself

Yours is: Elder John/George/Charles/George Francis/Edwin/Lionel/Yourself

Your Charles and my Martha were brother and sister.
Please sent me your e-mail address.
Mine is john.stevenson@sasktel.net

John Lawrence Stevenson

# re: IExtenderProvider & Asp.Net@ Friday, June 25, 2004 7:38 PM

Thanks Andy, I'm having a look.

Its helpful, but I'm not sure if it is what I need, I was really hoping to work out the code that is serialized into the InitComponent.


AndrewSeven

# re: The Stevensons@ Saturday, June 26, 2004 7:07 AM

Hi, Sandy
I saw your entry on the guest book. Looked up your web page. Can't say that I understand it all. I tried to reply by email, but the address I have must be out of dat. If you'd like to receive the "Elder Johns List" mailings, can you let me have your correct address.
Allison==steve

Allison Stevenson

# re: Quote: Abraham Lincoln @ Tuesday, July 13, 2004 9:51 AM

sharpening the axe == setting up your unit tests ?

:D

OmegaSupreme

# re: Visual Studio Feature Request (new?)@ Wednesday, July 14, 2004 4:22 PM

Interesting feature request though. Have you tried the C# to VB.NET or VB.NET to C# Converter yet at http://www.developerfusion.com/utilities/convertcsharptovb.aspx ? Possibly a converter tool could be implemented as a Visual Studio add-in, no?

Jan Ceulemans

# re: Visual Studio Feature Request (new?)@ Wednesday, July 14, 2004 4:24 PM

Yes, I have links somewhere to a couple of translators.
It could be done with an AddIn, there may even be one already.

AndrewSeven

# RE: Visual Studio Feature Request (new?)@ Wednesday, July 14, 2004 4:35 PM

The "Paste as" auto-conversion would be cool! For now you can look at:

http://www.kamalpatel.net/ConvertCSharp2VB.aspx

http://authors.aspalliance.com/aldotnet/examples/translate.aspx

Ashutosh Nilkanth

# re: To the creators of Alchisoft@ Friday, July 23, 2004 11:14 AM

I agree.

The spammers really messed up our email so we had to implement filters.

Are there Web log filters for spammers?

Ken Cox [MVP - ASP.NET]

# re: To the creators of Alchisoft@ Friday, July 23, 2004 11:16 AM

Andrew...umm...you just gave them major exposure...

Scott Galloway

# re: To the creators of Alchisoft@ Friday, July 23, 2004 11:19 AM

Yeah, I wouldn't name them here...
But they did the same to the SharpToolbox forums and kept sending me e-mails at the same time about their product (which I don't want to hear about anymore) while it was already in the list.

Fabrice

# re: To the creators of Alchisoft@ Friday, July 23, 2004 11:48 AM

They even sent me email hehe, there must be some humorous person working there ;)

However I get the feeling resellers are spamming the boards, not [censored] themselves.

Frans Bouma

# re: A UserControl (ascx) event example@ Thursday, July 29, 2004 2:45 AM

[][p

[po

# re: Searching for image upload control for asp.net@ Friday, July 30, 2004 11:47 AM

This it?: http://www.staticdust.net/shop/

Scott Galloway

# re: Good, bad or just a bit ugly : string[] RemoveEmpties(string[] source)@ Friday, July 30, 2004 11:53 AM

Personally I'd go for a different joining method, using a stringbuilder, pass through the fragments list doing AppendFormat on each one that wasn't null...

Scott Galloway

# re: Searching for image upload control for asp.net@ Friday, July 30, 2004 12:31 PM

Thanks,
That looks like it.
Their site seems down, but it is also here :
http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=2160&tabindex=2

AndrewSeven

# re: Good, bad or just a bit ugly : string[] RemoveEmpties(string[] source)@ Friday, July 30, 2004 12:42 PM

Annother thanks :)

I grabbed the chance to create the function JoinStrings(string joiner,params string[] fragments)
, then I ended up with nulls so I added the cruft:


Would you use that approach to avoid the cruft with the ArrayList or to avoid the String.Join?

Would .Append maybe be better than AppendFormat?

AndrewSeven

# re: Good, bad or just a bit ugly : string[] RemoveEmpties(string[] source)@ Friday, July 30, 2004 4:28 PM

To avoid the casting and Arraylist stage - since it really seems pretty unnecessary. Essentially (and there's every chance I'm wrong here as my reflector can't see the method right now!) I believe that string.Join just uses a StringBuilder internally to perform the join. It should be that the version I suggested is of equivalent performance (or very close) to the original string.Join yet avoids the overhead your RemoveEmpties method introduces.

Scott Galloway

# re: Good, bad or just a bit ugly : string[] RemoveEmpties(string[] source)@ Friday, July 30, 2004 4:30 PM

Oh, StringBuilder.Append would of course be faster than AppendFormat:-)

Scott Galloway

# re: Visual Studio Feature Request (new?)@ Friday, July 30, 2004 4:32 PM

I go with that, post with Auto-Convert would be awesome!

Scott Galloway

# re: Good, bad or just a bit ugly : string[] RemoveEmpties(string[] source)@ Saturday, July 31, 2004 3:57 PM

From ILDASM, internalcall...

.method public hidebysig static string Join(string separator,string[] 'value',int32 startIndex,int32 count) cil managed internalcall
{
} // end of method String::Join

AndrewSeven

# re: FxCop :: Do not declare explicit static constructors. Ignoreable?@ Tuesday, August 03, 2004 11:21 AM

Unless the CreateFieldSet method can throw an exception (which you may want to catch and log for instance in the static constructor), you can move the initialization of the Minimal static variable out of the static constructor and remove the static constructor altogether:

public static readonly string Minimal = CreateFieldSet(ProductFields.ProductID, ProductFields.ProductName);

Jason Raneses

# re: FxCop :: Do not declare explicit static constructors. Ignoreable?@ Tuesday, August 03, 2004 12:07 PM

Excellent, thank you.

AndrewSeven

# re: FxCop :: Do not declare explicit static constructors. Ignoreable?@ Wednesday, August 04, 2004 7:25 AM

Since the FxCop HTML page does not explain, what is the problem with declaring explicit static constructors?

Brian Carlisle

# re: FxCop :: Do not declare explicit static constructors. Ignoreable?@ Wednesday, August 04, 2004 8:54 AM

IIRC it was categorized as a performance issue.

I believe it is because at runtime, it is continually checking to make sure that the static contructor has been called and (less certain) it may even call it more than once.

It funny how we approach things sometimes:
I knew I could assign to the readonly field in the static ctor so I changed them from const fields to readonly but I never even tried what Jason suggested, I had automatically used the static ctor.

AndrewSeven

# re: FxCop :: Do not declare explicit static constructors. Ignoreable?@ Wednesday, August 04, 2004 10:17 AM

Thanks for the response--that certainly deserves further exploration, particularly if it is possible for a static constructor to be called more than once.

Just from a style standpoint, I would tend to prefer explicit static constructors because I don't like assigning a value to a field (static or not) when declaring the field.

Brian Carlisle

# re: Wither Application Blocks?@ Tuesday, August 10, 2004 7:45 PM

TrackBack

# re: I am searching for a new TDD example@ Wednesday, August 11, 2004 7:34 PM

TrackBack

# re: ID vs. Id (The naming of things)@ Thursday, August 12, 2004 9:50 AM

Here we use:
FooID (not FooId)
FooSql (not FooSQL)

I believe the published conventions agree camel-case for acronyms of three or more letters and caps for less. So the only possible issue would be if you don't consider ID an acronym *shrug*

-

# re: ID vs. Id (The naming of things)@ Thursday, August 12, 2004 9:54 AM

I have made it a habit of using CamelCase which would indicate that I should be using Id as opposed to ID. I usually reserve UPPERCASE for constants.

I apply the same standard when naming columns in my database entities as well. For example column name would be CustomerId and not CustomerID.

James Steele

# re: ID vs. Id (The naming of things)@ Thursday, August 12, 2004 10:08 AM

I do not consider Id an acronym but rather an abbreviation <sigh>. Thus the use of Id as opposed to ID. I would gather we could debate this as many before us have, with good arguments on both sides of the house.

James Steele

# re: ID vs. Id (The naming of things)@ Thursday, August 12, 2004 10:09 AM

I'm like you, I used to use ID, but fxCop has drilled the Id into me.

firefox

# re: ID vs. Id (The naming of things)@ Thursday, August 12, 2004 11:13 AM

I prefer "ID" as it is consistent with the way the framework names "ID" This also makes it consistant with the pronounciation... eye-dee as opposed to rhymes-with-squid.

Jim Bolla

# re: ID vs. Id (The naming of things)@ Thursday, August 12, 2004 11:29 AM

The confusion over "ID" and "Id" is from it's history: "ID" erroneously crept into our language (and many major dictionaries) due to most people pronouncing it "I","D" during WWII. Older dictionaries from the 40's and 50's usually have an entry for "I.D.", which the generation of lexicographers during the 70's and 80's didn't like. Thus, they removed the periods (since it's not an acronym) and it became "ID"...(which unfortunately conflicts with the abbreviation for "Idaho" and several acronyms like "Intelligence Department", "inner diameter", etc.).

Newer dictionaries have both "ID" and "Id", with a few noting that "Id" is syntactically preferred. (I picked up this tidbit during the late 70's when I worked for a company that phototypeset dictionaries for several of the largest dictionary publishers. I also picked up my penchant for being pedantic from a few lexicographers I knew back then...)

I cringe each time I see "ID" in identifiers of any sort...and go out of my way to change them. FxCop's rule is a good call.

Steve Hall

# re: ID vs. Id (The naming of things)@ Thursday, August 12, 2004 1:39 PM

I'm gonna have to vote ID as common usage in our language dictates. I have yet to visit a single bank, store or government building that had a sign stating "Photo Id required". Although it may be incorrect, every printed form of the word (used in the context of identification) that I have ever seen is spelled ID...not Id. But then again, we're programmers...we make our own rules :) In terms of naming fields/variables, I like the < 3 letters all caps, > 2 cammel case rule.

Mike Barger

# re: ID vs. Id (The naming of things)@ Thursday, August 12, 2004 3:44 PM

I agree with Jim and Mike here. ID has my vote. Eye-Dee. Not 'eyed'...

Wim Hollebrandse

# re: ID vs. Id (The naming of things)@ Thursday, August 12, 2004 3:55 PM

I just uncheck that stupid FxCop rule because it is NOT correct. It's ID people. If you look at the .NET Framework you will find IO, UI, ID all over. The rule is if it's a two-letter acronym/abbreviation then it's uppercase but if it's a word then it's not (e.g. AdRotator). Look at the Class Library documentation folks! Don't you want to be as close to the .NET Framework as possible?

So the bottom line is:
2-Letter Acronym/Abbreviation is UPPERCASE.
2-Letter word (e.g. Ad, Is, etc) is PascalCase.

(Note: the guidelines say PascalCase is for three or more characters but it should say for two letter words as well.)

Someone should really start bugging the MSDN Documentation and FxCop guys to fix this.

The snippet below proves the two-letter rule:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconabbreviations.asp

# When using acronyms, use Pascal case or camel case for acronyms more than two characters long. For example, use HtmlButton or htmlButton. However, you should capitalize acronyms that consist of only two characters, such as System.IO instead of System.Io.

# Do not use abbreviations in identifiers or parameter names. If you must use abbreviations, use camel case for abbreviations that consist of more than two characters, even if this contradicts the standard abbreviation of the word.

Nasseam Elkarra

# re: ID vs. Id (The naming of things)@ Thursday, August 12, 2004 9:17 PM

IO : Input Output
UI : User Interface
ID : Identification ...?

I have this feeling that ID was once an acronym for Identifying Document and thus should be ID.
This corresponds to signs in bars that say everyone must present ID and you don't just say your name.

Most common usage seems to follow this, but in code it usualy just means Identifier (or even Guid)

I think I'm gonna stick with ID, it will require a lot less explaining ;)

AndrewSeven

# re: ID vs. Id (The naming of things)@ Saturday, August 14, 2004 8:06 PM

I see all the arguments for a strict adherence to camel casing and cannot argue with the logic. I am retraining myself to use Id instead of ID. Still, I wish it were not so.

One of the biggest hurdles I faced learning C# after writing VB is its case sensitive nature. Writing code, or an email for that matter, I like to write out acronyms with capital letters. In VB I would write SQLConnection. I am now used to writing things out the way they should be. But as a matter of style I still like my old patterns better.

Michael Henderson

# re: NUnit and ConfigurationSetings AppSettings@ Sunday, August 15, 2004 12:06 PM

Since your main program in this case is NUnit - not your own program - you can simply add whatever appsettings you have your own .config file into the NUnit .config file.

This file should be something like C:\Program Files\NUnit 2.2\bin\nunit-gui.exe.config.

\Steven

Steven M. Cohn

# re: NUnit and ConfigurationSetings AppSettings@ Sunday, August 15, 2004 1:34 PM

Alternative, you can use NUnit's out-of-the-box support for configuration files. If your unit tests live in foo.dll, just put a config file called foo.dll.config in the same directory as your test .dll and NUnit will load the configuration for you.

Steve Maine

# re: NUnit and ConfigurationSetings AppSettings@ Sunday, August 15, 2004 2:22 PM

I downloaded and installed 2.2.

I had configured my test to use the project file rather than the assembly.
In Project|Edit, this meant that it wasn't looking in the bin for the config.

Changing the ApplicationBase property or using the dll directly seems to resolve the problem.
I would also suggest verifying the config file name in the same dialog window.

AndrewSeven

# re: ID vs. Id (The naming of things)@ Sunday, August 15, 2004 3:23 PM

We made a choice at the office that we should use camel case naming thus making "Id" the approriate choice although some will use the "ID" form still. I am a strong believer in "no exceptions" thus I find the Id form better.

Søren Lund

# re: I am searching for a new TDD example@ Monday, August 16, 2004 9:54 AM

TrackBack

# re: ID vs. Id (The naming of things)@ Tuesday, August 17, 2004 7:44 AM

Here is commentary on the subject from the 'horses mouth':

http://blogs.msdn.com/brada/archive/2003/11/26/50848.aspx

Personally I'm converting myself over to use the FxCop way.

Darrel

# re: NUnit and ConfigurationSetings AppSettings@ Wednesday, August 18, 2004 9:54 AM

OK, I spent aaaaages working round this one, before it all suddenly became very simple. Given any NUnit project file, say "foo.nunit", create a file in the same folder called "foo.config". Place all your settings in there, and the applications will have them in their context. You can then link your app.config/web.config files to use the settings out of this file, thus needing maintenance in one place only.

Personally, I have a custom written GetSetting() method in every application I write. It checks to see if the key "NUnit.Context" is true. If it is, it reads the config document manually (as XML), otherwise it uses the built in .NET classes. That way the only content in foo.config is a single key to notify the application of its context.

JS Greenwood

# re: ID vs. Id (The naming of things)@ Wednesday, August 18, 2004 9:57 AM

I always use "Id" in C#/VB.NET/any other OO language. *But* I religiously use "ID" in database schemas.

Not looking forward to the religious battle I'm going to have with myself when SQL Server 2005 makes it to gold code...

JS Greenwood

# re: Hot Fix :: VS.Net 2003 and VSS Dll Locking issue :: Please make it available@ Tuesday, August 24, 2004 11:39 AM

We have the exact same problem here. The fix should be public!
It's a pain to have to restart VS each time.

Fabrice

# re: Hot Fix :: VS.Net 2003 and VSS Dll Locking issue :: Please make it available@ Tuesday, August 24, 2004 12:55 PM

We would also need this fix, this locking problem is really annoying when having multiple projects containing user controls...

Matt

# re: My site is gone, no more UITemplates.net from webmatrixhosting.net@ Thursday, September 16, 2004 9:45 AM

I can suggest you the great Aruba (http://www.aruba.it) that offers unlimited webspace + emails + domain reg for 24euro/year.<BR>
ASP.NET on W2003.<BR>
I've used their servers for more than 4 years now.

Aruba

# re: My site is gone, no more UITemplates.net from webmatrixhosting.net@ Thursday, September 16, 2004 10:33 AM

I use http://www.webhosting4life.com
used it for a couple of weeks
and i've bought it because some guys here at weblogs.asp.net said they where good :-x

Gert Van Gool

# Comments For Post@ Friday, September 17, 2004 3:48 PM

TrackBack

# Comments For Post@ Friday, September 17, 2004 3:50 PM

TrackBack

# MSIB UrlBuilder ignores Commerce Server's PutTicketInURL option@ Friday, September 17, 2004 3:51 PM

TrackBack

# re: Windows won't start, can't find product key.@ Tuesday, October 05, 2004 8:36 AM

I have a linux distro that you can boot from then logon to the NT partition and reset the Admin password.

I had to use it in similar circumstances once to recover a DMZ server. I have it as an ISO image (1.5mb). Let me know via the contact form on my website if you'd like a copy.

Alternatively, you could look at ERD Commander from Winternals.com which uses a modified WinXP PE to do the same job

Adam

# re: Windows won't start, can't find product key.@ Friday, October 08, 2004 10:17 PM

Found the key.

I tried a lot of things and always ended up in the same place, everything seemed fine but the windows login screen would never appear.

Time for a clean install I suppose :)

AndrewSeven

# re: Windows won't start, can't find product key.@ Sunday, October 10, 2004 11:18 PM

Hello,

I am not aware of a way to look into the Windows XP registry to locate the product key. This was possible in Windows 98 but MS has since ditched this hack. Of course the product key is located SOMEWHERE in the registry but not in a recognizable form (to tbe best of my knowledge). It would help if you posted the KB article so we could look at it. You are able to access registry files from other installations (link for this included below) however it would not do you any good if you do not know where to find the key. If you were able to get into a running Windows installation there are third party utilities that will show your product key. In this case I would suggest calling MS support, give them the part # off the CD, tell them the story, and beg for another key. MS support may even be able to get you into the previous installation. Feel free to email me at john.fuller@gmail.com if you have more questions. Hope this helps!

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/regedit_s2.mspx

John Fuller

# re: Windows won't start, can't find product key.@ Monday, October 11, 2004 11:28 AM

The product key still seems to be in the registry files, but I got it from the .dat file, not and an exported .reg.

I reinstalled with the good key and activated, so I've gone down the Reinstall road.


AndrewSeven

# re: IOpine: Where do my comments go?@ Saturday, November 27, 2004 10:32 PM

The URL you leave should point to a script that surrepticiously records the HTTP referrer and then redirect the surfer to your personal website.

I mean, if people don't see your comment and go, "Whoa, that's awesome, who is this guy? *click*" then the comment probably is worth discarding...

Capt. Jean-Luc Pikachu

# re: IOpine: Where do my comments go?@ Sunday, November 28, 2004 5:25 AM

A simple solution, even if not perfect:

http://www.google.com/search?q=link:http://weblogs.asp.net/andrewseven/

Adrian Florea

# re: IOpine: Where do my comments go?@ Sunday, November 28, 2004 9:41 AM

Pikachu:
Sometimes, I'm interested in following a conversation, I add a comment, but by the next day I have no idea where the posting was.


I've been using google to find "AndrewSeven"

AndrewSeven

# re: IOpine: Where do my comments go?@ Sunday, November 28, 2004 9:47 AM

http://weblogs.asp.net/andrewseven/articles/TestTarget.aspx?messageBodyLink

AndrewSeven

# re: IOpine: Where do my comments go?@ Sunday, November 28, 2004 4:17 PM

I have two approaches: using WebMon (a web page monitoring app) and adding the page to a temporary Maxthon Group. I thought the WebMon approach was great until I started to get false change notices, due to the fact that some sidebar data has changed or something. So I find the Maxthon Group placement more efficient. I wanted to blog about this experience and your post gives me the incentive to do it.

My post on Maxthon tracking:

http://dbvt.com/blog/archive/2004/11/18/510.aspx

Post on WebMon tracking:

http://dbvt.com/blog/archive/2004/11/18/518.aspx

Dave Burke

# Two-week report on comment tracking with WebMon@ Sunday, November 28, 2004 4:30 PM

TrackBack

# Two-week report on comment tracking with WebMon@ Sunday, November 28, 2004 4:34 PM

TrackBack

# re: All abstractions leaky are leaky. All. But one?@ Friday, December 03, 2004 12:50 PM

TrackBack

# re: Creating Image Mouseovers@ Friday, December 10, 2004 8:10 PM

TrackBack

# re: IOpine: Where do my comments go?@ Friday, December 10, 2004 8:13 PM

Just gotta post a link to a page in the content...

AndrewSeven

# re: Joel gets it right, well...mostly.@ Monday, December 13, 2004 4:44 PM

TrackBack

# re: Changing Abstractions in an Object Model is Hard@ Sunday, December 19, 2004 1:32 AM

TrackBack

# re: The Last Configuration Section Handler You'll Ever Need, take 4@ Tuesday, January 11, 2005 8:28 PM

TrackBack

# re: Looking for strategies for using the CLR Profiler and ASP.NET@ Friday, March 18, 2005 2:01 PM

I wrote up an article using NProf, which allows you to select namespaces more easily (and is also pretty easy to use in general, though not terribly powerful yet).

Take a look and leave a comment if you have a particular question:
http://codebetter.com/blogs/darrell.norton/archive/2004/12/22/38226.aspx

Darrell

# re: Looking for strategies for using the CLR Profiler and ASP.NET@ Friday, March 18, 2005 2:06 PM

Thanks Darrel, I gave nProf a really quick try. If I'm stuck I try again.

AndrewSeven

# Design Time Directory in VS 2005@ Sunday, March 20, 2005 2:24 PM

TrackBack

# re: Long Acronyms Should Be Pascal Cased@ Wednesday, April 06, 2005 8:27 PM

TrackBack

# re: The long and Binding Road@ Friday, May 20, 2005 2:32 PM

Javier: I'm not sure what you are talking about. Did you write an object relational mapper?

My post is not about how you should set up your buisness entities, it is about what you can do with DataBinder.Eval().

The specific thing is the "extra" dot in the final version which gets you past the indexer.

In the specific case where I was testing things, "Container.DataItem" is an MSIB ProductPosting and ProductProperties returns the same DataSet you would get by calling GetProductProperties on a CommerceServer product.
I have no influence over how MS designs the APIs of Commerce,MCMS, and MSIB ;)


AndrewSeven

# re: What the Hex is going on in the VS.Net 2003 debugger.@ Wednesday, May 25, 2005 9:16 AM

You did switch. Down in the variables window, look at the context menu. THere is an entry you may want to trigger.

Thomas Tomiczek

# re: What the Hex is going on in the VS.Net 2003 debugger.@ Wednesday, May 25, 2005 10:59 AM

Yay!

Thank you.

AndrewSeven

# re: The long and Binding Road@ Tuesday, May 31, 2005 10:30 PM

Andrew:

Javier Luna is a spammer, the exact same comment has been posted to many blog posts at http://weblogs.asp.net

for example:
http://weblogs.asp.net/jezell/archive/2005/05/23/408518.aspx#409177
http://weblogs.asp.net/despos/archive/2005/05/12/406603.aspx#408175

I'm shamed but I had to admit that he's my compatriot/countryman, I've received spam mails from him asking for a job.

Rolando

# re: The long and Binding Road@ Wednesday, June 01, 2005 9:02 AM

Thanks, I noticed the very same text in several places, bye bye to his comments :)

AndrewSeven

# re: VS 2005 Beta2 is making me feel dumb.@ Thursday, June 09, 2005 12:36 PM

I'm a bit peeved that 'Open Solution' is a submenu

come on!

bilbo

# re: VS 2005 Beta2 is making me feel dumb.@ Thursday, June 09, 2005 1:11 PM

I think you're missing Microsoft Visual Web Developer 2005 in there.

Vurg

# re: VS 2005 Beta2 is making me feel dumb.@ Thursday, June 09, 2005 2:01 PM

Missing Web Dev... could be.
It seems that I have "Team Suite Edition" is that perhaps the problem.

AndrewSeven

# re: VS 2005 Beta2 is making me feel dumb.@ Thursday, June 09, 2005 6:31 PM

Thanks Vurg.
I'm not sure how I missed that in the setup features, just being dumb.
Either that or it is too darn close to the J#.

So make sure to select Visual Web Developer.

AndrewSeven

# re: VS 2005 Beta2 is making me feel dumb.@ Thursday, June 09, 2005 7:28 PM

1) make sure you have visual web developer installed.

2) vs2005 website are not projects as we know them. You have to go to File | New WebSite to do that.

It be different.

darth obvious

# re: VS 2005 Beta2 is making me feel dumb.@ Friday, June 10, 2005 12:33 AM

Same as in Beta 1: File | New Web site. Or just open an existing disk folder, IIS site or remote site via http or ftp.

Mikhail Arkhipov (MSFT)

# re: VS 2005 Beta2 is making me feel dumb.@ Friday, June 10, 2005 12:34 AM

Actually, you either need VWD Express or VS Standard or higher. C# Express is not able to create Web sites.

Mikhail Arkhipov (MSFT)

# re: VS 2005 Beta2 is making me feel dumb.@ Friday, June 10, 2005 9:00 AM

Thanks but...

darth obvious:
Did you read my comment? The one just before yours :P

Mikhail too...

AndrewSeven

# re: OT: Get your own personal Guid. Only 2 days left ...@ Thursday, June 23, 2005 3:24 PM

Don't bid on that. I got a few free GUIDs if u want.

Sahil Malik

# re: OT: Get your own personal Guid. Only 2 days left ...@ Thursday, June 23, 2005 5:14 PM

I'll sell you 100 GUIDs for half the price!

loneprogrammer

# re: OT: Get your own personal Guid. Only 2 days left ...@ Thursday, June 23, 2005 8:54 PM

I can get you the very same GUIDs he's selling.

blah

# re: OT: Get your own personal Guid. Only 2 days left ...@ Friday, June 24, 2005 3:04 AM

Ahh, but how do you know what GUID I'm selling, until the auction's over! :-)

Richard Hundhausen

# re: OT: Get your own personal Guid. Only 2 days left ...@ Friday, June 24, 2005 4:18 AM

Please don't whore your blog on Daily WTF.

e

# re: OT: Get your own personal Guid. Only 2 days left ...@ Friday, June 24, 2005 12:30 PM

> Ahh, but how do you know what GUID I'm selling,
> until the auction's over! :-)

I've got all the same GUIDs right here. There taking up an AWFUL LOT of room, too. I'd sure like to get rid of them.

blah

# re: VS 2005 Beta2 is making me feel dumb.@ Monday, June 27, 2005 9:25 AM

This also really annoyed me. I wonder how it will work for those of us running on a different source control provider...

We use subversion and the entire solution directory is part of the source tree. It'll suck if the website is not part of that same tree.

Does the old 2003 method of getting Visual Studio to do your project organization still work? (Create the subdirectory first, Webshare it, then create the web project of the same name?)

Ben Scheirman

# re: VS 2005 Beta2 is making me feel dumb.@ Monday, June 27, 2005 9:31 AM

From the little bits I've read, I think SubVersion will work without problems.

I'm not usre what you mean by "old method". I use normal asp.net apps for my web projects, but I add them to VSS by hand.

The only issue I have so far is that I keep developer test pages that have a buil action set to "none".

AndrewSeven

# re: Attaching the debugger to nUnit@ Friday, October 14, 2005 3:19 PM

I also recommend checking out TestDriven.NET for 'right click>Test With... Debugger'

Dylan

# re: Attaching the debugger to nUnit@ Friday, October 14, 2005 3:26 PM

Thats a good add-in :)

I'm using the macro to attach to other things too...

AndrewSeven

# re: Attaching the debugger to nUnit@ Friday, October 14, 2005 3:42 PM

Useful macro. I do almost all my business tier debugging from within NUnit, and an alternative approach I use is:
- have your unit tests in a separate class library project
- In your unit test class library project's configuration properties, under Debugging set Debug Mode = Program, click on Apply, set Start application to the NUnit executable, set Working Directory to the directory with your NUnit project, and set Command Line Arguments to the name of your project.
Then you can debug as usual from VS.NET by setting your unit test class library as the startup project.