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. Populate values into html form

Populate values into html form

Scheduled Pinned Locked Moved ASP.NET
helphtmldatabase
7 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.
  • U Offline
    U Offline
    Uma Kameswari
    wrote on last edited by
    #1

    Hi, I have designed a user registrtion from using HTML tags.Now I have to populate the form with the values from the database.The code goes like this Male Female January February March and soon till december Now my problem is I have a month field in database which stores 01,02,03,... for months of the year. I should make the selected property true for that month which is in the database means if the value in the column is 01 then January should be seleted ,if the value in the column is 02 then February should be seleted... this is very imp for my project.So kinldy some one help me at the earliest. For textboxes I used the <%%> tags to populate.But for list boxes I am not getting.I am checking for database valued for 01,02,03,... and trying to make the selected value true.But it is not working. Regards, Uma

    R M 2 Replies Last reply
    0
    • U Uma Kameswari

      Hi, I have designed a user registrtion from using HTML tags.Now I have to populate the form with the values from the database.The code goes like this Male Female January February March and soon till december Now my problem is I have a month field in database which stores 01,02,03,... for months of the year. I should make the selected property true for that month which is in the database means if the value in the column is 01 then January should be seleted ,if the value in the column is 02 then February should be seleted... this is very imp for my project.So kinldy some one help me at the earliest. For textboxes I used the <%%> tags to populate.But for list boxes I am not getting.I am checking for database valued for 01,02,03,... and trying to make the selected value true.But it is not working. Regards, Uma

      R Offline
      R Offline
      Roshan P Mohammed
      wrote on last edited by
      #2

      why didn't you use server controls instead of html controls?

      U 1 Reply Last reply
      0
      • U Uma Kameswari

        Hi, I have designed a user registrtion from using HTML tags.Now I have to populate the form with the values from the database.The code goes like this Male Female January February March and soon till december Now my problem is I have a month field in database which stores 01,02,03,... for months of the year. I should make the selected property true for that month which is in the database means if the value in the column is 01 then January should be seleted ,if the value in the column is 02 then February should be seleted... this is very imp for my project.So kinldy some one help me at the earliest. For textboxes I used the <%%> tags to populate.But for list boxes I am not getting.I am checking for database valued for 01,02,03,... and trying to make the selected value true.But it is not working. Regards, Uma

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

        Hi there, How do you use the inline code <% ... %> with the select element? You might want to post relevant code, also like some one said why don't just use the DropDownList server control instead.

        U 1 Reply Last reply
        0
        • R Roshan P Mohammed

          why didn't you use server controls instead of html controls?

          U Offline
          U Offline
          Uma Kameswari
          wrote on last edited by
          #4

          the module is already developed using html controls.Now I have to continue with that.No chance of modifying it.So help me if possible. Regards, Uma

          R 1 Reply Last reply
          0
          • M minhpc_bk

            Hi there, How do you use the inline code <% ... %> with the select element? You might want to post relevant code, also like some one said why don't just use the DropDownList server control instead.

            U Offline
            U Offline
            Uma Kameswari
            wrote on last edited by
            #5

            No I have to use the same design and continue wiht the work.already lot of javascript is written for that. So I have to use it.That is my task.But the inline code is working for radio buttons and why not for list boxes?Kindly help me out. Regards, Uma

            1 Reply Last reply
            0
            • U Uma Kameswari

              the module is already developed using html controls.Now I have to continue with that.No chance of modifying it.So help me if possible. Regards, Uma

              R Offline
              R Offline
              Roshan P Mohammed
              wrote on last edited by
              #6

              So you mean You are not supposed to make the html control RunAt=server. can you try something like this >2

              U 1 Reply Last reply
              0
              • R Roshan P Mohammed

                So you mean You are not supposed to make the html control RunAt=server. can you try something like this >2

                U Offline
                U Offline
                Uma Kameswari
                wrote on last edited by
                #7

                can u pls brief me abt Databinder.Eval(Container,"")... where can v use this

                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