Reputation: 8624
I have a menu in asp with many menuitems. I want one of the menu items to call a popup box.
I am using C# with code in a seperate file.
I would normally say something like:
RegisterStartupScript("Format Error", "<script>alert('Max Load Must be an Integer')</script>");
I want this to be called when I click the Menu Item.
The idea is that this can display an About Message box with like version in formation on it and other stuff...
Can this be done?
Thanks!
Upvotes: 0
Views: 1657
Reputation: 8624
Now that I have learned o so much over the past 6 months I can come back and answer my own question!
Answer: USE SOME FRIGGIN JQUERY! and it's so so easy! An animated dialog here!
You can say something like
$( "#dialog" ).dialog({
autoOpen: false,
show: "blind",
hide: "explode"
});
$("#myMenuItem).click(function() { $("#dialog").open()});
and have html:
<div id="dialog">all my dialog content here</div>
Hopefully someone will be able to use this! I check this site all the time, post a comment on this answer if you have a question an i'll explain further!
Wish I learned JQuery a long time ago...
Upvotes: 2