Browse by Tags
All Tags »
.NET (
RSS)
It’s finally happening…we’re having an MS dev (and IT) event here in Dhaka, Bangladesh. This is the first one ever and marks a significant landmark for the software industry here. It’s going to be held on June 20, at IDB Bhaban Auditorium. You can find...
Note: Cross posted from Heartysoft.com . Permalink In this article, I've looked at a few CMSes for my site. I've looked at Graffiti, Umbraco, Dnn, AxCMS and BlogEngine.Net. I've found the last one to fulfil most of my needs. This article explores how...
I’ve answered this question about five times in the last few days at the forums. It’s getting tedious so I thought I’d make a blog post about it. Issue: The FileUpload control has a FileName property. In FireFox (FF) and some other standards compliant...
We frequently see questions about sending emails using .Net in the asp.net forums. The process of sending mail is the same for Windows apps and asp.net websites as the same .Net classes are used. The process can be slightly shortened by specifying default...
We might need to read the contents of some page (local or remote) by code. This is quite simple in .net. using System.Net; using System.IO; WebRequest req = WebRequest.Create(" http://www.asp.net"); WebResponse res = req.GetResponse(); StreamReader sr...
I was recently working on a project that used WCF web services extensively. Everything was ready for deployment, I deployed to the remote host, and voila – nothing works (nothing WCF related). After a LOT of frustration, I managed to make it work. I found...
I was generating some custom reports in Word 2007 format today. The reports were being served by an HttpHandler and various params are passed to it (mostly by query string). One report needed a list of ids to be passed and the query string wasn't an option...
When writing a custom HttpHandler, by default you have no access to the Session object. Doing something like HttpContext.Current.Session also returns null. The workaround is quite simple: Reference the System.Web.SessionState namespace: using System.Web...
There's a little gotcha with the MemoryStream class that I just found out. It has 7 constructors. The default constructor has the stream set as expandable, with an initial capacity of 0. The ctors that take the capacity set the capacity to the param,...
Fate has a weird sense of humour. I held out from installing .net 3.5 sp1 all through the CTPs, then beta 1 and beta 2. This is also the first time I restrained myself from installing new stuff (coz simply put, having to uninstall a bunch of betas and...
More Posts