Jul 25, 2011 10:37 AM|bbcompent1|LINK
I took the liberty of reformatting your posting for easier reading. I'm more a c# guy so I can't be of much help other than this :)
All this is so far in the .vb file is a simple insert statement. I don't know how to get this location field to enter data.
It pops up the information just fine on my webpage, but all it does is insert a 0.
I really have no clue where to start with this.
Will someone please help? Remember, I don't know much about this stuff.
<td><div id="CategoryBreadcrumb"><span id="Breadcrumb"></span><span id="NewCategory"></span></div>
<td id="CategoryBoxes"><asp:HiddenField ID="txtCategoryID" runat="server" /></td></tr>
Protected Sub submitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles submitButton.Click
Dim CategoryName As String = txtNewCategoryName.Text
Dim ParentID As String = txtCategoryID.Value
Dim sqlInsertSubCategory As String = Nothing
'SQL Insert: Category Table
sqlInsertSubCategory = "INSERT INTO Category (CategoryName, ParentID) VALUES ('" & CategoryName & "','" & ParentID & "')"