ATLAS. Fire client script from server after ajaxcall

Discussion in 'ASP .Net' started by wonderu@gmail.com, Aug 30, 2006.

  1. Guest

    Hello!

    I try to fire client script from the server after ajaxcall:


    --------------------code---------------------
    protected void sendButton_Click(object sender, EventArgs e)
    {
    ClientScript.RegisterClientScriptBlock(this.GetType(), "alertScript",
    "<script language=javascript> alert('ewrfef');</script>");
    }

    ---------------------page--------------------
    <%@ Page Language="C#" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <atlas:ScriptManager ID="ScriptManager1" runat="server" />


    <atlas:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:TextBox ID="messageTextBox" runat="server"
    Width="660px"></asp:TextBox>
    <asp:Button ID="sendButton" runat="server"
    OnClick="sendButton_Click" Text="Send" />
    </ContentTemplate>
    </atlas:UpdatePanel>
    </div>
    </form>

    </body>
    </html>

    It works: after click on the button, alert appears. But if
    EnablePartialRendering==True it doesn't work!!!

    What's the problem?

    Thank you!
    , Aug 30, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stuart Whiteford
    Replies:
    2
    Views:
    728
    Stuart Whiteford
    Apr 25, 2006
  2. Replies:
    0
    Views:
    363
  3. Replies:
    4
    Views:
    601
  4. Boss302
    Replies:
    0
    Views:
    1,006
    Boss302
    Nov 21, 2006
  5. Amie
    Replies:
    2
    Views:
    303
Loading...

Share This Page