By Justin Porteous on
9/3/2009 8:42 PM
Ever wondered how to check if debug mode is on, programmatically?
Read More »
|
By Justin Porteous on
6/5/2009 3:39 PM
Read More »
|
By justin on
5/31/2009 12:24 PM
Read More »
|
By Justin Porteous on
5/27/2009 8:59 PM
Read More »
|
By Justin Porteous on
5/21/2009 1:21 PM
Read More »
|
By Justin Porteous on
3/16/2009 10:11 AM
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
|
By justin on
2/21/2009 12:34 PM
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 »
|
By Justin Porteous on
2/4/2009 2:27 PM
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 »
|
By Justin Porteous on
1/30/2009 8:47 AM
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:

|
By Justin Porteous on
1/11/2009 8:19 PM
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
|