Hi,
Any chance someone could post an example of the xml for setting a property of a user control. I'm using the master pages stuff so my controls are inside a contentplaceholder. I've had a go with no sucess and couldn't find anything in the help for the spring.web. The controls are derived from Spring.Web.UI.UserControl. My page aspx file is shown below
Code:
<%@ Page language="c#" Codebehind="ArtistDetail.aspx.cs" AutoEventWireup="false" Inherits="HardBopRecords.WebApp.ArtistDetail" %>
<%@ Register TagPrefix="uc1" TagName="ArtistCatalogSummary" Src="~/Controls/ArtistCatalogSummary.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ArtistCollaborationSummary" Src="~/Controls/ArtistCollaborationSummary.ascx" %>
<%@ Register TagPrefix="spring" Namespace="Spring.Web.UI.Controls" Assembly="Spring.Web" %>
<HTML>
<body>
<spring:content id="_mainContent" runat="server" contentPlaceholderId="_contentPlaceholder">
<TABLE class="PageTable" id="ArtistDetailPageTable" cellspacing="30" border="0">
<tr>
<td valign="top" class="ArtistDetailName"><%#Artist.Name%></td>
</tr>
<tr>
<td rowspan="2" class="ArtistDetailDescription"><%#Artist.Description.Substring(0, 1)%>[img]images/artist_small_<%#Artist.ImageFileName%>.gif[/img]</img><%#Artist.Description.Substring(1)%></td>
<td valign="top">
<uc1:ArtistCatalogSummary id="_artistCatalogSummary" Artist="<%#Artist%>" runat="server"></uc1:ArtistCatalogSummary>
<uc1:ArtistCollaborationSummary id="_artistCollaborationSummary" Artist="<%#Artist%>" runat="server"></uc1:ArtistCollaborationSummary>
</td>
</tr>
<tr>
<td valign="top">
</td>
</tr>
</TABLE>
</spring:content>
</body>
</HTML>
Any help much appreciated, probably me just being a bit thick.