Sep 01, 2008, 3:17 PM
[CLOSED] Click on button - no postback
I have this simple piece of code below and what I want to achieve is to load my custom control inside the panel when I click the button but without refreshing the whole page (ie. postback). Can you instruct me how to do it?
Thanks.
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="AJAXEnabledWebApplication2._Default" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
&nbsp;
<ext:ScriptManager ID="ScriptManager1" runat="server">
</ext:ScriptManager>
<ext:Panel ID="Panel1" runat="server" Height="300" Title="Title">
</ext:Panel>
<ext:Button ID="Button1" runat="server" Text="Submit">
</ext:Button>
<br />
hello
</form>
</body>
</html>
Thanks.