I can run this locally but when I publish it to the sharepoint page I get a System.Data.SqlClient.Sqlclientpermission error. I'm probably not calling my stored proc correctly. I need to call it in the code behind after the submit is pressed. I need to pass 4 parameters and receive the ouput from 1. Can someone point me to, or give me an example of this? Thanks for your help inadvance.