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