JavaScript Validation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shaileshsharma
    New Member
    • Jun 2007
    • 26

    #1

    JavaScript Validation

    Hi,
    I am putting a validation on textbox that when user enter the name the first letter of name become capital. for this i make a function in javascript and call this function on my aspx page like this

    txtName.Attribu tes.Add("onblur ", "DispName() ");

    this is working fine but the prob. is this it refresh my webPage.Is there any way that my page get not refreshed .Please help me to solve my problem.

    Thanks
    Shailesh Kumar
  • hariharanmca
    Top Contributor
    • Dec 2006
    • 1977

    #2
    Check for page PostBack

    [CODE=vbnet]if (!this.IsPostBa ck) [/CODE]

    Comment

    • Shaileshsharma
      New Member
      • Jun 2007
      • 26

      #3
      My Application is in Asp.Net and C# and i am using JS function within
      if (!IsPostBack)
      {

      }
      but my page get refresh.What can be the possible solution?

      Comment

      Working...