tags:

views:

10

answers:

0

Partial View


<script type="text/javascript">
$(function() {
alert("Message");
});
</script>

User Control Text


View

<%= Ajax.ActionLink("Show Control", "ShowControl", "Home", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "controlPanel" })%>
 <div id="controlPanell"></div>

Controller


public ActionResult ShowControl(){
return PartialView();
}