I am having some problems in setting a protected variable from databinder.eval functionality.
i am basically binding my repeator control from a datatable and at a point i need to asign my protected varaible "xyz" a value from
DataBinder.Eval(Container.DataItem,"Name")
when i write a syntax in my aspx page "client side"
<% TradeSystemIDabcdef = DataBinder.EvalContainer.DataItem,"Trdsystemid").tostring()%>
it gives me an error " Name 'Container' is not declared"
if a write
<%# TradeSystemIDabcdef = DataBinder.EvalContainer.DataItem,"Trdsystemid").tostring()%>
then it prints false on the ui page.
is there any way where we acn assign a value to a variable using the above logic.
. My second question is what if i want to call a function from my aspx page to a function in codebehind .
i have
protected function GetUpperName(Name as string)
return ucase(name)
end function
i am calling this function from UI i.e aspx
i am doing
<%GetUpperName(DataBinder.EvalContainer.DataItem,"Trdsystemid").tostring()%>
it gives me an error " Name 'Container' is not declared"
If someone could help that would be great.
Thanks
Rahul
**********************************************************************
This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the
intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege.
Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended
recipient or his or her employees or agents is strictly prohibited. If you have received this communication in error, please
immediately notify us and delete the original material from your computer.
Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or SoCalGas, the utilities owned by SET's parent company.
SET is not regulated by the California Public Utilities Commission and you do not have to buy SET's products and services to
continue to receive quality regulated service from the utilities.
**********************************************************************