Hi pals,
I have created a database for my projects with the following attributes: id, title, shortDes, Des, startDate, endDate, pic. I bound the databse to an Accordion. Now, I want to add a LinkButton in my ContentTemplate so that if it is clicked, a page with the detailed information of the project will be displayed. I have a page called ProjectsDetails.aspx which must display the details of the selected project. To do so, I need to send the id of the project via the LinkButton of the Accordion to this page. Could you tell me how it is possible?
Here is the code for my Accordion:
<asp:Accordion ID="Accordion1" runat="server" TransitionDuration="200" AutoSize="Limit" FadeTransitions="True" Height="100%" Width="590px" ContentCssClass="accordionContent" FramesPerSecond="30" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected" DataSourceID="SqlDataSource1"><HeaderTemplate><%#DataBinder.Eval(Container.DataItem, "title") %></HeaderTemplate><ContentTemplate><asp:Label ID="Label2" runat="server" Text=<%#DataBinder.Eval(Container.DataItem, "shortDes")%> ></asp:Label> //HERE I AM GOING TO ADD THE LINKBUTTON TO SEND THE ID OF THE PROJECT WHEN IT IS CLICKED <hr /><asp:Image ID="Image1" runat="server" ImageUrl=<%#DataBinder.Eval(Container.DataItem, "pic")%> Width="580px" Height="200px"/></ContentTemplate></asp:Accordion>
Thanks in advance!