Category Archives: .Net 2.0

Contains articles, posts and comments related to .net 2.0.

How to highlight the text of a text box & Set focus on it (ASP.Net)

Problem: Couple of days back, I had to put some text boxes on my web application. This was a registration form with User Name & Email address etc, to be provided by the use. Due to lack of space available … Continue reading

Posted in .Net 2.0 | 4 Comments

How to disable copy-paste functionality (cntrl C/V) in textbox

For many security purposes, sometimes we need not to allow users to copy/paste centain information into some controls like TextBox. This may include email address, password etc. As we know copy/paste can be done using either the right click … Continue reading

Posted in .Net 2.0 | 15 Comments

How to Send Images in Email using Asp.Net (C#)

While sending the images in emails through .net code, we may require to send them as an attachment or they must be embeded there in the body of the email itself. Below if the code which describes both the ways … Continue reading

Posted in .Net 2.0 | Leave a comment

How to close all child windows on closing/logout of Main page/window ( web application)

In many web portal applications, there are lots of popup windows get opened when users navigate to some links or there may be some popups window providing some relevant information. These popups may get opened when some specific events occur on the … Continue reading

Posted in .Net 2.0 | 6 Comments

Detecting ASP.NET (C#) Browser Refresh

Problem: Many times we come across the scenario where hitting the browser’s refresh button or pressing the F5 key performs exactly the same steps last performed by their .NET code. i.e. what ever there is in the last request made to … Continue reading

Posted in .Net 2.0 | 26 Comments

Implicit versus Explicit Interface implementation (C#)

Unlike C++, in C# we can implement an interface implicilty as well as explicitly. There are many prons and cons of using the explicit interface implementation instead of regular implicit implementation. I’ll first show you the implicit implmentation of an … Continue reading

Posted in .Net 2.0 | 22 Comments

Static Class versus Static members (C#)

Static classes are used when a class provides functionality that is not specific to any unique instance, means there will be no instance created, but its functions, static variables etc can be used using the class name. Here are the … Continue reading

Posted in .Net 2.0 | Leave a comment