M
Mr Newbie
Ive got the basic idea behind DataBinding Expressions, but I have a couple
of questions, Ok its four actually
Q1.) It would appear that if you use Page.DataBind that all child controls
and the page get bound to their respective DataSources, is this correct ?
and if so why would you need to individually bind controls, why not jsut use
Page.DataBind everytime?, Im sure there is a good reason why not but I cant
think of one at the moment.
Q2.) The phase Container.DataItem seems to be able to appear either on its
own or within the DataBinder.Eval static function. I cant seem to find a
cohesive paper on the net that really explains well the Container.DataItem,
and where and how it should be used.
So far I have been able to bind stuff like a class level variable called
page title and have that display in a reapeater header template and also
bind things like arrays to the repeater and this works fine. But as the
array does not have a propertyname using DataBinder.Eval does not work, you
need to use Container.DataItem
Q3.) When are the DataBinding expressions evaluated ? is it just before or
after the pre-render event, or somewhere else. ?
So some pointers to a well written paper would be great or a self
explaination would be really good as well.
Q4.) When the page is rendered for response to the browser, does anyone have
a pointer to a paper which outlines in which order the HTML is built.
Many Thanks.
of questions, Ok its four actually
Q1.) It would appear that if you use Page.DataBind that all child controls
and the page get bound to their respective DataSources, is this correct ?
and if so why would you need to individually bind controls, why not jsut use
Page.DataBind everytime?, Im sure there is a good reason why not but I cant
think of one at the moment.
Q2.) The phase Container.DataItem seems to be able to appear either on its
own or within the DataBinder.Eval static function. I cant seem to find a
cohesive paper on the net that really explains well the Container.DataItem,
and where and how it should be used.
So far I have been able to bind stuff like a class level variable called
page title and have that display in a reapeater header template and also
bind things like arrays to the repeater and this works fine. But as the
array does not have a propertyname using DataBinder.Eval does not work, you
need to use Container.DataItem
Q3.) When are the DataBinding expressions evaluated ? is it just before or
after the pre-render event, or somewhere else. ?
So some pointers to a well written paper would be great or a self
explaination would be really good as well.
Q4.) When the page is rendered for response to the browser, does anyone have
a pointer to a paper which outlines in which order the HTML is built.
Many Thanks.