473,320 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Creating Usable Page Templates in ASP.NET

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

Jul 17 '06 #1
2 1141
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
Jul 17 '06 #2
Thanks, I implemented this and it appears to have resolved those two issues.

"ne**********@gmail.com" 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

Jul 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ex-Em-El | last post by:
I have a problem in creating a dynamic table in the same xml : 1.xml: <?xml version="1.0" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="2.xsl"?> <aaa...
4
by: Martin | last post by:
I want to build a data entry form for creating and updating info on something. When I'm first creating an item all the fields need to be editable. There after some fields become readonly. Most...
2
by: jen_designs | last post by:
I am trying to create a template in dot net. All the articles I have read on the net are rather confusing. I need a simple solution to create a header and a footer on each page. Can someone...
2
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! I am trying to go thru the walkthru in Studio 2005 Pro Called "Creating an ASP.NET Mobile Web Application" It says, "In the Templates pane, click Mobile Web Application", there isn't a...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
6
by: Tex | last post by:
I am writting a survey system web application. I am using ASP.Net 2, C# and MS SQL 2005. I am able to store surveys and questions associated to the surveys just fine. The problem I am having is...
1
by: vinki | last post by:
Hi Everyone, I have this xslt file. I want to print the page directly to the printer after every MOP template is matched. So for example the ouput is coming to the HTML page like this ...
0
by: james.beauchamp | last post by:
Hi I'm trying to create a control with multiple regions that can be edited - maybe as templates I guess. I've seen a control that was done by Scott Mitchell which has rounded corners...
2
by: Eric Lilja | last post by:
As the topic says, I wanted to make a re-usable singleton class that could create pointers to objects with non-trivial constructors. I came up with this: #ifndef SINGLETON_HPP #define...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.