[CLOSED] Click on button - no postback

  1. #1

    [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?


    <%@ 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">
            &amp;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.
  2. #2

    RE: [CLOSED] Click on button - no postback

    Hi george,

    I'm not sure what you mean by "load my custom control"? I do not see a reference in your code sample to any custom controls.

    Can you provide a full code sample demonstrating the scenario using a full postback? Then we should be able to recommend a solution to accomplish using an Ajax request. Although it might just involve using an <asp:UpdatePanel> as currently there's really no other supported method to dynamically load a control using an ajax request.
    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] Click on button - no postback

    Hi george,

    I was just wondering if you found a solution to the problem. If yes, could you share the code for others?


    If no, just post an updated code sample and we'll do our best to help out.*


    Geoffrey McGill
    Founder
  4. #4

    RE: [CLOSED] Click on button - no postback

    Iframe was what I was looking for. Thanks for the fast reply.

Similar Threads

  1. [CLOSED] When button click, open the menu of button
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 22, 2012, 4:23 PM
  2. Replies: 1
    Last Post: Jul 15, 2011, 12:40 AM
  3. Replies: 4
    Last Post: Nov 19, 2010, 1:39 PM
  4. How do i trigger a postback on Tab Click?
    By Fabrizio in forum 1.x Help
    Replies: 0
    Last Post: Jul 22, 2010, 11:20 AM
  5. [CLOSED] [1.0] Ext.Button cause postback?
    By alliedwallet.com in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 30, 2010, 4:52 PM

Posting Permissions