Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating Usable Page Templates in ASP.NET

0 views
Skip to first unread message

Amar

unread,
Jul 17, 2006, 11:54:02 AM7/17/06
to
I came across a page templates article recently and successfully implemented
it on a small website. I have a couple of issues with it though so I e-mailed
the author of the article directly a couple days ago but didn't receive a
response. I'm hoping someone who is familiar with the article could provide
some feedback on the issues below:

* In a web form that uses the template, the design view does not render the
page content because all the code is inside the template control tag. In
addition, I loose intellisense in the HTML view. Is there a way to get these
functionalities?

* In a web form, I have a repeater that contains an asp:button control in
the itemtemplate section. When I click on the button in a browser, the
OnItemCommand event method is not fired. If I place the repeater outside of
the template control tag, the event is fired. Do you know the cause of this?

Any information on the above is greatly appreciated. The article can be
found here:
http://www.devx.com/dotnet/Article/18011

neilmc...@gmail.com

unread,
Jul 17, 2006, 1:06:11 PM7/17/06
to
for ASP.Net 2.0, use MasterPages

for ASP.Net 1.1, I'd recommend Paul Wilson's MasterPages:

http://authors.aspalliance.com/PaulWilson/Articles/?id=14

Amar

unread,
Jul 17, 2006, 2:28:01 PM7/17/06
to
Thanks, I implemented this and it appears to have resolved those two issues.
0 new messages