![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: aspnet, help, mysql, net, programming, tutorial |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| ||||
| Check this out for connection strings: ASP.Net Tutorial - Using MySQL with ASP.NET To insert if its like php and other languages you would do something like: $var = "INSERT INTO dbname (usr,pwd) VALUES ($usrtxtbox,$pwdtxtbox);" mysql_query($var) install phpmyadmin to your computer to make the databases it makes it much easier and later on if your making scripts with an install page you can learn the coded way (which you would learn in 10mins by that time), for my insert example where i put "(usr,pwd)" your tables column headings would have to be usr and pwd, "($usrtxtbox,$pwdtxtbox)" these 2 are the values of whats in your text box's im sure you know in asp how to put the value into a variable. Some good words to include in your search: mysql, ASP.NET, INSERT INTO, connection string, tutorial...Mix them up a little and you should get some results. Hope it helps you a bit ![]() |
| |||
| Yup, definitely get the MySQL ODBC Driver... you might even be able to use the driver as a DataSource Provider and use the Strongly Typed Datasets... which will bring the power of Enterprise Manager right into .NET for you ![]() __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
| ||||
| Quote:
I personally use mySQL Query Browser and memorize the sql query commands. But I'm not sure if there's other optional way of myphpadmin & MS Access I prefer to use mySQL than any microsoft DBMS ![]() Quote:
sorry, I'm too newbie at Server Side. ASP.NET is my Server Side programming that I'm learning now ![]() Quote:
Last edited by HelloWorld : 07-10-2007 at 08:37 AM. |
| |||
| load up visual studio, and add a folder called "App_Code" in the root of your website. Then right click on your app_code folder and click ADD. Add a Dataset and name it DataLayer. This is a GUI for creating data tables and queries. From here you can create a connectionstring (it will ask you right away) and will store it in the Web.Config file. Then you can create table Adapters that you can use later on. If you have a 'User' table in your database, then add a User Table adapter... then you can add queries like GetAllUsers or GetUserByUserID or GetUserByEmail, etc... all in the Table Adapter 'User'. Then in your page code, you can bind your controls directly to the Table Adapters You can say...Code: Using UserAdapter as New DataLayer.UserTableAdapter
Using UserTable as New DataLayer.UserTable = UserAdapter.GetAllUsers()
DropDownListControl.DataSource = UserTable
DropDownListControl.DataBind()
End Using
End Using ![]() __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
| |||
| Yessir, VS has SQL fully integrated right into it you can even have multiple database connections open at once... tis pretty nice, hehe. I use MsSQL and Access and SQL CE but I think with the MySQL ODBC Driver you can use that as well ![]() __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
| ||||
| Quote:
![]() |
| |||
| You might be able to - Not possitive, but VS's IDE is pretty dynamic. __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
![]() |
| Thread Tools | |
| Display Modes | |
| |