.NET Reporter

 
Get Top Posts and Jobs
Weekly via Email:

Subscribe
Unsubscribe

Search Posts:


Title Only
Title and Body
 

Search Jobs:


Title Only
Title and Body
10 Most Popular Posts

Loading pages in IFRAME dynamically from codebehind - ASP.NET

Abstract from Harish Ranganathan (Indexed 2005-04-25):

POST UPDATED - March 16, 2007======================

First of all, I thank all of you who have provided feedback and glad to hear that this post has benefited many. This has been one of my most visited posts and heavily commented one too.

If you have a query, please write to me using the Contact form. Sometimes, I miss out your comments and if they are queries in the comments, I might miss out replying to you. Hence always use Contact form if you have a specific query.

Most ...(truncated)...

SQL Server 2005 SQLExpress error: ...provider: Named Pipes Provider, error 40 - Could not open connection to SQL Server

Abstract from Tim Huffam (Indexed 2006-01-30):

I got this error immediately after installing VS2005 & SQL Server 2005 Express and trying to establish my first connection using the new server - not a good start at all - and by the looks of it, it's happened to many hundreds, if not thousands, of others too.

Generally this error occurs if you cannot connect to the SQL server - as the message says (no sh*t). However, what's not obvious is why...

First suggestion is to make sure that you specifiy the instance name as well as the ...(truncated)...

Difference between Mutex and Semaphore

Abstract from Shahed Khan (Indexed 2006-06-09):

Source: http://koti.mbnet.fi/niclasw/MutexSemaphore.html

Mutex vs. Semaphore, what is the difference?The Toilet Example (c) Copyright 2005, Niclas Winquist ;)

Mutex:

Is a key to a toilet. One person can have the key - occupy the toilet - at the time. When finished, the person gives (frees) the key to the next person in the queue.

Officially: "Mutexes are typically used to serialise access to a section of re-entrant code that cannot be executed concurrently by more t...(truncated)...

'Sys' is undefined - ASP.NET 2.0 AJAX Extensions (ATLAS) Web Applications

Abstract from Harish Ranganathan (Indexed 2006-11-24):

First of all, let me write to you a personal note. I have been making this particular blog more and more of a non-technical stuff of late with my posts around IndiMix and other stuff. However, I am back here with my technical and trouble shooting articles.

You may get an error 'Sys' is undefined when developing ASP.NET AJAX Enabled WebSites using the ASP.NET AJAX Beta 2,

This error may come particularly if you are upgrading from Beta 1 to Beta 2.

The error is primarily becau...(truncated)...

Windows XP error: svchost.exe - Application Error

Abstract from Tim Huffam (Indexed 2006-12-16):

One morning when restoring my pc from hibernate - I got this error:

svchost.exe -- application error the instruction at "0x745f2780" reference memory at "0x00000000". the memory could not be 'read'

Once this error is closed you can't start anything - and XP crashes when trying to shut down.

Fortunately, if you don't close any of the error messages down, windows still works.

Using google I found this solution by Scott Swigart (see the 2nd solution) - Thanks a million Sc...(truncated)...

ASP.NET 2.0 error: Unable to start debugging on the web server.

Abstract from Tim Huffam (Indexed 2006-05-29):

The following error may occur when trying to run/debug an ASP.NET 2.0 web app, when the web server is not configured properly:

"Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information."

This is usually caused because of one or both of the following problems:

  1. The directory the web app resides in has not been registered...(truncated)...

How to make your ASP.Net label multiline (how to wrap text in your label)

Abstract from Steal This Code (Indexed 2006-03-21):

First off, sorry for the absence. Things got a little busy in life as well as work. Not to mention having to get up to speed on 2.0 in a big hurry. All good things, but it left less time for fun stuff.With that said, I want to offer a little tip to help with formatting your ASP.Net pages. Getting a label to be multiline within a set width. Now many of you know this trick, but I always have to re-remember the trick every time I need it, so this post can be a reference for you as well.The tri...(truncated)...

Sorting GridView Columns Manually

Abstract from AzamSharp (Indexed 2006-04-27):

We all know that GridView columns can be sorted automatically when SQLDataSource is being used. But what if you are not using SqlDataSource to populate the GridView. Sorting the GridView manually is pretty straight forward task take a look at the code below.

private const string ASCENDING = " ASC";
private const string DESCENDING = " DESC";

public SortDirection GridViewSortDirection
{
get
{
if (ViewState["sortDirection"] == nul...(truncated)...

BUG: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

Abstract from Vadivel Kumar's Weblog (Indexed 2006-02-25):

In .NET 2.0 i had a serious bug and screwed my head, for me the below code looks fine,

try{if (retVal == 0)Response.Redirect("Success.aspx?evt=0");if (retVal == -2) //Email-Id is already present Response.Redirect("Success.aspx?evt=1");if (retVal == -1) //Some error occured Response.Redirect("Success.aspx?evt=2");}catch(Exception error){Response.Redirect("Success.aspx?evt=2");}finally{}

I sware there is no bug in this code, when tried to execute this ...(truncated)...

IE and Firefox compatible javascript to enable or disable an anchor tag

Abstract from Tim Huffam (Indexed 2006-01-19):

IE supports provides a half-baked implementation of the non-standard attribute 'disabled' on anchor tags (ie it changes it's color -even though it does not actually disable the anchor (if it has an href value). Firefox does not provide any support for it.

To add full 'disable' functionality to both browsers there are a couple of work arounds (hacks):

or, more simply