Click here to Skip to main content
13,044,115 members (105,649 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have to call ActionResult Index() method before the light box pops up on the click of the is there any way to achieve this.

Eber yusuf
Posted 17-Sep-12 4:58am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

So, do you want light box to open after the new page opens? In that case, you need to have some hidden value to indicate that the light box should be shown, bind it to a model, and on $(document).ready open the light box. Or you can use $.ajax to perform some action on the server and then on success display the light box.

Check out this fiddle for an example:[^]

Without using either of these 2 methods, a plain anchor tag could only redirect you to an url.

In case I am missing something post your comments to my answer or update your question!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 17 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100