How do I pass value that is entered into a text input field to following
objCMD.Parameters.AddWithValue("@value", value)
You want this
objCMD.Parameters.AddWithValue("@value", txtInput.Text).