You are here:   Blog
Register  |  Login
 Search
 Blog List
 Archive
 View Blogs

Ever wondered how to check if debug mode is on, programmatically?

Read More »

 

Read More »

My first artcile on www.codeproject.com is : How to utilise the shell32 library in .Net as a COM import – A Neat little Hack

You can view it here: http://www.codeproject.com/KB/dotnet/shell32.aspx

Check/Uncheck all items in a CheckBoxList using ASP.NET and Javascript

 

The CheckBoxList control in ASP.NET 2.0 provides a group of checkboxes that can be dynamically generated by binding it to a data source. In this article, we will explore how to use a Checkboxlist and use ASP.NET and Javascript to select or unselect all your checkboxes in your CheckBoxList.

Using ASP.NET

Step 1: Open Visual Studio. Create a new website called ‘CheckUncheckAll’. Drag and drop a CheckBoxList control to the page. Rename it to ‘cblMulti’.

Step 2: Once the CheckBoxList is added to the page, a smart tag appears which allows you to specify a datasource or add items manually to the CheckBoxList. Click on the ‘Edit Items’ to open the ListItem Collection Editor and add items as shown in the figure below :

 

 

 

 

 

 

 

 

...

Read More »

This article explains about handling different types of AJAX errors in ASP. Net applications. If an error happens due to Ajax call usually it shows up as a Pop-up message through java script to the user. Based upon our requirement we can suppress / modify the error message. For suppressing an AJAX error through java script add the below line at end of your page

   script>    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function (sender, args) {          if (args.get_error() && args.get_error().name === 'Sys.WebForms.PageRequestManagerServerErrorException')              {                                       args.set_errorHandled(true);              }                });       

script> To handle the error in Asp.Net code add "OnAsyncPostBackError" attribute to script manager and declare an event in the code behind asp:ScriptManager ID="ScriptManager1" runat="server" OnAsyncPostBackError="ScrptMgr_AsyncPostBackError" > asp:ScriptManager> protected void ScrptMgr_AsyncPostBackError(object...

Read More »

Since last night the snakes have started peeking out of the eggs, 5 are fully out now and exploring their new enviroment.

This will give you an idea of how small they are:

I'm proud to announce that my Commercial Property web site has finally gone live with phase one.

The purpose of this site is to provide a fast, free and easy to use system for listing and searching for commercial properties.

Features of CommercialPropertyListing.co.za :

  • Free - Searching of our database (By Text Search, Browsing or with Google Maps)
  • Free - Listing of your company on our web site
  • Free - Registration
  • Free - Property listings

www.commercialpropertylisting.co.za