Thanks, ofcource the layout is not done yet, i have just put everything on the form to get a feel of things to come...
Anyway.. The updatepanel that shows the product detail screen (the overlay scren that appears when you click a thumbnail)
has this aspxcode
<asp:UpdatePanel ID="articleDetailsUP" UpdateMode="Conditional" RenderMode="Inline" runat="server">
<ContentTemplate>
<asp:PlaceHolder ID="articlePanel" Visible="false" runat="server">
<div id="productContainer">
<asp:Image ID="image" CssClass="image" runat="server" />
<div class="thumbs">
<asp:Repeater ID="imagesRepeater" runat="server">
<ItemTemplate>
<asp:Image ID="thumb" runat="server" />
</ItemTemplate>
</asp:Repeater>
</div>
<div>
<span>Art.Nr</span> <asp:Literal ID="articleNr" runat="server" /><br />
<asp:Label ID="lblPrice" runat="server" /> <asp:Literal ID="price" runat="server" /><br />
<asp:Literal ID="description" runat="server" />
<div><asp:LinkButton ID="btnClose" OnClientClick="destroy();" CssClass="btnClose" OnClick="CloseClick" runat="server"><img src="img/layout/close.gif" alt="Stäng" /></asp:LinkButton></div>
</div>
</div>
<div id="layerBG"></div>
</asp:PlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
And when you click a product this code is fired
public void ShowArticle(int articleId)
{
article = Controller.GetArticleWithFullInfo(articleId);
image.ImageUrl = string.Format("~/img/image.aspx?id={0}", article.ImageId);
image.AlternateText = article.ArticleNr;
articleNr.Text = article.ArticleNr;
lblPrice.FormatAsPriceLabel(article);
price.Text = Math.Round(article.OutPrice, 0).ToString();
description.Text = article.Description;
if (article.Images.Count > 1)
{
imagesRepeater.ItemDataBound += new RepeaterItemEventHandler(ImagesRepeaterItemDataBound);
imagesRepeater.DataSource = article.Images;
imagesRepeater.DataBind();
imagesRepeater.Visible = true;
}
else
imagesRepeater.Visible = false;
ScriptManager.RegisterClientScriptBlock(this.Page, typeof(Page), "initBG", "init();", true);
articlePanel.Visible = true;
articleDetailsUP.Update();
}
when you click the close button this code is fired
protected void CloseClick(object sender, EventArgs e)
{
articlePanel.Visible = false;
articleDetailsUP.Update();
} If the rendermode is set to inline the init() method will be fired everytime a ayncpostback is made, if its set to block it will only fire when you click on a product and ShowArticle(int articleId) is fired...