If you control is in an UpdatePanel you need to reinitialize lightbox after your asyncpostback.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//Normal page load logic here..
}
else
{
//Reinitialize lightbox on postback.
ScriptManager.RegisterStartupScript(Page, typeof(Page), "init", "initLightbox();", true);
}
}
It worked for me , thanks lot
ReplyDelete