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.
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 & "')"
bbcompent1
All-Star
32982 Points
8508 Posts
Moderator
Re: Hidden field help!
Jul 25, 2011 02:37 PM|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.
HTML:
Code Behind:
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 & "')"