Monthly Archive: January 2009

How to get Textbox value in a multiple item Gridview Templatefield 0

How to get Textbox value in a multiple item Gridview Templatefield

Currently I have a Gridview that uses the following TemplateField:                     <ItemTemplate>                         <asp:TextBox  ID="txtRangeFrom" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ScoreRangeLow") %>' >                         </asp:TextBox>                         &nbsp;<label for="to">To&nbsp;</label>                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox  ID="txtRangeTo" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ScoreRangeHigh") %>'...

[System.Data.SqlClient.SqlException] = {“Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1.”} 2

[System.Data.SqlClient.SqlException] = {“Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1.”}

I get the following error when Excecuting a NonQuery in .Net for a SQL Database (DBCommand.ExecuteNonQuery(cmd)): [System.Data.SqlClient.SqlException] = {"Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count =...