View Single Post
  #12 (permalink)  
Old November 3rd, 2006, 11:53 AM
cyp7 cyp7 is offline
Registered User
 
Join Date: Nov 2006
Location: Titusville, FL, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm trying to delete each row in the database using the Deleting event. I have the following code, which is only deleting the first row. Any suggestions?

Thanks,
Carolyn

    protected void IWSSqlDataSource_Deleting(object sender, SqlDataSourceCommandEventArgs e)
    {
        foreach (SqlParameter param in e.Command.Parameters)
        {
            param.Value = "";
        }
    }


Reply With Quote