Welcome to MSDN Blogs Sign in | Join | Help

Rahul Soni's blog

Never assume the obvious is true!

News



  • These postings are provided "AS IS" with no warranties, and confers no rights.

Browse by Tags

All Tags » Tips and Tricks   (RSS)
ASP.NET:How to write error messages into a text file using a simple httpModule
In one of my previous posts , I mentioned about how to troubleshoot some issues with the use of a module. In this post, I will show you how a similar module could be of use when you want to log all the errors in a text file for troubleshooting purposes. Read More...
Logparser Scenario 9:Find out what is the peak time for your IIS Server
This blog entry is a continuation of the KB Article http://support.microsoft.com/?id=910447 Scenario 9:Find out what is the peak time for your IIS Server How can you find out what is the peak time (peak hour) for your Website using Logparser? Answer: Read More...
Run a batch file as a specific User (or Administrator) from ASP.NET...
...well first of all, I am NOT recommending it, but sometimes it could be necessary! Now, let's proceed to the code... 1. Create a page called RunBatchFile.vb and paste the following... Imports System.Diagnostics Imports System.IO Partial Class RunBatchFile Read More...
Visual Studio 2008 - More control over Recent Projects list in Start Page
If you work with a lot of samples, the chances are quite likely that you will end up in a rather dirty list of Recent Projects List in Visual Studio. I'm personally quite nit-picky and I really hate it when I find something like this... Now... I don't Read More...
Why do I like overflow:scroll so much?
There are times when you want to incorporate a picture, a large piece of code in a limited web space... ex. a blog post which has a lot of <DIV> tags. Now, to crop or resize the picture may not be the option always. I still see a lot posts where Read More...
Why am I unable to search for the folder which I know is present (in Vista)?
Or... what exactly is this "Compatibility Files" folder icon doing in my Windows Explorer?? Jerry's Blog explains this stuff beautifully! So, why am I blogging about this? Well... to cut the long story short, I have lost almost 3 hours yesterday searching Read More...
The F7 and F8 key while you are using command prompt.
I am sure many of you will be aware of this F7 and F8 keyboard shortcut while working with the plain old command prompt. For those who are not... try this out! F7 - Basically, this would just list the history of commands you have already typed in. You Read More...
MSIL Trivia - 1
Background: If you have multiple Main methods in your C# console application, you will be able to compile the application only if you provide the /main:ClassName on your command prompt. For ex. create a file called SampleMSIL.cs and paste the following... Read More...
Enable wrap and change the color of Listbox items
Problem description> You have a Listbox where you have a lot of items which are quite large and won't fit inside the width of your listbox. You don't want to enable Horizontal Scroll bar, since you have don't want your users to keep scrolling left Read More...
Change the border color and style of PictureBox in VB.NET
You know that by default you don't have too many options to change the Border Color/Style of a normal PictureBox control. I wanted to customize this control a little bit, so that you can at least change the border color and style when you click on any Read More...
Quantification vs Gut feeling
I was working on a pretty tricky issue a while ago. It was related to the Visual Studio IDE high memory consumption and slowness and I found that there are a lot of files in the Source Folder. So much so, that my gut feeling was saying that it is the Read More...
Read or Write Resources from/into a DLL in .NET 2.0
I created a Windows Live Writer plug-in for inserting Smileys a while ago. It depends on a TXT file which was initially present under Application Folder + "\Plugin" folder. Recently, due to design changes in the beta version of WLW, the plug-in started Read More...
How to use your Hotmail account in Microsoft Outlook 2007
Who doesn't like things for free? Recently, after upgrading to Office 2007, I found that I was no longer able to access my Hotmail account from my Microsoft Outlook 2007 client. I was getting error messages like the following... That was sad, and I was Read More...
Sample page in ASP.NET to show you different collections like Forms, Querystring, Cookies etc
Sometimes, while troubleshooting I am interested to find out all the details about certain collections in ASP.NET, like Forms, QueryStrings, Headers, ServerVariables, Cookies, Sessions and Params... I created a very simple aspx page which would show you Read More...
Some more helpful tips for Vista...
In one of my previous posts I mentioned about how you can Open command prompt and navigate directly to the path from explorer's right click menu... and I got a comment that it is missing from Vista. Thankfully, it is not missing... the sad part is that Read More...
More Posts Next page »
Page view tracker