Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Templates in ASP:Repeater control


Message #1 by "Neil Marshall" <neilm@c...> on Fri, 29 Jun 2001 17:48:58
Hi,



Whew, I am managing just find to migrating some code from Beta 1 to 2 so 

far.  Interestingly, the next expertiment I was playing from pages 214-215 

from the Introduction to .NET book regarding the Repeater control.  

Templates do not seem working properly.  Here is the detail complitation 

error:



Parser Error Message: Type 'System.Web.UI.WebControls.Repeater' does not 

have a property named 'template'



Source Error: 



Line 24: 	<body>

Line 25: 		<asp:Repeater ID="Repeater1" Runat="Server">

Line 26: 			<template name="HeaderTemplate">

Line 27: 				<table>

Line 28: 					<thead>

 

Source File: c:\inetpub\wwwroot\WebApplication1\datagrid2.aspx    Line: 26 



The website for beta 1 and 2 differences does not record the template 

problem.  Wonder if you could figure out the problem.



Many thanks,



Neil
Message #2 by "George Saliba" <georges@c...> on Fri, 29 Jun 2001 10:32:40 -0700
Instead of <template name=3D"HeaderTemplate">, use

<HeaderTemplate></HeaderTemplate>. Same goes for ItemTemplate,

AlternatingItemTemplate, FooterTemplate, etc etc.



George Saliba



-----Original Message-----

From: Neil Marshall [mailto:neilm@c...]

Sent: Friday, June 29, 2001 10:49 AM

To: ASP+

Subject: [aspx] Templates in ASP:Repeater control





Hi,



Whew, I am managing just find to migrating some code from Beta 1 to 2 so



far.  Interestingly, the next expertiment I was playing from pages

214-215

from the Introduction to .NET book regarding the Repeater control. 

Templates do not seem working properly.  Here is the detail complitation



error:



Parser Error Message: Type 'System.Web.UI.WebControls.Repeater' does not



have a property named 'template'



Source Error:



Line 24: 	<body>

Line 25: 		<asp:Repeater ID=3D"Repeater1" Runat=3D"Server">

Line 26: 			<template name=3D"HeaderTemplate">

Line 27: 				<table>

Line 28: 					<thead>



Source File: c:\inetpub\wwwroot\WebApplication1\datagrid2.aspx    Line:

26



The website for beta 1 and 2 differences does not record the template

problem.  Wonder if you could figure out the problem.



Many thanks,



Neil



Message #3 by "Alex Lowe" <alowe@s...> on Fri, 29 Jun 2001 13:26:02 -0400
Neil,



All <template> tag types now have their own tag. For example: <template

name="HeaderTemplate"> is now <HeaderTemplate></HeaderTemplate>. This

applies to all template types such as FooterTemplate, ItemTemplate, etc.

Also, there is no longer a <property> tag - you should now be using

<columns></columns>, etc.



hth,

Alex

http://www.aspalliance.com/aldotnet





----- Original Message -----

From: "Neil Marshall" <neilm@c...>

To: "ASP+" <aspx@p...>

Sent: Friday, June 29, 2001 5:48 PM

Subject: [aspx] Templates in ASP:Repeater control





| Hi,

|

| Whew, I am managing just find to migrating some code from Beta 1 to 2 so

| far.  Interestingly, the next expertiment I was playing from pages 214-215

| from the Introduction to .NET book regarding the Repeater control.

| Templates do not seem working properly.  Here is the detail complitation

| error:

|

| Parser Error Message: Type 'System.Web.UI.WebControls.Repeater' does not

| have a property named 'template'

|

| Source Error:

|

| Line 24: <body>

| Line 25: <asp:Repeater ID="Repeater1" Runat="Server">

| Line 26: <template name="HeaderTemplate">

| Line 27: <table>

| Line 28: <thead>

|

| Source File: c:\inetpub\wwwroot\WebApplication1\datagrid2.aspx    Line: 26

|

| The website for beta 1 and 2 differences does not record the template

| problem.  Wonder if you could figure out the problem.

|

| Many thanks,

|

| Neil



Message #4 by "Mike Amundsen" <mike@a...> on Fri, 29 Jun 2001 13:20:58 -0400
template naming is now much easier:



<template Name="HeaderTemplate">

is now

<HeaderTemplate>



and so forth...



MCA





-----Original Message-----

