PC Review


Reply
Thread Tools Rate Thread

Creating Usable Page Templates in ASP.NET

 
 
=?Utf-8?B?QW1hcg==?=
Guest
Posts: n/a
 
      17th Jul 2006
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

 
Reply With Quote
 
 
 
 
neilmcguigan@gmail.com
Guest
Posts: n/a
 
      17th Jul 2006
for ASP.Net 2.0, use MasterPages

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

http://authors.aspalliance.com/PaulW...rticles/?id=14




Amar wrote:
> 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


 
Reply With Quote
 
=?Utf-8?B?QW1hcg==?=
Guest
Posts: n/a
 
      17th Jul 2006
Thanks, I implemented this and it appears to have resolved those two issues.

"(E-Mail Removed)" wrote:

> for ASP.Net 2.0, use MasterPages
>
> for ASP.Net 1.1, I'd recommend Paul Wilson's MasterPages:
>
> http://authors.aspalliance.com/PaulW...rticles/?id=14
>
>
>
>
> Amar wrote:
> > 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

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating C# components to be usable with multiple languages zorrothefox.groups@gmail.com Microsoft C# .NET 6 1st Feb 2008 03:11 PM
need some advice in creating a re-usable platform Milsnips Microsoft Dot NET Compact Framework 1 24th Jun 2007 08:39 AM
custom templates usable by all users =?Utf-8?B?cGxhbm5lcm55Yw==?= Microsoft Word Document Management 5 20th Jan 2005 03:21 PM
Creating PC / MAC usable presentations with audio? W Klofkorn Microsoft Powerpoint 2 12th Mar 2004 09:10 PM
Creating templates from an existing web page Lisa Microsoft Frontpage 1 7th Feb 2004 04:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 PM.