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. Masterpage problem

Masterpage problem

Scheduled Pinned Locked Moved ASP.NET
csharphelpquestion
3 Posts 2 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.
  • S Offline
    S Offline
    smruti_ranjan
    wrote on last edited by
    #1

    Hi I am using .net 2.0 , I am trying to validate a text box control inside a webpart zone and the webpart zone is in a page which use a master page. Ii have tried giving all the possible id of the control (ID, UniqueID & ClientID) but at runtime requiredfieldvalidator not able to fiend the textbox control. What should I do to resulve the problem ? Regards Smruti Ranjan Rout.

    A 1 Reply Last reply
    0
    • S smruti_ranjan

      Hi I am using .net 2.0 , I am trying to validate a text box control inside a webpart zone and the webpart zone is in a page which use a master page. Ii have tried giving all the possible id of the control (ID, UniqueID & ClientID) but at runtime requiredfieldvalidator not able to fiend the textbox control. What should I do to resulve the problem ? Regards Smruti Ranjan Rout.

      A Offline
      A Offline
      asithangae
      wrote on last edited by
      #2

      when using master page, the id of each and every control will be prefixed with the content placeholder id of the master page except the 'div'. so check the textbox in the source after you get the page in the browser and use that name. and also note the prefix of the control, it will be same for all the controls in the same place holder. better use js to validate the controls, this will more appropriate for real time applications, validation controls of microsoft are not that much flexible to use in real ime projects... asithangae

      S 1 Reply Last reply
      0
      • A asithangae

        when using master page, the id of each and every control will be prefixed with the content placeholder id of the master page except the 'div'. so check the textbox in the source after you get the page in the browser and use that name. and also note the prefix of the control, it will be same for all the controls in the same place holder. better use js to validate the controls, this will more appropriate for real time applications, validation controls of microsoft are not that much flexible to use in real ime projects... asithangae

        S Offline
        S Offline
        smruti_ranjan
        wrote on last edited by
        #3

        Dear Asithangae Thanks for your repay , of course I can use js to validate but it should also work for requiredfieldvalidation control. As I am using .clientId which return the client side id that is id in the browser. Please let me know if there any way out. Regards Smruti:) smruti

        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