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

Last 24 Comments

re: jQuery Form Serialization without ASP.NET ViewState
Today @ 5:58 pm | by Dan F

Dude, awesome. Is there anything jQuery can't do?
re: Replacing deprecated System.Net.WebProxy.GetDefaultProxy() in .NET 2.0?
Today @ 1:25 pm | by ניתוח טכני גרפים

Another question - how do i set it to use costume proxy parameters ?
re: Replacing deprecated System.Net.WebProxy.GetDefaultProxy() in .NET 2.0?
Today @ 11:41 am | by cftygv

Hi people,

Can i get the default setting automaticly ?
is it also workingfor c# application desktop based?

Thanks.


<a href=http://www.biztrade.co.il>ניתוח טכני גרפים </a>
re: jQuery Form Serialization without ASP.NET ViewState
Today @ 1:11 am | by Raman Basu

It is excellent! I am using it successfully. Thanks
re: ISAPI Module Crashing on Application Pool Shutdown
Today @ 12:02 am | by Rick Strahl

@Kevin - Thanks for downloading and checking this out. VFP definitely leaks, but I've tried a bunch of other servers too and they too leak in the same way. The only things that appear not to leak are really light weight ATL components. BUt heavier servers - especially those that have some sort of UI all leak.
re: ISAPI Module Crashing on Application Pool Shutdown
Yesterday @ 11:40 pm | by Kevin Jankunas

Looks like something funky in vfp. I downloaded the sample and I'm getting the same results. I thought adding an explicit call to Quit on the IApplication interface before calling Release() might work, but the proxy still leaks the handle.
re: ISAPI Module Crashing on Application Pool Shutdown
Yesterday @ 10:04 pm | by Rick Strahl

Actually no I'm not calling CoInitialize() and CoUninitialize() - IIS does this when threads are started so I have to use the env that IIS provides. But I've duplicated the same situation locally in a console application.

http://www.west-wind.com/Weblog/posts/463120.aspx

It's fairly reliably leaking Windows handles with most EXE based com servers. Still waiting to hear back from a contact at MS who's duplicated the issue and is trying to find out more. Apparently there's not much interest at MS at looking at a COM issue like this.

Not surprised. <s>
re: ISAPI Module Crashing on Application Pool Shutdown
Yesterday @ 9:40 pm | by Kevin Jankunas

I'm Assuming your calling CoInitialize(); and CoUninitialize();
I'm also Assumng the HRESULT returned from CoCreateInstance is not failing.

Looks more like something is happening in the proxy stub code or some other handle or resource is not getting cleaned up correctly. How is the ISAPI using the reference to punkObj?
re: Slow Http client calls from ASP.NET 2.0? Make sure you check your Proxy Settings!
Yesterday @ 9:31 pm | by Rick Strahl

@Jeff - this should only be an issueon the server in web.config. Client side should pick up proper proxy settings.

I also think this has been addressed in .NET 3.0 and later so before you muck with this setting make sure you check and see if this is actually a problem first. Using default settings is always preferrable if they work right <s>...
re: Slow Http client calls from ASP.NET 2.0? Make sure you check your Proxy Settings!
Yesterday @ 9:15 pm | by Jeff

I'm a little confused. I'm running a windows app, deployed using click-once, that accesses a web service. Do I make this configuration change in the applications app.config or the web services web.config file?

Thanks
re: jQuery Form Serialization without ASP.NET ViewState
Yesterday @ 1:38 pm | by Rick Strahl

@Tobias - yes that also works with jQuery - personally I prefer to use an explicit .not() filter because it's easier to read and because there are no limitations on the expressions you can use unlike the inline string representation.

FWIW, the expression as you have it isn't enough - you need to make sure you include input, select, textarea and hidden elements.
re: jQuery Form Serialization without ASP.NET ViewState
Yesterday @ 3:15 am | by Tobias H. Michaelsen

I'm not sure, but I would think that jQuery supports the :not() selector, so you could write something like:

$('#form1').find('input:not([name^=__]),...')

I know Prototype.js supports it, so jQuery probably does as well.
re: FireFox 3 and Static File Caching Problems
Yesterday @ 1:46 am | by JM

@Rick I think you can add a custom header from iis to your CSS files to set a expiration date to force FF to reload files, I can't remember right now how do that, but I am reviewing :)
re: Detecting Text Encoding for StreamReader
Friday @ 10:36 pm | by seminda Rajapaksha

I try this but there is a posibility of fail this GetFileEncoding method.Because there can be more conbination of unicode caracters. I think this work for some files but not for the all the files.

More Details:
http://en.wikipedia.org/wiki/UTF-8
re: Google AdSense Advertising - eeech...
Friday @ 4:43 pm | by Angi

I'm laughing at the complaints for Adword bids at $5.00. Industries make a difference and I can tell you in the one I'm in our bids range from $15 to $75 per click depending on geographical area! However, one click can bring in thousands of dollars and it's still a cheaper form of advertising than yellow pages. (You'd faint if you heard THEIR prices and cost per transaction!) We had a hemorrhage of advertising $$ and turned off the content network. I've had to turn to a PPC consultant because I realized it takes too many hours/day to truly analyze such a campaign and mistakes are too costly. While we're still developing our organic listings, PPC is essential.
re: jQuery Form Serialization without ASP.NET ViewState
Friday @ 11:04 am | by Billy McCafferty

Wow, your timing was impeccable! I was just Googling for this a couple days ago.
re: Animated GIF images in hidden page elements
Friday @ 7:53 am | by ErikS

Thans all!

This made it work for me in IE 8. The trick seemed to be, as someone said, add a random url to the image:

function showFormProgress(hideElementID, displayElementID, progressImgElementID) {

var hideElement = document.getElementById(hideElementID);
var showElement = document.getElementById(displayElementID);
var animGif = document.getElementById(progressImgElementID);

if (hideElement && showElement) {
hideElement.style.display = 'none';
showElement.style.display = '';
}

if (animGif) {
setTimeout(function() { animGif.src = animGif.src + "?rnd" + new Date().getTime() }, 300);
}
}
re: Absolute Positioning inside of a Relative Element with CSS
Thursday @ 8:51 pm | by none

This was very useful, thank you!
re: Winforms, Menus, Toolbars and Themes on Vista
Thursday @ 5:41 pm | by Michael DePouw

Great post, man. I didn't read it thoroughly but I agree, it is a chore.

Your post was from two years ago, any updates since then?

Regards,
Mike D.
re: XSD.EXE and included schemas?
Thursday @ 3:45 pm | by Ken Blackford

I have a tool I have been using for about a year... I am not sure where I found it. After a search on the internet for the author - "Ryan Herbert", company - "CDR Technical Solutions" and the name "XSD GUI" the executable is named "xsd-gui.exe", I find nothing. i use this tool all the time. I allows for generating code using xsd from multiple files.

Maybe you can find it on the net. I would distribute it but I am unable to locate the readme for it and the license agreement to see if I can legally do so.

Hope this helps ya.

Ken
re: FireFox 3 and Static File Caching Problems
Thursday @ 11:13 am | by Boris

Oh, and the upshot is that if you want to be able to propagate content out in no more than X minutes then you need to always send an Expires header for no more than X minutes into the future.
re: FireFox 3 and Static File Caching Problems
Thursday @ 11:11 am | by Boris

Note that if you're sending Last-Modified but not Expires, then the UA is supposed to calculate an expiration date based on the Last-Modified date (see the HTTP RFC). The expiration date is the earliest point at which the UA will make the If-Modified-Since response to revalidate the cache. The longer in the past Last-Modified is, the further in the future the computed Expires will be (again, see the HTTP RFC).

That's my best guess as to what you're hitting, though I don't think this behavior has changed from Firefox 2 to Firefox 3. But note that if you're not using the former much and it didn't have the files with the ancient Last-Modified date cached... you wouldn't hit the problem.

The issues with reload sound like a bug for sure. Any chance of getting that filed, and ideally a page that reliably shows the problem?
re: FireFox 3 and Static File Caching Problems
Thursday @ 10:41 am | by similar

Ben, I do something similar with caching in .net. I have a class that modifies the filename being output with the timestamp, like so: filename.25642352345.css. I also set a far future expires header on the files. I then map that back to the actual file when requested.
re: Adding a WCF MetaData EndPoint programmatically
Thursday @ 6:23 am | by Vinoth Bellie

Just replace your service metadata element as below

<serviceMetadata httpGetEnabled="true" httpGetUrl="http://localhost:8080/Subsystem1/MEX" />

Hope this solves your issue


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