PC Review


Reply
Thread Tools Rate Thread

ATLAS. Fire client script from server after ajaxcall

 
 
wonderu@gmail.com
Guest
Posts: n/a
 
      30th Aug 2006
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!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Atlas client-server binding issue (getter) Amie Microsoft ASP .NET 2 9th May 2007 11:13 PM
What causes a server event to fire due to a change on the client? John Dalberg Microsoft ASP .NET 1 25th Apr 2007 09:32 PM
Calling server site script from Javascript using ATLAS s.bussing@symax.nl Microsoft ASP .NET 4 25th Sep 2006 03:29 PM
Atlas client centric script form validaton Suresh.Eddala@gmail.com Microsoft ASP .NET 0 15th Aug 2006 02:52 AM
Client side validation does not fire on deployment server Mark Microsoft ASP .NET 2 13th May 2004 04:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:30 PM.