Adding a record..is there an easier way???
Can someone point me to, or show me a "Simple" Example of how to add a record to a database? I'm Using Asp.net with WebMatrix and the code wizards are enormous! There has to be a simpler way to do this!
Thx in advance!!
Ok I think I've made some Progress, but I'm not sure as to how I would execute the Insert Statement. Any Help? Thx In Advance!
Sub Page_Load(sender as Object, e as EventArgs)
Dim connString as String
connString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & _
Dim objConnection as OleDbConnection
objConnection = New OleDbConnection(connString)
Sub AddDeceased(sender As Object, e As EventArgs)
Dim AddProfile as string
AddProfile = "INSERT INTO Profiles (First_Name, Last_Name) VALUES (@First_Name, @Last_Name)"
<asp:TextBox id="First_Name" runat="server"></asp:TextBox>
<asp:TextBox id="Last_Name" runat="server"></asp:TextBox>
<asp:Button id="cmdadd" onclick="AddDeceased" runat="Server" text="Add"></asp:Button>
Ok guys, my heart has stopped racing and the sonic booms emitting my chest have stopped. I figured it out. But thx though! You can Delete this thread.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)