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. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved ASP.NET
11 Posts 4 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.
  • S sumanmks

    [Message Deleted]

    C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #2

    Well, I'm not sure what you want here. 1 - this is not an ASP.NET question 2 - how can we tell what your problem is, based on this vague question ? The SQL is the same, no matter where the text comes from. Use your debugger to work out what's going wrong, and ask a more specific question if you need to

    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

    S 1 Reply Last reply
    0
    • S sumanmks

      [Message Deleted]

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

      sumanmks wrote:

      I am finding it difficult to insert a value into MySqlExpress database for dropdown list control. i am able to insert the values of textbox control

      What code you have written for that ? What problem are you getting?

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      S 1 Reply Last reply
      0
      • C Christian Graus

        Well, I'm not sure what you want here. 1 - this is not an ASP.NET question 2 - how can we tell what your problem is, based on this vague question ? The SQL is the same, no matter where the text comes from. Use your debugger to work out what's going wrong, and ask a more specific question if you need to

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        S Offline
        S Offline
        sumanmks
        wrote on last edited by
        #4

        sorry for not begin clear enough.Well i am working on a asp.net platform using visual studio 2008 and i need to store a value which is selected in the dropdownlist web control into a database (MYSQLEXPRESS).i am able to do with text box web control

        C 2 Replies Last reply
        0
        • S sumanmks

          sorry for not begin clear enough.Well i am working on a asp.net platform using visual studio 2008 and i need to store a value which is selected in the dropdownlist web control into a database (MYSQLEXPRESS).i am able to do with text box web control

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #5

          You just restated the question. You've added NOTHING to the situation. Here are some things to consider 1 - your database has no idea where your data comes from. Therefore, I have to assume your problem is with interacting with controls, because the SQL code will be the same 2 - I've already told you to use the debugger - have you ? You don't give us any clue what your code looks like, or what it is doing, so we can't really help you, but the first step, is to walk through the code and work out at what point you're failing to get your value. Having experience with this sort of idiotic question, I am willing to make a guess. Your problem, although you've not said so, is that the wrong value is stored. This is because you bind to the datasource in page load ( the wrong place ), on postback ( the wrong time ). If I am utterly wrong, it is because the only way this question makes sense, is if you were trying to test our ability to work out solutions based on zero information. If you want actual help, you need to know enough to be able to explain what is exactly going wrong, and what exactly you've tried to fix it. Until you do that, I have to consider that you don't even have the skills to ask for help, let alone write any code. Seriously.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          1 Reply Last reply
          0
          • A Abhijit Jana

            sumanmks wrote:

            I am finding it difficult to insert a value into MySqlExpress database for dropdown list control. i am able to insert the values of textbox control

            What code you have written for that ? What problem are you getting?

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            S Offline
            S Offline
            sumanmks
            wrote on last edited by
            #6

            there r no errors and i am able to insert the values for the textbox web control. But not able to do the same for dropdownlist.

            C A 2 Replies Last reply
            0
            • S sumanmks

              there r no errors and i am able to insert the values for the textbox web control. But not able to do the same for dropdownlist.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #7

              AAAARRRRGHHHHH !!!!! If this is paid work, you need to tell the client you are cheating them. If it's a project you're doing to learn, buy a book and work through it, you really need the basics laid out for you.

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              1 Reply Last reply
              0
              • S sumanmks

                [Message Deleted]

                V Offline
                V Offline
                Vimalsoft Pty Ltd
                wrote on last edited by
                #8

                Good Day sumanmks This is a Very Basic Question and it is covered in most Books. i will advice you buy a Book and Read it. you said you were able to get the values in the Textbox, obviously you used something like this

                String Value_To_the_DB = Text1.Text;

                but now in a DropDown you have to go in your selectedindexchanged and get the Value there by adding a code like this

                String Value_To_the_DB = DropdownList1.SelectedValue;

                Hope this Help. Remember to buy a Book

                Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

                1 Reply Last reply
                0
                • S sumanmks

                  sorry for not begin clear enough.Well i am working on a asp.net platform using visual studio 2008 and i need to store a value which is selected in the dropdownlist web control into a database (MYSQLEXPRESS).i am able to do with text box web control

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #9

                  sumanmks wrote:

                  sorry for not begin clear enough.Well i am working on a asp.net platform using visual studio 2008 and i need to store a value which is selected in the dropdownlist web control into a database (MYSQLEXPRESS).i am able to do with text box web control

                  ARGH !!! We are trying to HELP YOU. How does deleting your posts and not answering our questions, solve your problems. I may not be polite, but that's because you're plainly doing work you're incapable of, and you're not answering me. Answer our questions if you want help.

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  1 Reply Last reply
                  0
                  • S sumanmks

                    there r no errors and i am able to insert the values for the textbox web control. But not able to do the same for dropdownlist.

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

                    sumanmks wrote:

                    am able to insert the values for the textbox web control. But not able to do the same for dropdownlist.

                    :omg: As CG Suggested, I will suggest you to buy some beginners .NET Books and start reading. Its quite surprise that you are able to insert records from Text Box , but not from Dropdown list. :rolleyes: Can you show us the code that you have written ?

                    Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                    1 Reply Last reply
                    0
                    • S sumanmks

                      [Message Deleted]

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

                      This is very Rude to delete messages ! :-\

                      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                      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