Disable validater controle by code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Devlon

    Disable validater controle by code


    Hi,

    Does anyone know how to disable a partical validor by code (vb.net) ?

    Thanx

    John


  • Nathan Sokalski

    #2
    Re: Disable validater controle by code

    Sure, just set the Enabled property to false.
    --
    Nathan Sokalski
    njsokalski@hotm ail.com
    有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。


    "John Devlon" <Johndevlon@hot mail.comwrote in message
    news:pDwNj.3652 5$t05.36335@new sfe09.ams2...
    >
    Hi,
    >
    Does anyone know how to disable a partical validor by code (vb.net) ?
    >
    Thanx
    >
    John
    >

    Comment

    • John Devlon

      #3
      Re: Disable validater controle by code

      Hi Nathan,

      I can't find the validator by code.... Using "me." doesn't bring up the
      validator.... Any suggestions ? Where can I find it?

      Thanx

      John


      "Nathan Sokalski" <njsokalski@hot mail.comschreef in bericht
      news:unkN1WCoIH A.2292@TK2MSFTN GP03.phx.gbl...
      Sure, just set the Enabled property to false.
      --
      Nathan Sokalski
      njsokalski@hotm ail.com
      有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。

      >
      "John Devlon" <Johndevlon@hot mail.comwrote in message
      news:pDwNj.3652 5$t05.36335@new sfe09.ams2...
      >>
      >Hi,
      >>
      >Does anyone know how to disable a partical validor by code (vb.net) ?
      >>
      >Thanx
      >>
      >John
      >>
      >
      >

      Comment

      • Nathan Sokalski

        #4
        Re: Disable validater controle by code

        Check the *.aspx.designer .vb file to see if it got declared in there. Visual
        Studio should have updated that file when you added the Validator, but I've
        seen times when it doesn't. If it isn't there, try switching between Design
        and Source view, this sometimes adds it. If this still doesn't add it, add
        it manually, and the next time Visual Studio does update the
        *.aspx.designer .vb file it will replace your manual declaration with the one
        it automatically adds (which should be the same). I am going to assume that
        the Validator is on the Page, UserControl, or Master Page that you are
        writing code for. If the Validator is in a UserControl or Master Page, then
        it will not be directly accessible through the code in the *.aspx.vb file
        without a few extra steps. Hopefully this helps. If you are still having
        trouble, it may be helpful if you post your code.
        --
        Nathan Sokalski
        njsokalski@hotm ail.com
        有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。


        "John Devlon" <Johndevlon@hot mail.comwrote in message
        news:aFxNj.33$K a7.28@newsfe30. ams2...
        Hi Nathan,
        >
        I can't find the validator by code.... Using "me." doesn't bring up the
        validator.... Any suggestions ? Where can I find it?
        >
        Thanx
        >
        John
        >
        >
        "Nathan Sokalski" <njsokalski@hot mail.comschreef in bericht
        news:unkN1WCoIH A.2292@TK2MSFTN GP03.phx.gbl...
        >Sure, just set the Enabled property to false.
        >--
        >Nathan Sokalski
        >njsokalski@hotm ail.com
        >http://www.nathansokalski.com/
        >>
        >"John Devlon" <Johndevlon@hot mail.comwrote in message
        >news:pDwNj.365 25$t05.36335@ne wsfe09.ams2...
        >>>
        >>Hi,
        >>>
        >>Does anyone know how to disable a partical validor by code (vb.net) ?
        >>>
        >>Thanx
        >>>
        >>John
        >>>
        >>
        >>
        >
        >

        Comment

        • John Devlon

          #5
          Re: Disable validater controle by code

          Hi Nathan,

          You where right.... I did it manualy and it works...

          Thanx for your feedback

          John


          "Nathan Sokalski" <njsokalski@hot mail.comschreef in bericht
          news:uFGVIZJoIH A.1772@TK2MSFTN GP03.phx.gbl...
          Check the *.aspx.designer .vb file to see if it got declared in there.
          Visual Studio should have updated that file when you added the Validator,
          but I've seen times when it doesn't. If it isn't there, try switching
          between Design and Source view, this sometimes adds it. If this still
          doesn't add it, add it manually, and the next time Visual Studio does
          update the *.aspx.designer .vb file it will replace your manual declaration
          with the one it automatically adds (which should be the same). I am going
          to assume that the Validator is on the Page, UserControl, or Master Page
          that you are writing code for. If the Validator is in a UserControl or
          Master Page, then it will not be directly accessible through the code in
          the *.aspx.vb file without a few extra steps. Hopefully this helps. If you
          are still having trouble, it may be helpful if you post your code.
          --
          Nathan Sokalski
          njsokalski@hotm ail.com
          有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。

          >
          "John Devlon" <Johndevlon@hot mail.comwrote in message
          news:aFxNj.33$K a7.28@newsfe30. ams2...
          >Hi Nathan,
          >>
          >I can't find the validator by code.... Using "me." doesn't bring up the
          >validator... . Any suggestions ? Where can I find it?
          >>
          >Thanx
          >>
          >John
          >>
          >>
          >"Nathan Sokalski" <njsokalski@hot mail.comschreef in bericht
          >news:unkN1WCoI HA.2292@TK2MSFT NGP03.phx.gbl.. .
          >>Sure, just set the Enabled property to false.
          >>--
          >>Nathan Sokalski
          >>njsokalski@hotm ail.com
          >>http://www.nathansokalski.com/
          >>>
          >>"John Devlon" <Johndevlon@hot mail.comwrote in message
          >>news:pDwNj.36 525$t05.36335@n ewsfe09.ams2...
          >>>>
          >>>Hi,
          >>>>
          >>>Does anyone know how to disable a partical validor by code (vb.net) ?
          >>>>
          >>>Thanx
          >>>>
          >>>John
          >>>>
          >>>
          >>>
          >>
          >>
          >
          >

          Comment

          Working...