M - A - H - E - S - H - L - I - V - E
Kapila Mahesh's Weblog

One Nation One Country One Flag

Monday, 25 May 2009 14:13 by Mahesh

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   Sri Lanka
Actions:   E-mail | del.icio.us | Permalink | Comments (1) | Comment RSSRSS comment feed

simple javascript for check whether values are interger or not

Thursday, 22 January 2009 22:27 by Mahesh

This is how the html code appears

<form name="frmInput">

Enter something:

<input name="txtInput" size="4">

<input type="button" value="Validate" onclick="validateInt()"></input>

</form>

 

This is how the Java Script appears

 

<script language="javascript" type="text/javascript">

    function validateInt ()

    {

        var f = document.aspnetForm

        var valInput = f.elements("txtInput").value

        if(!(isInteger(valInput)))

        {

            alert("Please Enter Valied Integer Value !")

        }

    }

    function isInteger (s)

    {

        var i;

        if (isEmpty(s))

        if (isInteger.arguments.length == 1) return 0;

        else return (isInteger.arguments[1] == true);

        for (i = 0; i < s.length; i++)

        {

            var c = s.charAt(i);

            if (!isDigit(c)) return false;

        }

        return true;

    }

   

    function isEmpty(s)

    {

        return ((s == null) || (s.length == 0))

    }

    function isDigit (c)

    {

        return ((c >= "0") && (c <= "9"))

    }

</script>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   ASP.NET
Actions:   E-mail | del.icio.us | Permalink | Comments (1) | Comment RSSRSS comment feed

Validation of viewstate MAC failed. If this application is hosted .......

Monday, 19 January 2009 17:16 by Mahesh

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

 You can fix this error by Enableing Viewstate MAC. add following tags to your aspx page

<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage1.master" AutoEventWireup="true" CodeFile="email.aspx.cs" Inherits="Message_email" EnableViewStateMac="false" %>

 EnableViewStateMac="false"

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   ASP.NET | C#
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Foldershare

Monday, 1 December 2008 17:43 by Mahesh

Foldershare allow users to access their Computer(Files) remotly. try it

Simple steps to do, First create foldershare account from the site and then download the installer file from here.

They allow users to create Personal Libraries as well as Shared Libraries.

 

Cheers..........!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Cuil Launches Biggest Search Engine on the Web

Thursday, 13 November 2008 17:17 by Mahesh

www.cuil.com is new search engine on the web.

"Cuil (pronounced COOL) provides organized and relevant results based on Web page content analysis. The search engine goes beyond today’s search techniques of link analysis and traffic ranking to analyze the context of each page and the concepts behind each query. It then organizes similar search results into groups and sorts them by category."

That's how they explain about their product.

There are four main features,

  1. Drilldown
  2. Roll-Over Definitions
  3. Tabs
  4. Navigation suggestion

Read More

Cheers.........!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Regular Expressions Cheat Sheet (V2)

Thursday, 13 November 2008 16:43 by Mahesh

Found good article about the Regular Expression. Check it here

Cheers............!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Today is second day of my new Job

Thursday, 30 October 2008 21:15 by Mahesh

 

:) Today is second day of my new job.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Miscellaneous
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Test Post from Windows Live Writer Beta

Sunday, 21 September 2008 19:21 by mahesh

This is my test post from windows live writer beta

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:  
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

New Web Browser from Google - Google Chrome

Wednesday, 3 September 2008 04:04 by Mahesh

Google released new web browser named google chrome.

"Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier."

Features :

  • One box for everything
    Type in the address bar and get suggestions for both search and web pages.
  • Thumbnails of your top sites
    Access your favorite pages instantly with lightning speed from any new tab.
  • Shortcuts for your apps
    Get desktop shortcuts to launch your favorite web applications.

It is really fast and have lots of features Have a fun with Google Chrome.

you can download it from here

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Recover the text from a damaged document(MS Word)

Thursday, 21 August 2008 16:08 by Mahesh

1.     On the Tools menu, click Options, and then click the General tab.

2.     Make sure the Confirm conversion at Open check box is selected, and then click OK.

3.     Click Open.

4.     In the Files of type box, click Recover Text from Any File.

              If you don't see Recover Text from Any File in the Files of type box, you need to install the file converter.

                  1.     Run the Microsoft Office Setup program. 

                  2.     On the Maintenance Mode Options screen, click Add or Remove Features, and then click Next

                  3.     On the Custom Setup screen, select the Choose advanced customization of applications check box, and then click Next.

                  4.     On the Advanced Customization screen, click the expand indicator next to Office Shared Features.

                  5.     Click the expand indicator next to Converters and Filters, and then click the expand indicator next to Text Converters.

                  6.     Click the arrow next to Recover Text Converter, and then click Run from My Computer. 

Cheers…………………!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   Microsoft
Actions:   E-mail | del.icio.us | Permalink | Comments (4) | Comment RSSRSS comment feed