Category

November 26, 2008

In category: ASP.Net, Project, Web Development | Posted by sanman

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

In category: Achievements, ASP.Net, Project, Web Development | Posted by sanman

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

In category: ASP.Net, Project, Web Development | Posted by sanman

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

In category: Interests, Project | Posted by sanman

Its nothing exciting, but just wondering why Google doesn’t validate the SPACE character. If you search any keywords on Google it will either display the results or it will display...

November 26, 2008

In category: Interests, Project | Posted by sanman

This is quite old but a cool trick! Step 1: Open Notepad Step 2: Write following line in the notepad. sanj can not crack Step 3: Save this file as...

October 2, 2008

In category: Project, SQL | Posted by sanman

SELECT USER as [User], SESSION_USER as [Session_User], CURRENT_USER as [Current_User], SYSTEM_USER as [System_User], ORIGINAL_LOGIN() as [Original_Login()]

July 28, 2008

In category: Project | Posted by manu

Recently there have been many confusions about changes after the installation of XP service pack 3 or generally in new wide screen laptops, regarding ‘youtube’ windows not being enlarged to...

November 22, 2006

In category: Project | Posted by sanman

I have created this blog is to manage and keep track of my final year Project. This will make me easy to keep track the progress and document what i...