Life, Surf, Code and everything in between
White Papers | Free Tools | Products | Message Board | News |

Last 24 Comments

re: IIS 7 Error Pages taking over 500 Errors
Wednesday @ 4:30 am | by Markus Wolters

Thanks Rick for this post! I'm loving reading your posts, but this "beast" :-) saved my day! Can't figure out, why MS did such a thing... Greetings from Germany
re: ASP.NET 2.0 ReadOnly behavior change when EnableViewState is false
Wednesday @ 3:19 am | by Vijay

Thanks for the solution Divya...that was easy and quick one !
re: Problems with opening CHM Help files from Network or Internet
Wednesday @ 3:05 am | by prabhjot

It helped me...
re: jQuery.ui Sortable
Wednesday @ 12:50 am | by Lucas

If the scrolling is not working check if the wrapper div (or any of them) doesn't have overflow set to auto. That was the issue in my case.
re: Chaining the C# ?? Operator
Wednesday @ 12:01 am | by Erik A. Brandstadmoen

As a comment to the IsNullOrEmpty discussion: .NET 4.0 introduces the IsNullOrWhiteSpace method on strings:

IsNullOrWhiteSpace is a convenience method that is similar to the following code, except that it offers superior performance:

return String.IsNullOrEmpty(value) || value.Trim().Length == 0;

http://msdn.microsoft.com/en-us/library/system.string.isnullorwhitespace.aspx

:)
re: HttpContext.Items and Server.Transfer/Execute
Tuesday @ 6:49 am | by silver coins

There are so many weird behavior problems with these commands although I still use them at most times. I have a lot of single application that uses either of these command.
re: Integrating Credit Card Electronic Processing into ASP.NET Applications
Tuesday @ 6:07 am | by Jody

Great article! I appreciate all of the hard work you put into creating this.

-Jody
cheap auto insurance
Tuesday @ 4:42 am | by cheap auto insurance

I never heard of his single before my friend bring me his CD's. and I'm starting to fall in love with his record.
re: Microsoft Introduces WebMatrix
Tuesday @ 4:08 am | by David Turner

"I was unable to get a SQL Server connection string to work with the Database class (the connection string wasn’t accepted). "

This is due to an error in the documentation:
To open a connection string in web.config you need to use the currently undocumented Database.Open(connStrName), not Database.OpenConnectionString(connstr) (which is wrongly documented - it takes a connection string, not the name of a connection string).

I've done this successfully to connect to a MySql database; of course, the other requirements for ASP.NET MySQL support also need to be satisfied: I dropped the MySql.Data.MySqlClient DLL into a new Bin directory and added a DbProviderFactories section with an entry for the MySQL dataprovider to the web.config.
re: Creating a data driven ASP.NET Resource Provider and Editor Article posted
Tuesday @ 12:18 am | by Sam

Absolutely unreal! Cheers for this awesome bit of code. Now to extend it and detect when resource entries need to be syncronised when the invariant has been updated.
re: Application that won’t Pin to Taskbar in Windows 7
Monday @ 6:06 pm | by leo

"...To pin a shortcut to a mapped/network location:
Copy the .exe to your local drive.
-Make a shortcut on your desktop.
-Pin this shortcut to your taskbar.
-Right-click the pinned item on the taskbar, then right-click the shortcut in the jump list.
-Click Properties, and edit the Target and Start-in fields so they point to the network location.
-Delete the .exe you copied locally and remove the shortcut you created on your desktop.
"

Dave! You are the winner! Works 100%. No registry hacks, no scripts to write, no duplicate icons on the task bar. Pins to both task bar and the task menu. Thanks.
re: RequestValidation Changes in ASP.NET 4.0
Monday @ 4:39 pm | by Chris Halcrow

Thanks for the post Rick - this clarifies things some more.

