Ситуация открыть причудливую форму на странице загрузки,открыть FancyBox на PageLoad
Пожалуйста, найдите ниже HTML, и код позади Я использую, но без успеха.
protected void Page_Load(object sender, EventArgs e)
{
if (SessionController.CurrentMember != null)
{
if (Request.IsAuthenticated)
{
int memberId = SessionController.CurrentMember.MemberID;
bool checkaccepted = CheckAcceptedTermsandConditions(memberId);
if (!checkaccepted)
{
string script = @"<script>$(document).ready(function() {
$(""#onlineCasinoTandC"").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : false,
'overlayOpacity': 0.5,
'width' : 800,
'showCloseButton': true,
});
$(""#onlineCasinoTandC"").click();
});</script>";
ClientScript.RegisterStartupScript(this.GetType(), "fancybox", script);
onlineCasinoTandC.HRef = "/Common/EN/TermsandConditions.aspx";
}
}
}
}
С уважением Srividhya
это не работает ... Я пытался ... – Vidya