Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » Ajax » Controls » Downloads
 
Add your own
alternative version
Go to top

An Easy Way to Implement ASP.NET Callback

, 3 Sep 2010
Implementing callback inside User Control, choosing between client callback and Ajax framework
CallBackHandler.zip
CallBackHandler
App_Data
CallbackHandler-TestProject
TestProject1
bin
Debug
TestProject1.dll
WebTest1.webtest
WebTest2.webtest
My Project
TestProject1.suo
WebTest1.webtest
WebTest2.webtest
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="SimplePage_ScriptManager.aspx.vb" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <style type="text/css">
        .style1
        {
            height: 24px;
            text-align: center;
        }
        .style2
        {
            height: 27px;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
   
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table align="left" dir="ltr" style="width: 368px;">
                <tr>
                    <td class="style2" colspan="2" 
            
                        style="font-weight: 700; text-align: center; text-decoration: underline; color: #FFFF00; background-color: #CC0000;">
                        sample 1 :</td>
                </tr>
                <tr>
                    <td class="style1">
                        param 1 :</td>
                    <td>
                        <asp:TextBox ID="txtParam1" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        param 2 :</td>
                    <td>
                        <asp:TextBox ID="txtParam2" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        param 3 :</td>
                    <td>
                        <asp:TextBox ID="txtParam3" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                    </td>
                    <td>
                        <asp:Button ID="Button3" runat="server" Text="Button" />
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Result :
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1" colspan="2">
                        <div id="divResult" runat="server" 
                style="float:left;border: 1px solid #DDDDDD;width:348px; height:70px;text-align:left">
                        </div>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Mohammad A Gharakhanlou
Software Developer asemantek.ir
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
No Biography provided

| Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 3 Sep 2010
Article Copyright 2010 by Mohammad A Gharakhanlou
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid