I have what I think is a pretty easy question. I've just started using ASP and I'm trying to take the input from 2 text boxes and run an insert command when a button is pushed. I have the text boxes set as parameters and the query seems to work but I need to know how to make it fire when the "add" button is pushed. I assume I need to add some code to the click event of the button but everything I've tried so far isn't working.
I already have a SqlDataSource that displays (selects) the current records I also defined the insert command and the parameters. how to I connect that button event to the insert command on the SqlDataSource?
Can someone point me down the right path.