problem with formview update
-
Hi, i am usign formview control in my user control. when i use formview.UpdateItem(true), i got this error "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control." I have googled about it, i couldnt sort out the problem. Can anyone help me, please. thanks, deep.
-
Hi, i am usign formview control in my user control. when i use formview.UpdateItem(true), i got this error "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control." I have googled about it, i couldnt sort out the problem. Can anyone help me, please. thanks, deep.
It means you wrote code outside of a databound control ( such as a grid view ) that can only run inside such a control. Such as <%# Eval("columnname") %>
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
It means you wrote code outside of a databound control ( such as a grid view ) that can only run inside such a control. Such as <%# Eval("columnname") %>
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
What do you mean by outside of control ? do u mean in another class?? this formview is in a usercontrol which i am using in another aspx page. How can i use it in another aspx page without getting error ? thanks, deep.
-
What do you mean by outside of control ? do u mean in another class?? this formview is in a usercontrol which i am using in another aspx page. How can i use it in another aspx page without getting error ? thanks, deep.
That is irrelevant. What is relevant is that you've used a data binding statement, in your ascx or aspx, and it's outside of a control that uses such statements.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )