While filling a .Net DataSet with data from MySql, date fields can cause the error Unable to convert MySQL date/time value to System.DateTime After some research, I found a solution to this issue is to use DATE_FORMAT in the select statement like below SELECT FirstName, LastName, DATE_FORMAT(RegistrationDate, ‘%d/%m/%Y’) AS DateOfRegistration, […]
Setting IIS ASP.net site to work with https only and not http
Recently we had installed a SSL certificate on one of our sites and the requests with https were being served perfectly as expected, however it was noticed that the pages were still being served perfectly even when an http request was made instead of https. This to an extent was defeating the purpose of having a certificate in place to serve secured content.
Visual Studio 2010 intellisense autofill
I have been facing a problem with Visual studio 2010’s intellisense. Firstly it didn’t show any intellisense options until I hit a Cntl+space and when I fixed that the auto fill would not complete until you manually select the required option from the intellisense list.
Cross Page PostBack in ASP.net
A webform by default posts back to itself. An Asp.net page can be made to post back to another page by using the PostBackUrl attribute of the ASP.Net button control.
Accessing values from config files
Performace optimized code for accessing values from resource file and config files.
Uploading huge files
The maximum upload size through ASP.Net by upload controls is 4096KB (4MB). If the file size exceeds, the upload fails and results in “Request Timed Out”