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. General Programming
  3. Visual Basic
  4. Fields go missing

Fields go missing

Scheduled Pinned Locked Moved Visual Basic
helpdatabasetutorial
4 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.
  • B Offline
    B Offline
    Brendan Vogt
    wrote on last edited by
    #1

    Hi, I am in a spot on concern because I am stuck and do not know what to. All my processing happens on one page. My page has a file upload control, with an upload button. When the upload button is clicked, it loads the file's contents into a dataset. It loops through the column names of the dataset and populates it to a textbox dynamically. Here the values can me altered and mapped to a database field. When I click the Import button, all the textboxes created are all gone. I do not know how to keep the textboxes there once the Import button is clicked because I need the values in the textbox. Please can some one help me. Regards ma se

    E 1 Reply Last reply
    0
    • B Brendan Vogt

      Hi, I am in a spot on concern because I am stuck and do not know what to. All my processing happens on one page. My page has a file upload control, with an upload button. When the upload button is clicked, it loads the file's contents into a dataset. It loops through the column names of the dataset and populates it to a textbox dynamically. Here the values can me altered and mapped to a database field. When I click the Import button, all the textboxes created are all gone. I do not know how to keep the textboxes there once the Import button is clicked because I need the values in the textbox. Please can some one help me. Regards ma se

      E Offline
      E Offline
      EvScott
      wrote on last edited by
      #2

      I take it you're using a control array of text boxes. Perhaps they're not missing. Do something like this to show your textboxes i=1 'set in form load ...button click load text1(i) 'assuming you've set index to zero of the first textbox text1(i).top = text1(i - 1).top + text1(i - 1).height 'set new box pos just below previous textbox text1(i).visible = true 'show it ... i=i+1'get ready for next click -- modified at 21:43 Sunday 1st July, 2007

      B 1 Reply Last reply
      0
      • E EvScott

        I take it you're using a control array of text boxes. Perhaps they're not missing. Do something like this to show your textboxes i=1 'set in form load ...button click load text1(i) 'assuming you've set index to zero of the first textbox text1(i).top = text1(i - 1).top + text1(i - 1).height 'set new box pos just below previous textbox text1(i).visible = true 'show it ... i=i+1'get ready for next click -- modified at 21:43 Sunday 1st July, 2007

        B Offline
        B Offline
        Brendan Vogt
        wrote on last edited by
        #3

        Please check: http://www.brendanvogt.com/SD\_ImportExport3.jpg When I click the Perform Import button then it all disappears. The drop down were created dynamically when I did a file upload. PS: It wasn't textboxes, but drop downs. ma se

        E 1 Reply Last reply
        0
        • B Brendan Vogt

          Please check: http://www.brendanvogt.com/SD\_ImportExport3.jpg When I click the Perform Import button then it all disappears. The drop down were created dynamically when I did a file upload. PS: It wasn't textboxes, but drop downs. ma se

          E Offline
          E Offline
          EvScott
          wrote on last edited by
          #4

          I Can't be of much help unless I see some code examples. You're not setting any visible properties to false for the list ctrls are you? Post the code for the Perform Import event.

          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