Home

ASP:UpdatePanel AbsoluteBasic Example

The quasi HTML page

    <form id="form1" runat="server">
        <!--
            We absolutely have to have this scriptmanager. It's how ASP.Net gets the required Javascript into the page.
            -->
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <asp:UpdatePanel ID="myPanel" runat="server">
            <ContentTemplate>
                <asp:TextBox ID="myText" runat="server" />
                <br />
                ====
                <asp:Literal ID="myLit" runat="server" />
                <br />
                <asp:Button ID="DoTest" OnClick="DoTest_Click" Text="Go" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>

The Code Behind

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void DoTest_Click(object sender, EventArgs e)
    {
        myLit.Text = myText.Text;
    }

Reader's Comments

Post Your Comment Posts/Links Rules

Name

Comment

Add a RELEVANT link (not required)

Upload an image (not required)

No uploaded image
Real person number
Please enter the above number below




Home
Admin Ren's Biking Blog