|
| Adding a class factory |
 |
Mon, 18 Sep 2006 13:14:20 +000 |
I want to create access to a simple stored procedure. Just to read te content.
Where do I have to add referrals in de code so that it is available as all the
other class factories?
SQLCommonDataProvider (public override IList GetXXX())
CommonDataProvider (PopulateXXXFromIDataReader | public abstract IList GetXXX()
your own class
your own Control in my case a custom DataList (ArrayList problems =
(ArrayList)CommonDataProvider.Instance().GetXXX()
So, I got that far. The datalist is also going through the ArrayList (number of
empty rows in the <table>.But I can't get to the container:
<% DataBinder.Eval(Container.DataItem,
"problemDescription".ToString(); %> Returns an error:
CS0103: The name 'Container' does not exist in the current context
Where is it that I go wrong.
|
| Post Reply
|
| Re: Adding a class factory |
 |
Fri, 22 Sep 2006 03:03:50 +000 |
I see a couple of potential problems with your line of code. First, the
parentheses is not properly closed. And secondly, if you are using .NET 2.0 you
can simply do <%# Eval("problemDescription") %>'
I hope this helps, you may want to call DataBind() on the page as well.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|