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. Save Data of TextBox those are Dynamically created

Save Data of TextBox those are Dynamically created

Scheduled Pinned Locked Moved ASP.NET
businesstutorialquestion
3 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.
  • K Offline
    K Offline
    KhandelwalA
    wrote on last edited by
    #1

    I created n number of textboxes dynamically depends on user requirements.....now i want to save data of those dynamically created textboxes.....i m not getting the proper way whether to use FindControl or ViewState ?...........plz guide me :)

    J A 2 Replies Last reply
    0
    • K KhandelwalA

      I created n number of textboxes dynamically depends on user requirements.....now i want to save data of those dynamically created textboxes.....i m not getting the proper way whether to use FindControl or ViewState ?...........plz guide me :)

      J Offline
      J Offline
      jaysaran
      wrote on last edited by
      #2

      Hi, You can use FindControl to get the value from dynamically created controls.

      Best Regards

      Jay

      1 Reply Last reply
      0
      • K KhandelwalA

        I created n number of textboxes dynamically depends on user requirements.....now i want to save data of those dynamically created textboxes.....i m not getting the proper way whether to use FindControl or ViewState ?...........plz guide me :)

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        KhandelwalA wrote:

        ...now i want to save data of those dynamically created textboxes.....i m not getting the proper way whether to use FindControl or ViewState ?.

        For Dynamically created TextBox, You need to keep in mind some point ! You have to create the Textbox Before Page Load. Create your text box in Page_PreInit(), otherwise, you will never get the ViewState and Postback Data. Because Postback data and View state data loads just before the Page_Load. Hope this will help you !

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

        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