The best way is to use a stored procedure. To do this, use the EXEC command in your command text. So, if your stored procedure is called "AddContact" and takes two parameters "Name" and "Address", your SubmitCommand might look like this: <SubmitCommand CommandText="EXEC AddContact @Name, @Address" /> In your form, presumably, you would have some fields tied to this parameters: <TextBox id="txtName" DataField="Name" DataType="String" /> <TextArea id="taAddress" DataField="Address" DataType="String" />
|