Assuming your using SQL Server.....

VB Code:
  1. imports system.data.sqlclient
  2. 'At top of page
  3.  
  4. ....
  5. dim sqlConn as sqlConnection
  6. dim cmdSelect as sqlCommand
  7.  
  8. 'Open db connection in sqlConn
  9. ...
  10. cmdSelect = new("stored_proc_name_here",sqlConn)
  11. cmdSelect.commandType = commandType.StoredProcedure
  12. cmdSelect.parameters.add("@idnum", txtIDNum.text)
  13. ...

Thats from memory so not sure if exact but you should get the idea.