N
noone
Hello
I very often use class files that I call from the code behind. I very often
return web controls from these classes with a configuration something like:
Class Code behind
Dim mything as new myclass
Placeholder1.controls.add(Mything.stuff)
End class
Class Myclass
Function stuff() as placeholder
Dim p as new placeholder
Dim pnl as new panel
'Fill panel with stuff
p.controls.add(pnl)
return p
end function
end class
I really do not have a need to build custom controls that need to have
properties exposed in the designer, so I do it this way. What I am wondering
what are the potential downsides to doing it this way? Are there unusual
browser compatibility issues that I might have, by that I mean if a control
for example is inserted into the page using myclass, is it going to be
handled the same as a control dropped into the designer as far as browser
issues are concerned? Is there something else I should be doing besides
simply sending a control back to the (code behind of the) page for
rendering?
Thanks for reading and thank you very much for your thoughts on this.
x-- 100 Proof News - http://www.100ProofNews.com
x-- 3,500+ Binary NewsGroups, and over 90,000 other groups
x-- Access to over 800 Gigs/Day - $8.95/Month
x-- UNLIMITED DOWNLOAD
I very often use class files that I call from the code behind. I very often
return web controls from these classes with a configuration something like:
Class Code behind
Dim mything as new myclass
Placeholder1.controls.add(Mything.stuff)
End class
Class Myclass
Function stuff() as placeholder
Dim p as new placeholder
Dim pnl as new panel
'Fill panel with stuff
p.controls.add(pnl)
return p
end function
end class
I really do not have a need to build custom controls that need to have
properties exposed in the designer, so I do it this way. What I am wondering
what are the potential downsides to doing it this way? Are there unusual
browser compatibility issues that I might have, by that I mean if a control
for example is inserted into the page using myclass, is it going to be
handled the same as a control dropped into the designer as far as browser
issues are concerned? Is there something else I should be doing besides
simply sending a control back to the (code behind of the) page for
rendering?
Thanks for reading and thank you very much for your thoughts on this.
x-- 100 Proof News - http://www.100ProofNews.com
x-- 3,500+ Binary NewsGroups, and over 90,000 other groups
x-- Access to over 800 Gigs/Day - $8.95/Month
x-- UNLIMITED DOWNLOAD