Category
January 18, 2016
I know YAML as I was using this for a while, but recently I came across HAML and RAML. Even though they sound similar technologies actually they are not. Below...
December 10, 2015
I’ve released a chrome extension which helps to translate English words to Tamil and show it in a tooltip by moving the mouse hover the English words. It is a quick and easy...
September 13, 2011
Recently, I was working on a project as a web developer where I used webservies to get and update data between Siebel and .NET. The problem working on two systems,...
July 5, 2011
To have relevant ads on Google for the website you browsing you just have to clear cache or history from the web browser setting. After clear cache just go again...
August 2, 2010
String bday = “06/20/2010”; DateTime ukDateFormat = DateTime.Parse(bday, System.Globalization.CultureInfo.GetCultureInfo(“en-us”)); Response.Write(ukDateFormat);
July 14, 2009
I was working on a project and have been asked to convert the webpage into a pdf document. I have found a solution in a forum, but it was in...
February 18, 2009
Simply copy and paste the following code into the root htaccess file of your site to enjoy a serious reduction in wasted bandwidth, stolen resources, and comment spam. RewriteEngine on...
November 26, 2008
If you are writing a program to send a mail with an attachment, then you might come across the problem with some random ATTXXXXX.dat file.if you you don’t attach a...
November 26, 2008
I found a nice article about how to send emails using System.Net.Mail on asp.net forums. Have a look at asp.net forum
November 26, 2008
I found a nice article about how to send emails using System.Net.Mail on asp.net forums. Click the following link to access the page asp.net forum
November 26, 2008
This code should be in yourfilename.aspx.vb . Const maxFileSize As Integer = 1048576 Dim intDocFileLength As Integer = Me.AttachmentFile.PostedFile.ContentLength If intDocFileLength > maxFileSize Then Label1.Text = “File size exceeds the...
November 26, 2008
If you want to filter the filetype in a fileupload control: < asp:FileUpload ID="AttachmentFile" runat="server" Width="240px" style="background-color: #FFF0E1" /> < asp:RegularExpressionValidator id="FileUpLoadValidator" runat="server" ErrorMessage="Th file type is not allowed." ValidationExpression="^.+(.doc|.DOC|.pdf|.PDF)$"...
November 26, 2008
If you want to limit the number of characters in a text field use the code below: < asp:TextBox runat="server" ID="Body" TextMode="MultiLine" MaxLength="5" Columns="55" Rows="10" BackColor="#FFCC99" Width="346px" style="background-color: #FFF0E1"> <...
November 26, 2008
How to use the ‘RegularExpressionValidator‘ and ‘RequiredFieldValidator‘ in ASP.NET: I have used these to validate an email address. see the code below: < asp:TextBox runat="server" ID="Email" Columns="30"> < asp:RequiredFieldValidator ID="EmailValidator"...
June 13, 2008
If you want to get/extract the file name from a string/URL: e.g To get manu.php from http://www.sanjeeve.com/manu.php document.write(location.href.substring(location.href.lastIndexOf('/')+1));