asp.net ajax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ganesh22
    Banned
    New Member
    • Sep 2007
    • 81

    asp.net ajax

    Hi,
    Iam doing web application using asp.net ajax then also when i click the button all page will post back

    my code:

    <form id="form1" runat="server">
    <div>
    <asp:ScriptMana ger id="ScriptManag er1" runat="server">
    </asp:ScriptManag er>
    <asp:UpdatePane l id="UpdatePanel 1" runat="server">
    <contenttemplat e>
    <asp:Button id="Button1" runat="server" Text="Button" OnClick="Button 1_Click1"></asp:Button>
    </contenttemplate >
    </asp:UpdatePanel >

    </div>
    </form>

    and i used like this also

    <form id="form1" runat="server">
    <div>
    <asp:ScriptMana ger id="ScriptManag er1" runat="server">
    </asp:ScriptManag er>
    <asp:UpdatePane l id="UpdatePanel 1" runat="server">
    <Triggers>
    <asp:AsyncPostB ackTrigger ControlID="Butt on1" EventName="Clic k" />
    </Triggers>
    <contenttemplat e>
    <asp:Button id="Button1" runat="server" Text="Button" OnClick="Button 1_Click1"></asp:Button>
    </contenttemplate >
    </asp:UpdatePanel >

    </div>
    </form>
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    What did you say is the problem?

    Comment

    • ganesh22
      Banned
      New Member
      • Sep 2007
      • 81

      #3
      My Prolem is when i click the button the whole page is going to the server

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by ganesh22
        My Prolem is when i click the button the whole page is going to the server
        What do you want to happen instead?

        Comment

        • kenobewan
          Recognized Expert Specialist
          • Dec 2006
          • 4871

          #5
          I think that you need to learn more about ajax:
          ASP.NET AJAX

          Comment

          Working...