Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to validate textboxes using java script code while using Master page and content Page

How to validate textboxes using java script code while using Master page and content Page

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpjavaasp-nettools
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rameez Raja
    wrote on last edited by
    #1

    Hi all, iam unable to validate textboxes enteries using java script code in asp.net 2.0 while iam using Master page. I have created master page and an other one is Default under master Page and i have added few textboxes into default.aspx page and did validation using java script but iam unable to Perform validation . can any body guide me in this issue. where to put java script code while we are using Master page and content Page scenario. best regards Rameez

    A L 2 Replies Last reply
    0
    • R Rameez Raja

      Hi all, iam unable to validate textboxes enteries using java script code in asp.net 2.0 while iam using Master page. I have created master page and an other one is Default under master Page and i have added few textboxes into default.aspx page and did validation using java script but iam unable to Perform validation . can any body guide me in this issue. where to put java script code while we are using Master page and content Page scenario. best regards Rameez

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      I dont think there should be no issue. Java Script for Content page control should be written on Content page only .

      rameez Raja wrote:

      I have created master page and an other one is Default under master Page and i have added few textboxes into default.aspx page and did validation using java script but iam unable to Perform validation .

      can you be more specific about your problem ?

      cheers, Abhijit

      1 Reply Last reply
      0
      • R Rameez Raja

        Hi all, iam unable to validate textboxes enteries using java script code in asp.net 2.0 while iam using Master page. I have created master page and an other one is Default under master Page and i have added few textboxes into default.aspx page and did validation using java script but iam unable to Perform validation . can any body guide me in this issue. where to put java script code while we are using Master page and content Page scenario. best regards Rameez

        L Offline
        L Offline
        l laxmikant
        wrote on last edited by
        #3

        i think u have use document.getelementbyid(control name) instead of that use document.getelementbyid('<%= ControlID.ClientID >')

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups