Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

DataSet not recognized as buesiness object by ObjectDataSource

$
0
0

I have an ObjectDataSource in Visual Studio 2008.  I have a DataSet defined with a TableAdapter.  However, when I go to select the Table Adapter to use in the ObjectDataSource, nothing shows up.  I double checked that the DataSet is in fact in the App_Code folder.  I do not know what else to try.  The following code is the ASP code for that ObjectDataSource:

 

<

 

asp:ObjectDataSourceID="ObjectDataSource1"runat="server"DeleteMethod="Delete"InsertMethod="Insert"OldValuesParameterFormatString="original_{0}"SelectMethod="GetData"TypeName="NewDataSetTableAdapters.PlansTableAdapter"UpdateMethod="Update">

<DeleteParameters>

 

<asp:ParameterName="Original_ID"Type="Int32"/>

 

</DeleteParameters>

<UpdateParameters>

<asp:ParameterName="DO"Type="String"/>

 

<asp:ParameterName="Task"Type="String"/>

 

<asp:ParameterName="PDesc"Type="String"/>

 

<asp:ParameterName="TTitle"Type="String"/>

 

<asp:ParameterName="Employee"Type="String"/>

 

<asp:ParameterName="Employee_Name"Type="String"/>

 

<asp:ParameterName="Company"Type="String"/>

 

<asp:ParameterName="Hours"Type="Double"/>

 

<asp:ParameterName="Period"Type="String"/>

 

<asp:ParameterName="Year"Type="String"/>

 

<asp:ParameterName="Acct"Type="String"/>

 

<asp:ParameterName="Revision"Type="String"/>

 

<asp:ParameterName="Rate"Type="Double"/>

 

<asp:ParameterName="Skill"Type="String"/>

 

<asp:ParameterName="Raise"Type="Double"/>

 

<asp:ParameterName="Amount"Type="Double"/>

 

<asp:ParameterName="Support"Type="Double"/>

 

<asp:ParameterName="Fringe"Type="Double"/>

 

<asp:ParameterName="Overhead"Type="Double"/>

 

<asp:ParameterName="ODC"Type="Double"/>

 

<asp:ParameterName="Facility"Type="Double"/>

 

<asp:ParameterName="TotalCostInput"Type="Double"/>

 

<asp:ParameterName="GA"Type="Double"/>

 

<asp:ParameterName="Subtotal"Type="Double"/>

 

<asp:ParameterName="Fee"Type="Double"/>

 

<asp:ParameterName="TotalCost"Type="Double"/>

 

<asp:ParameterName="Code"Type="String"/>

 

<asp:ParameterName="CodeB"Type="String"/>

 

<asp:ParameterName="PlanVer"Type="String"/>

 

<asp:ParameterName="Status"Type="Boolean"/>

 

<asp:ParameterName="ValueLevel"Type="String"/>

 

<asp:ParameterName="Original_ID"Type="Int32"/>

 

</UpdateParameters>

 

<SelectParameters>

 

 

<asp:ControlParameterControlID="ProjectDropDownList"Name="Project"PropertyName="SelectedValue"Type="String"/>

 

 

<asp:ControlParameterControlID="VersionDropDownList"Name="Version"PropertyName="SelectedValue"Type="String"/>

 

</SelectParameters>

 

<InsertParameters>

 

<asp:ParameterName="DO"Type="String"/>

 

<asp:ParameterName="Task"Type="String"/>

 

<asp:ParameterName="PDesc"Type="String"/>

 

<asp:ParameterName="TTitle"Type="String"/>

 

<asp:ParameterName="Employee"Type="String"/>

 

<asp:ParameterName="Employee_Name"Type="String"/>

 

<asp:ParameterName="Company"Type="String"/>

 

<asp:ParameterName="Hours"Type="Double"/>

 

<asp:ParameterName="Period"Type="String"/>

 

<asp:ParameterName="Year"Type="String"/>

 

<asp:ParameterName="Acct"Type="String"/>

 

<asp:ParameterName="Revision"Type="String"/>

 

<asp:ParameterName="Rate"Type="Double"/>

 

<asp:ParameterName="Skill"Type="String"/>

 

<asp:ParameterName="Raise"Type="Double"/>

 

<asp:ParameterName="Amount"Type="Double"/>

 

<asp:ParameterName="Support"Type="Double"/>

 

<asp:ParameterName="Fringe"Type="Double"/>

 

<asp:ParameterName="Overhead"Type="Double"/>

 

<asp:ParameterName="ODC"Type="Double"/>

 

<asp:ParameterName="Facility"Type="Double"/>

 

<asp:ParameterName="TotalCostInput"Type="Double"/>

 

<asp:ParameterName="GA"Type="Double"/>

 

<asp:ParameterName="Subtotal"Type="Double"/>

 

<asp:ParameterName="Fee"Type="Double"/>

 

<asp:ParameterName="TotalCost"Type="Double"/>

 

<asp:ParameterName="Code"Type="String"/>

 

<asp:ParameterName="CodeB"Type="String"/>

 

<asp:ParameterName="PlanVer"Type="String"/>

 

<asp:ParameterName="Status"Type="Boolean"/>

 

<asp:ParameterName="ValueLevel"Type="String"/>

 

</InsertParameters>

 

</asp:ObjectDataSource>

 


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>