Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 24, 2012 03:33 PM by dinakaran
Member
40 Points
39 Posts
Mar 04, 2011 04:18 PM|LINK
i downloaded JQuery and i wanna make it work in ASP.NET
it have a thumbnail and normal size parts
can you help me in this
my code was like that
============================================== CODE ===============================================
public partial class slider : PageDataAccess { protected void Page_Load(object sender, EventArgs e) { DataTable DT = new DataTable(); DT = DA.getAllImages(); string strdata = ""; for (int i = 1; i <= DT.Rows.Count; i++) { strdata = strdata + "<li ><img src='" + DT.Rows[i - 1]["FileName"].ToString() + "' width=\"179\" height=\"100\" alt=\"\"/></li>"; } thumbs.InnerHtml = strdata; } }
==================================================================================================
========================================== html ============================================
<!-- Start Advanced Gallery Html Containers --> <div class="navigation-container"> <div id="thumbs" class="navigation" runat="server"> <a class="pageLink prev" style="visibility: hidden;" href="#" title="Previous Page"></a>
============================================================================================
here you can download the jquery template
http://www.twospy.com/galleriffic/galleriffic-2.0.zip
625 Points
216 Posts
Feb 24, 2012 03:33 PM|LINK
hi,
just alter
string strdata = ""; strdata="<ul>"; for (int i = 1; i <= DT.Rows.Count; i++) { strdata = strdata + "<li ><img src='" + DT.Rows[i - 1]["FileName"].ToString() + "' width=\"179\" height=\"100\" alt=\"\"/></li>"; } strdata =strdata+"</ul>";
NightBeam
Member
40 Points
39 Posts
new JQuery
Mar 04, 2011 04:18 PM|LINK
i downloaded JQuery and i wanna make it work in ASP.NET
it have a thumbnail and normal size parts
can you help me in this
my code was like that
============================================== CODE ===============================================
public partial class slider : PageDataAccess
{
protected void Page_Load(object sender, EventArgs e)
{
DataTable DT = new DataTable();
DT = DA.getAllImages();
string strdata = "";
for (int i = 1; i <= DT.Rows.Count; i++)
{
strdata = strdata + "<li ><img src='" + DT.Rows[i - 1]["FileName"].ToString() + "' width=\"179\" height=\"100\" alt=\"\"/></li>";
}
thumbs.InnerHtml = strdata;
}
}
==================================================================================================
========================================== html ============================================
<!-- Start Advanced Gallery Html Containers -->
<div class="navigation-container">
<div id="thumbs" class="navigation" runat="server">
<a class="pageLink prev" style="visibility: hidden;" href="#" title="Previous Page"></a>
============================================================================================
here you can download the jquery template
http://www.twospy.com/galleriffic/galleriffic-2.0.zip
dinakaran
Member
625 Points
216 Posts
Re: new JQuery
Feb 24, 2012 03:33 PM|LINK
hi,
just alter
string strdata = ""; strdata="<ul>"; for (int i = 1; i <= DT.Rows.Count; i++) { strdata = strdata + "<li ><img src='" + DT.Rows[i - 1]["FileName"].ToString() + "' width=\"179\" height=\"100\" alt=\"\"/></li>"; } strdata =strdata+"</ul>";