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. to chk a control is present or not using codebehind

to chk a control is present or not using codebehind

Scheduled Pinned Locked Moved ASP.NET
tutorial
4 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.
  • A Offline
    A Offline
    anbusenthil
    wrote on last edited by
    #1

    how to chk a control is present or not using codebehind for eg if tis hyperlink ctrl   "HylEdit.Text" is not present then the code should skip the control and apply changes to the controls present on that pages for egs, if HylEdit.Text is not present then it should chk for next ctrl lik HylView.Text if the above ctrl is present the it shoul apply for HylView.Text=rm.GetString("View", ci) the fn is lik tis Private Sub LoadStrings(ByVal ci As CultureInfo)             HylEdit.Text = rm.GetString("Add", ci)             BtnClear.Text = rm.GetString("Clear", ci)             BtnSave.Text = rm.GetString("Save", ci)             HylView.Text = rm.GetString("View", ci)

    H S 2 Replies Last reply
    0
    • A anbusenthil

      how to chk a control is present or not using codebehind for eg if tis hyperlink ctrl   "HylEdit.Text" is not present then the code should skip the control and apply changes to the controls present on that pages for egs, if HylEdit.Text is not present then it should chk for next ctrl lik HylView.Text if the above ctrl is present the it shoul apply for HylView.Text=rm.GetString("View", ci) the fn is lik tis Private Sub LoadStrings(ByVal ci As CultureInfo)             HylEdit.Text = rm.GetString("Add", ci)             BtnClear.Text = rm.GetString("Clear", ci)             BtnSave.Text = rm.GetString("Save", ci)             HylView.Text = rm.GetString("View", ci)

      H Offline
      H Offline
      Herman T Instance
      wrote on last edited by
      #2

      findControl(Control). If it is NULL it is not there.

      In Word you can only store 2 bytes. That is why I use Writer.

      A 1 Reply Last reply
      0
      • H Herman T Instance

        findControl(Control). If it is NULL it is not there.

        In Word you can only store 2 bytes. That is why I use Writer.

        A Offline
        A Offline
        anbusenthil
        wrote on last edited by
        #3

        if the ctrl is not there declaration error is comin in find control statement... if i fincontrol gridviw which is not in t page it shows errror tat gridview is not declared

        1 Reply Last reply
        0
        • A anbusenthil

          how to chk a control is present or not using codebehind for eg if tis hyperlink ctrl   "HylEdit.Text" is not present then the code should skip the control and apply changes to the controls present on that pages for egs, if HylEdit.Text is not present then it should chk for next ctrl lik HylView.Text if the above ctrl is present the it shoul apply for HylView.Text=rm.GetString("View", ci) the fn is lik tis Private Sub LoadStrings(ByVal ci As CultureInfo)             HylEdit.Text = rm.GetString("Add", ci)             BtnClear.Text = rm.GetString("Clear", ci)             BtnSave.Text = rm.GetString("Save", ci)             HylView.Text = rm.GetString("View", ci)

          S Offline
          S Offline
          saanj
          wrote on last edited by
          #4

          Are you testing Visual Studio.NET? By the way, not a bad idea for next version of VS2010. :)

          There is no foolish question, there is no final answer...

          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