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. C#
  4. creating dynamic textbox

creating dynamic textbox

Scheduled Pinned Locked Moved C#
helptutorial
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.
  • M Offline
    M Offline
    muniratnam
    wrote on last edited by
    #1

    hi guys i want to create dynamic textbox according to the excell column values... for example i have 2 columns in excell A & B i want to create textbox for getting values of A & B. Plz help me is there any idea from urs.

    D 1 Reply Last reply
    0
    • M muniratnam

      hi guys i want to create dynamic textbox according to the excell column values... for example i have 2 columns in excell A & B i want to create textbox for getting values of A & B. Plz help me is there any idea from urs.

      D Offline
      D Offline
      Deresen
      wrote on last edited by
      #2

      If you are talking about dynamic it means on runtime. What you want to do is extract data from excel. What you have to do is this: 1. create an excel reader (search on articles in codeproject or make your own reader with 'Microsoft.Office.Interop.Excel' 2. create a textbox: TextBox tb = new TextBox(); and put the data in there: tb.Text = ExcelReader.getCellItem(1, "A");

      M 1 Reply Last reply
      0
      • D Deresen

        If you are talking about dynamic it means on runtime. What you want to do is extract data from excel. What you have to do is this: 1. create an excel reader (search on articles in codeproject or make your own reader with 'Microsoft.Office.Interop.Excel' 2. create a textbox: TextBox tb = new TextBox(); and put the data in there: tb.Text = ExcelReader.getCellItem(1, "A");

        M Offline
        M Offline
        muniratnam
        wrote on last edited by
        #3

        hi i got the solution of getting dynamic textbox at runtime I did it with the help of javascript. I have created a server side textbox first and then i found the count of columns from the excell. according to the count i made it with the help of javascript for loop. Thanks for your response. regs muni

        J 1 Reply Last reply
        0
        • M muniratnam

          hi i got the solution of getting dynamic textbox at runtime I did it with the help of javascript. I have created a server side textbox first and then i found the count of columns from the excell. according to the count i made it with the help of javascript for loop. Thanks for your response. regs muni

          J Offline
          J Offline
          jaypatel512
          wrote on last edited by
          #4

          Please eloberate the question properly.. Are you talking about windows or web application ???

          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