Click here to Skip to main content
15,911,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to call ActionResult Index() method before the light box pops up on the click of the @html.ActionLink.so is there any way to achieve this.

Thanks
Eber yusuf
Posted

1 solution

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:

http://jsfiddle.net/6sV8K/[^]

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!
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900