Hello,
I am using an Accordion to house textboxes on my page. The problem I am having when inserting it is saying it cannot find the control txtDescription. When writing code in the code behind I can type txtDescription so I can see it from there. For some reason it cannot find that textbox. Possibly many more since it stops at the first one and throws that error. Everything is in an Accordion besides the SQLDATASOURCE
HEre is the SqlDataSource:
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:GrantConnectionString %>"
InsertCommand="INSERT INTO [Grant_Table] ([Jurisdiction], [Input_Date], [Description], [FY], [Invoice_Number], [Inventory_Number], [Category], [Equipment_Location_Address], [Equipment_Location_City], [Equipment_Location_State], [Equipment_Location_ZIP], [Cost_PPI], [Cost_TAX], [Cost_Shipping], [Cost_TOTAL], [Received], [Equipment_Status], [AWIN_Serial], [AWIN_Operator], [AWIN_Call_Sign], [Contact_Name], [Contact_Phone], [Contact_Address], [Contact_City], [Contact_State], [Contact_ZIP], [Notes]) VALUES (@Jurisdiction, @Input_Date, @Description, @FY, @Invoice_Number, @Inventory_Number, @Category, @Equipment_Location_Address, @Equipment_Location_City, @Equipment_Location_State, @Equipment_Location_ZIP, @Cost_PPI, @Cost_TAX, @Cost_Shipping, @Cost_TOTAL, @Received, @Equipment_Status, @AWIN_Serial, @AWIN_Operator, @AWIN_Call_Sign, @Contact_Name, @Contact_Phone, @Contact_Address, @Contact_City, @Contact_State, @Contact_ZIP, @Notes)"
SelectCommand="SELECT [ID], [Jurisdiction], [Input_Date], [Description], [FY], [Invoice_Number], [Inventory_Number], [Category], [Equipment_Location_Address], [Equipment_Location_City], [Equipment_Location_State], [Equipment_Location_ZIP], [Cost_PPI], [Cost_TAX], [Cost_Shipping], [Cost_TOTAL], [Received], [Equipment_Status], [AWIN_Serial], [AWIN_Operator], [AWIN_Call_Sign], [Contact_Name], [Contact_Phone], [Contact_Address], [Contact_City], [Contact_State], [Contact_ZIP], [Notes] FROM [Grant_Table]">
<InsertParameters>
<asp:QueryStringParameter Name="Jurisdiction" QueryStringField="UserLocation"
Type="String" />
<asp:ControlParameter ControlID="txtInput_Date" Name="Input_Date"
Type="DateTime" />
<asp:ControlParameter ControlID="txtDescription" Name="Description"
PropertyName="Text" Type="String" />
<asp:QueryStringParameter Name="FY" QueryStringField="FY" Type="String" />
<asp:ControlParameter ControlID="txtInvoiceNumber" Name="Invoice_Number"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtInventoryNumber" Name="Inventory_Number"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtCategory" Name="Category"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtAddress" Name="Equipment_Location_Address"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtCity" Name="Equipment_Location_City"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtState" Name="Equipment_Location_State"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtZipCode" Name="Equipment_Location_ZIP"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtCostPPI" Name="Cost_PPI"
PropertyName="Text" Type="Decimal" />
<asp:ControlParameter ControlID="txtTax" Name="Cost_TAX" PropertyName="Text"
Type="Decimal" />
<asp:ControlParameter ControlID="txtShipping" Name="Cost_Shipping"
PropertyName="Text" Type="Decimal" />
<asp:ControlParameter ControlID="costLiteral" Name="Cost_TOTAL"
PropertyName="Text" Type="Decimal" />
<asp:ControlParameter ControlID="txtReceived" Name="Received"
PropertyName="Text" Type="DateTime" />
<asp:ControlParameter ControlID="txtEquipmentStatus" Name="Equipment_Status"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtAWINSerial" Name="AWIN_Serial"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtAWINOperator" Name="AWIN_Operator"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtAWINCallSign" Name="AWIN_Call_Sign"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtContactName" Name="Contact_Name"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtContactPhone" Name="Contact_Phone"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtContactAddress" Name="Contact_Address"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtCity" Name="Contact_City"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtContactState" Name="Contact_State"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtContactZip" Name="Contact_ZIP"
PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="txtNotes" Name="Notes" PropertyName="Text"
Type="String" />
</InsertParameters>
</asp:SqlDataSource>
Here is the error:
Source:
System.Web
Data:
System.Collections.ListDictionaryInternal
Inner Exception:
Location:
add.aspx
Message:
Could not find control 'txtDescription' in ControlParameter 'Description'.
|