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. Calendar Control entry clears the values in the top textboxes

Calendar Control entry clears the values in the top textboxes

Scheduled Pinned Locked Moved ASP.NET
help
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.
  • S Offline
    S Offline
    Sivaprasad C
    wrote on last edited by
    #1

    Hi, I am using a user control where i have two textboxes to enter name and id and a dropdown calendar control. I use this user control in a page. My problem is, i enter the values in name and id textboxes and when i select a date from the calendar control the page is postbacked and the values in the top two textboxes are cleared... I want the values entered not to be cleared. Please help...

    Regards, Sivaprasad

    _ 1 Reply Last reply
    0
    • S Sivaprasad C

      Hi, I am using a user control where i have two textboxes to enter name and id and a dropdown calendar control. I use this user control in a page. My problem is, i enter the values in name and id textboxes and when i select a date from the calendar control the page is postbacked and the values in the top two textboxes are cleared... I want the values entered not to be cleared. Please help...

      Regards, Sivaprasad

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      Check the viewstate property, if it is disabled then enable it.

      Best Regards, Apurva Kaushal

      S 1 Reply Last reply
      0
      • _ _AK_

        Check the viewstate property, if it is disabled then enable it.

        Best Regards, Apurva Kaushal

        S Offline
        S Offline
        Sivaprasad C
        wrote on last edited by
        #3

        view state property is enabled...still the same problem persists.. Is there some other property to be set for the user control.. The same code is working fine when the date control and the textboxes are kept in a page but not as a user control.. when these controls(2 text boxes and a calendar control)are made together as a user control I am geting this problem

        Regards, Sivaprasad

        _ 1 Reply Last reply
        0
        • S Sivaprasad C

          view state property is enabled...still the same problem persists.. Is there some other property to be set for the user control.. The same code is working fine when the date control and the textboxes are kept in a page but not as a user control.. when these controls(2 text boxes and a calendar control)are made together as a user control I am geting this problem

          Regards, Sivaprasad

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          Its working quite fine with me when doing the same thing. Are you generating the user control dynamically? And also what is that drop down date control?

          Best Regards, Apurva Kaushal

          S 1 Reply Last reply
          0
          • _ _AK_

            Its working quite fine with me when doing the same thing. Are you generating the user control dynamically? And also what is that drop down date control?

            Best Regards, Apurva Kaushal

            S Offline
            S Offline
            Sivaprasad C
            wrote on last edited by
            #5

            dropdown date control is one where the calanden dosn,t open in a new window.no need to give window.open... Let me try it once again and if any doubts i will post it

            Regards, Sivaprasad

            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