software master at the intersection of technology, science and art

home

download

submit button



<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Helpers" %>
<%
    using (Ajax.BeginForm("ReturnEnteredText", new AjaxOptions
    {
        UpdateTargetId = "SubmittedText"
    }))
    {%>
            
            Enter Text: <%= Html.TextBox("EnteredText")%>
            <%=Html.SubmitButton("Submit the Text")%>
    <%}; %>
    <div id = "SubmittedText" style="border : 2px dotted red">
    Results will appear here
    </div>