I want to display image on "About us" page and when any user will click on that image, it should open the image by lightbox capabililty:
To add lightbox feature in about us page, i have added this in AboutUs.aspx.cs page:
protected override void OnPreRender(EventArgs e)
{
string jquery = CommonHelper.GetStoreLocation() + "Scripts/jquery-1.3.2.min.js";
Page.ClientScript.RegisterClientScriptInclude(jquery, jquery);
string slimBox = CommonHelper.GetStoreLocation() + "Scripts/slimbox2.js";
Page.ClientScript.RegisterClientScriptInclude(slimBox, slimBox);
base.OnPreRender(e);
}
1) saved the page
2) re-build the project
3) from the admin section added an image in about us topic page
4) Made the image as hyperlink image as lightbox requires hyperlink image (click-able image):
href="http://www.huddletogether.com/projects/lightbox2/images/image-2.jpg"><img height="77" alt="" src="http://www.huddletogether.com/projects/lightbox2/images/image-2.jpg" width="182" style="width: 182px; height: 77px" /></a>
but when i click on the image (on about us page), it opens the image in browser...why the page is not using lightbox code ?