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. Checkbox is checked or not?

Checkbox is checked or not?

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

    Hi, I have a checkbox in Login control and this control exist in MasterPage, I want that When user press 'Login' button to get login there should be a check which check whether checkbox is checked or not?. I want to write cookie base on checkbox action. I tried but could not find a right solution. Can anyone help me? Following is the hierarchy of checkbox; Loginview>AnonymousTemplate>Login>LayoutTemplate>CheckBox Thanks and Regards, Abubakar

    T 1 Reply Last reply
    0
    • A Abubakarsb

      Hi, I have a checkbox in Login control and this control exist in MasterPage, I want that When user press 'Login' button to get login there should be a check which check whether checkbox is checked or not?. I want to write cookie base on checkbox action. I tried but could not find a right solution. Can anyone help me? Following is the hierarchy of checkbox; Loginview>AnonymousTemplate>Login>LayoutTemplate>CheckBox Thanks and Regards, Abubakar

      T Offline
      T Offline
      Tarik Guney
      wrote on last edited by
      #2

      Well you would use FindControl metod.

      A 2 Replies Last reply
      0
      • T Tarik Guney

        Well you would use FindControl metod.

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

        Hi, I am using (((Login)LoginView1.FindControl("Login1")).FindControl("rememberCheckBox")) but I don't know which is exact place to check whether checkbox is checked or not? In other words under which even I should place this? I don't have Page_Load as it is in Masterpage

        1 Reply Last reply
        0
        • T Tarik Guney

          Well you would use FindControl metod.

          A Offline
          A Offline
          Abubakarsb
          wrote on last edited by
          #4

          dgdf

          A 1 Reply Last reply
          0
          • A Abubakarsb

            dgdf

            A Offline
            A Offline
            Abubakarsb
            wrote on last edited by
            #5

            Ya I know I am using following code. ((CheckBox)((Login)LoginView1.FindControl("Login1")).FindControl("rememberCheckBox")).Checked I have a checkbox named "RememberMe" what I need is that when user press button to get login system should check checkbox. If checkbox is checked then write a cookie with username and passwod otherwise do nothing so what could be its solution? Waiting for reply. Kind Regards, Abubakar Malik

            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