I'm trying the fix that allow validation to be switched off, i.e. adding <httpRuntime requestValidationMode="2.0" /> to our root web.config. It works fine on my local development machine, however I still get the validation errors on our test web server. Both machines have .NET 4.0 installed, and the application I'm testing is configured as .NET 4.0 on my local machine and the test server. The only difference in these environments is that my local machine is running IIS 5.1, and the test server is running IIS 6.0. Has anyone come across this issue?

Thanks for any help, Chris
re: ResolveUrl() without Page
Monday @ 3:10 pm | by Kumar

Hi,

This is very helpfull code, can you tell me how to do the same with the URL in Iframe,
i mean resolveURL w.r.t Iframe URL would be very helpfull,

i tried iFrame.ResolveUrl(relativeUrl), but no luck...

Thanks,
Kumar
re: Creating Visual Studio Templates from your Web Projects
Monday @ 3:03 pm | by Mohi

Thanks for the Post.. it was Good.

but these are just the basic Steps you Did. If you have any .vstemplate file how do you convert that .vstemplate file to your project without doing the export template feature.

Suppose you need to create a Project Template with a Wizard. Wizard has radio buttons Project 1, project 2, Project 3, Project 4 and a finish button. when you hit the any radio button I need to create a specific project.

My Solution structure would contain one Class Library Project for implementing the IWIzard Interface, Project Template Project root .vstemplate file will contain the <ProjectTemplateLink> attribute for the location of the .vstemplate files for each of the projects.

Can you help me out Please..
re: XSD.EXE and included schemas?
Monday @ 12:12 pm | by anonymous

Define all includes prior to your primary xsd. Example:

c:\program files\microsoft sdks\windowsv\7.0a\bin> xsd.exe "c:\schemas\include1.xsd" "c:\schemas\include2.xsd" "c:\schemas\include3.xsd"
"c:\schemas\primary.xsd" /c /l:vb

re: RequestValidation Changes in ASP.NET 4.0
Monday @ 7:41 am | by Jarrett Vance

Rick, this is a great post, keep it up!
re: LINQ to SQL and missing Many to Many EntityRefs
Monday @ 6:01 am | by watch movies online

Nice write-up, although I found some more on MSDN and on this site http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx.
For many to many relationships you need to go through an intermediate class.
re: Calling JavaScript functions in the Web Browser Control
Monday @ 5:24 am | by Yasir Godil

Is this possible to load a page in Web browser control and then let user right click every control and perform some action available on menu. I must be able to know which button on menu was clicked and what was the ID or Name of the html control on which user right clicked ?
re: Microsoft Introduces WebMatrix
August 28, 2010 @ 4:43 pm | by web application development

What a great article.t You always rock. we are looking more from you.
re: Google AdSense Advertising - eeech...
August 28, 2010 @ 11:15 am | by john brughman

hi,

google adword is still the most efective ads network, compared with FB ads for example. adwords reach better targeted visitors or readers.
re: jQuery UI Datepicker and z-Index
August 26, 2010 @ 12:59 pm | by Jay

Thank you so much. I was using 1000 as zIndex and thought it's high enough. The much larger zIndex is definitely a safe way to make sure the popup is always shown properly.
re: FireFox Slow Startup: Watch out for Browser Highlighter Plugin
August 26, 2010 @ 12:20 pm | by Rosco

Does someone knows how can I remove Highlighter??
Thing is, "uninstall" button is like switched off so there is no chance to press it.
Does anyone knows how to solve it?

Thanks
re: SmtpClient and Locked File Attachments
August 25, 2010 @ 11:00 pm | by Gazza

The only way to be sure that you have released the locks on the file attachments is to dispose of the actual attachments once you have finished with them.

For example.

// Send the Email message via SMTP Client
objClient.Send(objMail);

// Clean up attachments
foreach (var attachment in objMail.Attachments)
{
attachment.Dispose();
}

// Clean up SMTP Client resources
objClient.Dispose()
re: Embedding Microsoft Word as a control into Desktop Forms
August 25, 2010 @ 10:23 pm | by Joe Holt

Id also like to know if theres a way to open an MS Word file with auto 70% zoom.

Thanks


West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2010