From: Neil Marshall [mailto:neilm@c...]

Sent: Friday, June 29, 2001 5:49 PM

To: ASP+

Subject: [aspx] Templates in ASP:Repeater control





Hi,



Whew, I am managing just find to migrating some code from Beta 1 to 2 so

far.  Interestingly, the next expertiment I was playing from pages 214-215

from the Introduction to .NET book regarding the Repeater control.

Templates do not seem working properly.  Here is the detail complitation

error:



Parser Error Message: Type 'System.Web.UI.WebControls.Repeater' does not

have a property named 'template'



Source Error:



Line 24: 	<body>

Line 25: 		<asp:Repeater ID="Repeater1" Runat="Server">

Line 26: 			<template name="HeaderTemplate">

Line 27: 				<table>

Line 28: 					<thead>



Source File: c:\inetpub\wwwroot\WebApplication1\datagrid2.aspx    Line: 26



The website for beta 1 and 2 differences does not record the template

problem.  Wonder if you could figure out the problem.



Many thanks,



Neil



Message #5 by Neil Marshall <neilm@c...> on Fri, 29 Jun 2001 11:04:43 -0700
Oh, great!  Thanks for your reply.  I am going to try this.  :-)



-----Original Message-----

From: Mike Amundsen [mailto:mike@a...]

Sent: June 29, 2001 10:21 AM

To: ASP+

Subject: [aspx] RE: Templates in ASP:Repeater control





template naming is now much easier:



<template Name=3D"HeaderTemplate">

is now

<HeaderTemplate>



and so forth...



MCA





-----Original Message-----

From: Neil Marshall [mailto:neilm@c...]

Sent: Friday, June 29, 2001 5:49 PM

To: ASP+

Subject: [aspx] Templates in ASP:Repeater control





Hi,



Whew, I am managing just find to migrating some code from Beta 1 to 2 

so

far.  Interestingly, the next expertiment I was playing from pages 

214-215

from the Introduction to .NET book regarding the Repeater control.

Templates do not seem working properly.  Here is the detail 

complitation

error:



Parser Error Message: Type 'System.Web.UI.WebControls.Repeater' does 

not

have a property named 'template'



Source Error:



Line 24: 	<body>

Line 25: 		<asp:Repeater ID=3D"Repeater1" Runat=3D"Server">

Line 26: 			<template name=3D"HeaderTemplate">

Line 27: 				<table>

Line 28: 					<thead>



Source File: c:\inetpub\wwwroot\WebApplication1\datagrid2.aspx    Line: 

26



The website for beta 1 and 2 differences does not record the template

problem.  Wonder if you could figure out the problem.



Many thanks,



Neil



Message #6 by Neil Marshall <neilm@c...> on Fri, 29 Jun 2001 11:03:57 -0700
Oh, great!  Thanks for your reply.  I am going to try this.  :-)



-----Original Message-----

From: George Saliba [mailto:georges@c...]

Sent: June 29, 2001 10:33 AM

To: ASP+

Subject: [aspx] RE: Templates in ASP:Repeater control





Instead of <template name=3D"HeaderTemplate">, use

<HeaderTemplate></HeaderTemplate>. Same goes for ItemTemplate,

AlternatingItemTemplate, FooterTemplate, etc etc.



George Saliba



-----Original Message-----

From: Neil Marshall [mailto:neilm@c...]

Sent: Friday, June 29, 2001 10:49 AM

To: ASP+

Subject: [aspx] Templates in ASP:Repeater control





Hi,



Whew, I am managing just find to migrating some code from Beta 1 to 2 

so



far.  Interestingly, the next expertiment I was playing from pages

214-215

from the Introduction to .NET book regarding the Repeater control. 

Templates do not seem working properly.  Here is the detail 

complitation



error:



Parser Error Message: Type 'System.Web.UI.WebControls.Repeater' does 

not



have a property named 'template'



Source Error:



Line 24: 	<body>

Line 25: 		<asp:Repeater ID=3D"Repeater1" Runat=3D"Server">

Line 26: 			<template name=3D"HeaderTemplate">

Line 27: 				<table>

Line 28: 					<thead>



Source File: c:\inetpub\wwwroot\WebApplication1\datagrid2.aspx    Line:

26



The website for beta 1 and 2 differences does not record the template

problem.  Wonder if you could figure out the problem.



Many thanks,



Neil




  Return to Index