Click here to Skip to main content
15,867,308 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionabout dropdownlist Pin
Rajeshwar Code- Developer23-Dec-08 17:10
Rajeshwar Code- Developer23-Dec-08 17:10 
AnswerRe: about dropdownlist Pin
N a v a n e e t h23-Dec-08 17:12
N a v a n e e t h23-Dec-08 17:12 
GeneralRe: about dropdownlist Pin
Rajeshwar Code- Developer23-Dec-08 17:15
Rajeshwar Code- Developer23-Dec-08 17:15 
QuestionAjax Calendar Pin
sarang_k23-Dec-08 16:49
sarang_k23-Dec-08 16:49 
AnswerRe: Ajax Calendar Pin
N a v a n e e t h23-Dec-08 17:05
N a v a n e e t h23-Dec-08 17:05 
QuestionAjaxToolkit with gridview Pin
papy-boom23-Dec-08 14:29
papy-boom23-Dec-08 14:29 
AnswerRe: AjaxToolkit with gridview Pin
PunkIsNotDead15-Jul-09 8:04
PunkIsNotDead15-Jul-09 8:04 
QuestionProblem with FormView and Update query Pin
David Mujica23-Dec-08 10:51
David Mujica23-Dec-08 10:51 
I have a FormView control on my form connected to an objectdatasource and I can't understand why it is looking for an update query with parameters that are not part of the ObjectdataSource definition.

Here is my ObjectDataSource:
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"
        InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
        TypeName="PriceModuleTableAdapters.TAKUSQuoteHistoryTableAdapter" UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="Original_ID" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="QType" Type="Int32" />
            <asp:Parameter Name="Qdate" Type="DateTime" />
            <asp:Parameter Name="RequestorID" Type="String" />
            <asp:Parameter Name="CustomerID" Type="String" />
            <asp:Parameter Name="FORMULA_CODE" Type="String" />
            <asp:Parameter Name="Version" Type="String" />
            <asp:Parameter Name="RMC1" Type="Decimal" />
            <asp:Parameter Name="RMC2" Type="Decimal" />
            <asp:Parameter Name="RMC3" Type="Decimal" />
            <asp:Parameter Name="Complexity1" Type="Decimal" />
            <asp:Parameter Name="Complexity2" Type="Decimal" />
            <asp:Parameter Name="Complexity3" Type="Decimal" />
            <asp:Parameter Name="FormulaWtPerGallon" Type="Single" />
            <asp:Parameter Name="ProdCost1" Type="Decimal" />
            <asp:Parameter Name="ProdCost2" Type="Decimal" />
            <asp:Parameter Name="ProdCost3" Type="Decimal" />
            <asp:Parameter Name="MarginMult1" Type="Single" />
            <asp:Parameter Name="MarginMult2" Type="Single" />
            <asp:Parameter Name="MarginMult3" Type="Single" />
            <asp:Parameter Name="UseLevel1" Type="Single" />
            <asp:Parameter Name="UseLevel2" Type="Single" />
            <asp:Parameter Name="UseLevel3" Type="Single" />
            <asp:Parameter Name="Original_ID" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="QType" Type="Int32" />
            <asp:Parameter Name="Qdate" Type="DateTime" />
            <asp:Parameter Name="RequestorID" Type="String" />
            <asp:Parameter Name="CustomerID" Type="String" />
            <asp:Parameter Name="FORMULA_CODE" Type="String" />
            <asp:Parameter Name="Version" Type="String" />
            <asp:Parameter Name="RMC1" Type="Decimal" />
            <asp:Parameter Name="RMC2" Type="Decimal" />
            <asp:Parameter Name="RMC3" Type="Decimal" />
            <asp:Parameter Name="Complexity1" Type="Decimal" />
            <asp:Parameter Name="Complexity2" Type="Decimal" />
            <asp:Parameter Name="Complexity3" Type="Decimal" />
            <asp:Parameter Name="FormulaWtPerGallon" Type="Single" />
            <asp:Parameter Name="ProdCost1" Type="Decimal" />
            <asp:Parameter Name="ProdCost2" Type="Decimal" />
            <asp:Parameter Name="ProdCost3" Type="Decimal" />
            <asp:Parameter Name="MarginMult1" Type="Single" />
            <asp:Parameter Name="MarginMult2" Type="Single" />
            <asp:Parameter Name="MarginMult3" Type="Single" />
            <asp:Parameter Name="UseLevel1" Type="Single" />
            <asp:Parameter Name="UseLevel2" Type="Single" />
            <asp:Parameter Name="UseLevel3" Type="Single" />
        </InsertParameters>
    </asp:ObjectDataSource>
