Wednesday, March 28, 2012

Ajax Update Panel not working...

hi,

I am using the below coding in Inline code..

<

body><formid="form1"runat="server"><div> <asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager> <asp:UpdatePanelID="UpdatePanel1"runat="server"><ContentTemplate>

<asp:ButtonID="Button1"runat="server"OnClick="Button1_Click1"Text="Button"/><asp:LabelID="Label1"runat="server"Text="Label"></asp:Label></ContentTemplate></asp:UpdatePanel>

</div></form>

</

body>

in code behind

protected

voidButton1_Click(object sender,EventArgs e)

{

Label1.Text =

"Refresh at " & DateTime.Now.ToString();

}

But when I run this page and click on the Button The Page is Posted back again and again..

Please Give quick answer it's urgent......

Thanks

Rocky..

Hi,

did you make the necessary changes to the web.config in order to enable ASP.NET AJAX?


yes ,

In web.config i fix

<

xhtmlConformancemode="Legacy"/>

but i still get the problem...


Hi,

did you apply all the other settings? Specialized sections, handlers etc. ?


will you please tell me briefly about all these settings so that my update panel will work...

if possible then code please for web.config file...

Thanks

Rocky


Hi,

please check theonline documentation topic.

As an alternative, you could compare your web.config with the one of the ASP.NET AJAX-enabled website installed as a Visual Studio template, and make the corresponding changes.


Any other setting I have to do except web.config documentation file in the web site and in eb.config??

Thanks

Rocky


Hi,

it should be enough. Be sure that you've referenced the System.Web.Extensions assembly in your website.

No comments:

Post a Comment