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. How to concate various controls data into a TextBox

How to concate various controls data into a TextBox

Scheduled Pinned Locked Moved ASP.NET
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.
  • P Offline
    P Offline
    Pawan Kiran
    wrote on last edited by
    #1

    i have dropdownlist1,dropdownlist2,textbox1,button1,button2,dropdownlist3 here i am selecting an item from each dropdownlist, perform concatinating and i showed in textbox fine. but when i want to enlarge concatination means the selected item text will be overridden on the previous selecteditem text i want to prevent this.. finally i want the TextBox2 output as follows; exa: (ddl1)   (ddl2)   (txt1)   (btn1)   (ddl)      (ddl2) (txt1)   (ddl3) Month_no   =            5         and   Quarter_no   =         3      group by(abc) means month_no = 5 and quater_no = 3 group by(abc) how to get this one......... help me out... Regards, Koti

    M T 2 Replies Last reply
    0
    • P Pawan Kiran

      i have dropdownlist1,dropdownlist2,textbox1,button1,button2,dropdownlist3 here i am selecting an item from each dropdownlist, perform concatinating and i showed in textbox fine. but when i want to enlarge concatination means the selected item text will be overridden on the previous selecteditem text i want to prevent this.. finally i want the TextBox2 output as follows; exa: (ddl1)   (ddl2)   (txt1)   (btn1)   (ddl)      (ddl2) (txt1)   (ddl3) Month_no   =            5         and   Quarter_no   =         3      group by(abc) means month_no = 5 and quater_no = 3 group by(abc) how to get this one......... help me out... Regards, Koti

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      You asked the similar question yesterday here[^]

      katarukoti wrote:

      exa: (ddl1) (ddl2) (txt1) (btn1) (ddl) (ddl2) (txt1) (ddl3)

      What the %$%# is this???:mad:

      Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      P 1 Reply Last reply
      0
      • P Pawan Kiran

        i have dropdownlist1,dropdownlist2,textbox1,button1,button2,dropdownlist3 here i am selecting an item from each dropdownlist, perform concatinating and i showed in textbox fine. but when i want to enlarge concatination means the selected item text will be overridden on the previous selecteditem text i want to prevent this.. finally i want the TextBox2 output as follows; exa: (ddl1)   (ddl2)   (txt1)   (btn1)   (ddl)      (ddl2) (txt1)   (ddl3) Month_no   =            5         and   Quarter_no   =         3      group by(abc) means month_no = 5 and quater_no = 3 group by(abc) how to get this one......... help me out... Regards, Koti

        T Offline
        T Offline
        Tuwing Sabado
        wrote on last edited by
        #3

        use the string format Month_no = string.Format("{0} {1} {2} {3} {4} {5} {6} ({7})", (ddl1),(ddl2),(txt1) (btn1),(ddl),(ddl2),(txt1),(ddl3)); happy coding...

        1 Reply Last reply
        0
        • M Manas Bhardwaj

          You asked the similar question yesterday here[^]

          katarukoti wrote:

          exa: (ddl1) (ddl2) (txt1) (btn1) (ddl) (ddl2) (txt1) (ddl3)

          What the %$%# is this???:mad:

          Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

          P Offline
          P Offline
          Pawan Kiran
          wrote on last edited by
          #4

          The answer is correct somehow ie if i change any dropdownlist value it is override the corresponding value bec i wrote common funcatio like textbox2.Text=ddl.selecteditem.text+ddl2.selecteditem.text+----------- how to avoid overriding let me know...... Regards, Koti.K

          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