View Single Post
  #1 (permalink)  
Old 07-09-2007, 08:38 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,119
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Icon9 ASP.NET and mySQL

Hey! I finally can work and have fun with ASP.NET after long time figuring out how to setup everything for my workspace haha... Anyways, I'm now trying to create a registration form, but I don't know how to connect to the database and how ASP.NET handles mySQL commands... If anybody can help, I'll be appreciate it.. This is my current code for the form:

PHP Code:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
    <
title>REGISTRATION PORTAL</title>
    <
style type="text/css">
    
body {
        
text-aligncenter;
    }
    </
style>
</
head>
<
body>
    <
form id="registerForm" runat="server">
    <
div>
        <
table border="1">
            <
tr>
                <
td>Username:</td>
                <
td><asp:TextBox ID="username" runat="server"></asp:TextBox></td>
            </
tr>
            <
tr>
                <
td>Password:</td>
                <
td><asp:TextBox ID="password" TextMode="Password" runat="server"></asp:TextBox></td>
            </
tr>
            <
tr>
                <
td colspan="2"><asp:Button Text="Submit" OnClick="submitBtnClick" runat="server" /></td>
            </
tr>
        </
table>
    </
div>
    </
form>
</
body>
</
html
Nothing much other than CSS, HTML, and some ASP.NET fields.. just need to connect to the database on my localhost (installed), create the table, and insert the username and password each time they click submit.

I don't care about security right now, and just want to see how it works first

P.S I've searched over the web, and have not found good tutorial for it!

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by HelloWorld : 07-09-2007 at 09:10 PM.
Reply With Quote