Click here to Skip to main content
15,895,667 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Set LinkButton from MasterPage as default button on the page. Pin
anada888623-Dec-08 20:40
anada888623-Dec-08 20:40 
GeneralRe: Set LinkButton from MasterPage as default button on the page. Pin
N a v a n e e t h23-Dec-08 20:58
N a v a n e e t h23-Dec-08 20:58 
AnswerRe: Set LinkButton from MasterPage as default button on the page. Pin
anada888623-Dec-08 21:24
anada888623-Dec-08 21:24 
QuestionAsp.Net user Control use in C# project. Pin
anish27patel23-Dec-08 18:35
anish27patel23-Dec-08 18:35 
AnswerRe: Asp.Net user Control use in C# project. Pin
_AK_23-Dec-08 19:35
_AK_23-Dec-08 19:35 
AnswerRe: Asp.Net user Control use in C# project. Pin
Paddy Boyd23-Dec-08 22:16
Paddy Boyd23-Dec-08 22:16 
GeneralRe: Asp.Net user Control use in C# project. Pin
anish27patel23-Dec-08 23:57
anish27patel23-Dec-08 23:57 
QuestionActivex control for FTP Pin
sujithkumarsl23-Dec-08 18:27
sujithkumarsl23-Dec-08 18:27 
AnswerRe: Activex control for FTP Pin
Abhijit Jana23-Dec-08 18:37
professionalAbhijit Jana23-Dec-08 18:37 
AnswerRe: Activex control for FTP:Repost Pin
Brij23-Dec-08 18:38
mentorBrij23-Dec-08 18:38 
Questionhow to resolve com Exception Pin
koolprasad200323-Dec-08 18:06
professionalkoolprasad200323-Dec-08 18:06 
AnswerRe: how to resolve com Exception Pin
Brij23-Dec-08 18:27
mentorBrij23-Dec-08 18:27 
QuestionMy log4net is not working on releases (but works on asp.net debug mode) Pin
Rafferty Uy23-Dec-08 17:59
Rafferty Uy23-Dec-08 17:59 
AnswerRe: My log4net is not working on releases (but works on asp.net debug mode) Pin
Paddy Boyd23-Dec-08 22:18
Paddy Boyd23-Dec-08 22:18 
GeneralRe: My log4net is not working on releases (but works on asp.net debug mode) Pin
Rafferty Uy23-Dec-08 22:32
Rafferty Uy23-Dec-08 22:32 
GeneralRe: My log4net is not working on releases (but works on asp.net debug mode) Pin
Paddy Boyd23-Dec-08 22:35
Paddy Boyd23-Dec-08 22:35 
GeneralRe: My log4net is not working on releases (but works on asp.net debug mode) Pin
Rafferty Uy23-Dec-08 23:06
Rafferty Uy23-Dec-08 23:06 
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?

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.