By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,641 Members | 1,446 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,641 IT Pros & Developers. It's quick & easy.

Problem: function call in <% %> pair using Container.DataItem("") as parameter

P: n/a
Hi,

I have some code written into the html in a dot.net form:

<%if test(Container.DataItem("user_id")) =2%>

I've been able to use container.dataitem in these <%%> pairs as an
expression to provide values for clauses. I've also been able to call
functions as above, as long as I don't use Container.DataItem to pass
some value from the bound data to the function. If I do I get the
error:

Name 'Container' is not declared.

I've tried a number of different things but no success. Any help
would be appreciated.

Thanks,
Neil
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I have seen you sand this messages to a lot of newsgroups, did you get your
answer already?

Cor
Nov 21 '05 #2

P: n/a
Cor,

I only sent this yesterday. I haven't gotten any answers yet.

Neil

"Cor Ligthert" <no**********@planet.nl> wrote in message news:<uP*************@TK2MSFTNGP12.phx.gbl>...
I have seen you sand this messages to a lot of newsgroups, did you get your
answer already?

Cor

Nov 21 '05 #3

P: n/a
Fig000,

The kind of code you are using is ASP code, which works on ASPNET.

However for most of us it is confusing, moreover because in ASPNET the code
in the non compiled version is as well rearanged, therefore the result is
that it is good readable and easy to show too others.

Maybe it is better that you have a look at this style of code which has a
good and also very deep explanation on this website.

http://samples.gotdotnet.com/quickstart/

And please do not multipost again (sending one messages to more newsgroups),
correct crossposting (sending one message to one newsgroup) is in dotnet
newsgroups well accepted when it is not clear for what is the subject. It
gives even the result that more people can see answers from others.

I hope this helps?

Cor
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.