.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 19th, 2002, 11:14 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Datalist bound want to use linkbutton to show label

<i><b>Originally posted by : Shea Filips (shaythai@yahoo.com)</b></i><br />I want this code to show a label when the text is clicked.<br /><br /><%@ Page Language="C#" %><br /><%@ Import namespace="System.Data" %><br /><%@ Import namespace="System.Xml" %><br /><HTML><br /> <HEAD><br /> <title>FAQ</title><br /> <script language="C#" runat="server"><br />void Page_Load(object source, EventArgs e)<br />{<br /> string xmlFilename = @"Location of XML file";<br /> int i=1;<br /> DataSet newDataSet = new DataSet();<br /> newDataSet.ReadXml(xmlFilename);<br /> FAQDataList.DataSource = newDataSet;<br /> FAQDataList.DataBind(); <br />}<br />void FAQTitleClick(object source, EventArgs e)<br />{<br /> //Unhide the label for this title...<br />}<br /> </script><br /> </HEAD><br /> <body topmargin="0" leftmargin="0"><br /> <asp:Label ID="Message" Runat=server /><br /> <form id="FAQ" runat="server"><br /> <table width="750" cellspacing="0" cellpadding="0"><br /> <tr><br /> <td style="height:20" bgcolor="#959595" cellspacing="0" cellpadding="0" width="100%" /><br /> </tr><br /> <tr><br /> <td align="right" style="height:70;font-family:Arial,Helvetica;font-weight:bold;font-size:44pt;color:white" width="100%" bgcolor="#e9e9e9"><br /> <font size="6" color="#959595">AT Lab FAQ </font><br /> </td><br /> </tr><br /> <tr><br /> <td colspan="2"><br /> <ASPataList id="FAQDataList" RepeatColumns="1" RepeatDirection="Horizontal" DataKeyField="Number" runat="server"><br /> <ItemTemplate><br /> <div style="padding:15,15,15,15;font-size:10pt;font-family:Verdana"><br /> <div style="font:10pt verdana;color:959595"><br /> <i><b><br /> <asp:LinkButton ID=FAQTitleLabel Visible=""TRUE"" OnClick="FAQTitleClick" runat=server Text='<%# DataBinder.Eval(Container.DataItem, "Title") %>' /></i></b><br /> </div><br /> <br><br /> <asp:Label ID=FAQSolutionLabel Visible=""FALSE"" runat=server Text='<%# DataBinder.Eval(Container.DataItem, "Solution") %>' /><p><br /> </div><br /> </ItemTemplate><br /> </ASPataList><br /> </td><br /> </tr><br /> <tr><br /> <td style="height:20" bgcolor="#959595" cellspacing="0" cellpadding="0" width="100%" /><br /> </tr><br /> </table><br /> </form><br /> </body><br /></HTML><br /><br />Any Ides would be great!<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Datalist bound want to use linkbutton to show label


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway