inline code

  • Thread starter Thread starter Tom Gao
  • Start date Start date
T

Tom Gao

how come something like
NavigateURL = 'foo.aspx?cpid=<%# DataBinder.eval( Container.DataItem,
"DataItem.Foo"%>&nid=<%# DataBinder.eval( Container.DataItem,
"DataItem.Foo2"%>'

forgive me if I made a mistake in typing.. I just typed off the top of my
head.

The problem is when I do something like this (when syntax and typing are
correct) after execution the applicatiou would give me the url of
'foo.aspx?cpid=<%# DataBinder.eval( Container.DataItem,
"DataItem.Foo"%>&nid=<%# DataBinder.eval( Container.DataItem,
"DataItem.Foo2"%> without executing the inline code... why is that ?

Thanks
Tom
 
Hi and thanks Joel

actually I did call databind.. so I am quite puzzeled. that it didn't do
anything I had to resort to making a function in the cs and calling the
function and passing in these two values then concatenating and joining the
two IDS and returning as a url to resolve this issue.

Thanks
Tom
 
Back
Top