Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends

I am having a webgrid which is having href link in mvc3.

Now, when a link is clicked, then response is returned with some records from server that i want to display on a popup window (data will be comming from server after running a new query in controller after clicking that link and than shown in pop up window).

But i dont want to open a new window. i want to open it in a popup on same browser page.

i dont know weather I have to use jQuery or AJAX.But i want to implement same functionality.

Please help me to acheive this

Thanks in advance
Posted
Updated 13-Jul-12 22:16pm
v2
Comments
StianSandberg 13-Jul-12 9:16am    
try jqueryUI modal popup.. http://jqueryui.com/demos/dialog/

You are confused. AJAX and jQuery are not contradictions, they are two complementary things. You should use jquery to make AJAX calls. AJAX cannot show your popup, but it is the ONLY way to contact the server without refreshing your page.

As someone else said, there are a number of jquery libraries for popup windows. I would look for something that is a lightbox, not a modal popup. Then make your AJAX call, get your data, and populate your lightbox in javascript, using jquery.
 
Share this answer
 
Comments
Wonde Tadesse 18-Jul-12 22:01pm    
5+
Click here below
A Comparison of Three jQuery Modal Dialogs for ASP.NET MVC[^]

I hope it helps you
(n_n)

Accept solution or vote if this will help you

thanks in advance
 
Share this answer
 
Hope this will help you to display modal popup in mvc3 using jquery.
Modalpopup in MVC3
this is from my blog, i cannot simply dump all the code here, so please follow the link. Let me know if it helped you.
 
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