Author: msnetdeveloper | Posted on: 6/4/2010 7:44:31 AM | Views : 250

Hi, I have a web page which contains multiple panels (used to show and hide various textboxes) and one particular panel contains textboxes that is used to edit records. However, when I am attemtping to update the table, the txtVendorName.Text.Trim() is blank.
Something weird happens. When I created a code block if(!Page.IsPOstBack) and put a breakpoint inside that code block, then build the project and run it, the breakpoint is triggered when I hit F5.
 
SqlConnection con = new SqlConnection(strConn); string sqlUpdateVendor = "usp_Vendor_Update"; SqlCommand cmdUpdateVendor = new SqlCommand(sqlUpdateVendor, con); cmdUpdateVendor.CommandType = CommandType.StoredProcedure; cmdUpdateVendor.Parameters.Add(new SqlParameter("@RecID", SqlDbType.VarChar, 50)); cmdUpdateVendor.Parameters["@RecID"].Value = Request.QueryString["Rec_ID"]; ...

Go to the complete details ...