When I try to update a record I get the following error:
ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: QType, Qdate, RequestorID, CustomerID, FORMULA_CODE, Version, RMC1, RMC2, RMC3, Complexity1, Complexity2, Complexity3, FormulaWtPerGallon, ProdCost1, ProdCost2, ProdCost3, MarginMult1, MarginMult2, MarginMult3, UseLevel1, UseLevel2, UseLevel3, original_ID, ReqName, CoName, FormulaDesc.

Notice that the fields, ReqName, CoName and FormulaDesc are not even defined in the Objectdatasource UpdateParameters !

What's going on here? Confused | :confused:
How do I force the FormView control to use the Update method as defined in my ObjectDataSource?
GeneralPage Refresh Question Pin
Tom Delany23-Dec-08 6:46
Tom Delany23-Dec-08 6:46 
GeneralRe: Page Refresh Question Pin
Tom Delany23-Dec-08 7:18
Tom Delany23-Dec-08 7:18 
GeneralRe: Page Refresh Question Pin
ToddHileHoffer23-Dec-08 7:25
ToddHileHoffer23-Dec-08 7:25 
GeneralRe: Page Refresh Question Pin
Tom Delany23-Dec-08 7:35
Tom Delany23-Dec-08 7:35 
GeneralRe: Page Refresh Question Pin
ToddHileHoffer23-Dec-08 8:05
ToddHileHoffer23-Dec-08 8:05 
GeneralRe: Page Refresh Question Pin
Tom Delany23-Dec-08 10:33
Tom Delany23-Dec-08 10:33 
GeneralRe: Page Refresh Question Pin
ToddHileHoffer23-Dec-08 14:32
ToddHileHoffer23-Dec-08 14:32 
GeneralRe: Page Refresh Question Pin
Tom Delany29-Dec-08 10:04
Tom Delany29-Dec-08 10:04 
GeneralRe: Page Refresh Question Pin
Guffa30-Dec-08 10:01
Guffa30-Dec-08 10:01 
Questiondetailsview problem need help Pin
dream_liner_7e723-Dec-08 6:38
dream_liner_7e723-Dec-08 6:38 
QuestionMultiPart/Form-Data Pin
hammerstein0523-Dec-08 6:34
hammerstein0523-Dec-08 6:34 
QuestionHow to share NETCOBOL dll in .NET Framework2.0/3.5 in windows server 2003. Pin
kkb_200123-Dec-08 3:55
kkb_200123-Dec-08 3:55 
AnswerRe: How to share NETCOBOL dll in .NET Framework2.0/3.5 in windows server 2003. Pin
Christian Graus23-Dec-08 7:57
protectorChristian Graus23-Dec-08 7:57 
GeneralRe: How to share NETCOBOL dll in .NET Framework2.0/3.5 in windows server 2003. Pin
kkb_200123-Dec-08 21:30
kkb_200123-Dec-08 21:30 
QuestionDataGrid paging + SqlDataSource Pin
Blumen23-Dec-08 3:49
Blumen23-Dec-08 3:49 
AnswerRe: DataGrid paging + SqlDataSource Pin
ToddHileHoffer23-Dec-08 4:46
ToddHileHoffer23-Dec-08 4:46 
GeneralRe: DataGrid paging + SqlDataSource Pin
Blumen24-Dec-08 3:08
Blumen24-Dec-08 3:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.