Category
February 4, 2016
I am working on a project which is to integrate PayPal Express Checkout and I’m using C# to implement the API calls, but after invoking the initial setExpresCheckout call I got the...
January 14, 2016
I started using Powershell more and more as its so powerful and faster to retrieve system data. specially to retrieve from remote systems. I was looking for a way to pull all running...
January 14, 2016
There is a weird thing i noticed when I checked MSMQ modified or created time. The Explorer shows a different time but when execute in powershell it shows a different time....
January 13, 2016
I was writing a script to pull some process details from a remote computer and every time I had to give enter the user/pass which is quite annoying. But luckily I...
January 11, 2016
Recently I was taking an online quiz and one of the code challenge is to find the maximal product number. I have came up with the below code with an...
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 16, 2015
I was writing a powershell script to get some system information and got an error saying “cannot be loaded because the execution of scripts is disabled on this system.” To...
April 26, 2015
recently I was looking for anon proxies and found this Elite proxy finder on DanMcInerney’s site… it’s awesome! “Finds elite anonymity (L1) HTTP proxies then tests them all in parallel....
November 10, 2014
I was writing a simple script in Python and for some reason I was getting encoding errors, later found out that when I copy paste from Notepad++, the encoding settings...
October 21, 2013
INI files are good to store and retrieve values dynamically from applications, but the down side of it, that INI files don’t support Unicode and it’s all in plain text...
October 18, 2013
There are many FTP clients and libraries available on the net, but recently i was doing a project which required some files to be zipped and uploaded to a server...
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,...
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...
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"...
November 26, 2008
* I have used VB in this demonstration. If you want to handle the error for the whole application in ASP.NET, you could use the global.asax. Put the below code...
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));