asp.net databinding string is passed to function but runtime occurs
Posted
by rod
on Stack Overflow
See other posts from Stack Overflow
or by rod
Published on 2010-05-22T19:20:51Z
Indexed on
2010/05/22
19:30 UTC
Read the original article
Hit count: 298
ASP.NET
Hi All,
I'm using a code-behind function (called TestFx) in my binding expression. I'm passing a string and the function accepts a string but I still get a runtime error saying invalid args.
But if I change the method to accept an object and inspect the value, "it's a string!" Can someone please explain?
-rod
ProductDescription:
<asp:Label ID="ProductDescriptionLabel" runat="server"
Text='<%# TestFx(Eval("ProductDescription")) %>' />
<br />
© Stack Overflow or respective owner