TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Cristina
NA
3
5.9k
Open a Dialog Box in a MVC app
Feb 21 2012 8:48 AM
Hi, I have a MVC application , in ASP.Net.I want to add to my application a dialog box but i can't make it works fine.
This is the code :
<div id="my-dialog">123</div>
<a href="#" id="show-modal">Click Me </a>
<script type="text/javascript">
$(function () {
$('#my-dialog').dialog({
autoOpen: false,
width: 400,
resizable: false,
modal: true
});
$('#show-modal').click(function() {
var url="";
url = "<%= Url.RouteUrl("OpenQuestionnaire", new { ccode = c.Code, eid = c.Id })%>";
$('#my-dialog').load(url, function() {
$(this).dialog('open');
});
return false;
});
});
</script>
I can open the page but text doesn't show like a dialog box .Can somebody tell me what's wrong?
Reply
Answers (
2
)
UpdateProgress
autocomplete extendor