Wednesday, March 28, 2012

updatepanel

hi all.

actually m very new to ajax and trying to learnat my own.

i hav installed ajax tool kit and even the dll of ajax.

i have a ajax toolkit enabled website. but in that m not getting the tag <asp:scriptmanager>

as i want to use update panel in my application.

pl help...

Hi,

Your Toolkit controls don't need to be on an updatepanel. The Toolkit-controls don't even need a scriptManager i guess (correct me if I'm wrong).

BUT when you want to use an UpdatePanel, there should be (only) ONE ScriptManager on the top of the page.

Like in the example below:

<%@. Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" 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"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> </div> </form></body></html>
Please let us know if things work out allright!
Good luck
Wim

hi...

thnks 4 ur reply.

actually my problem was while using the updatepanel, it is giving error as i write script manager tag.

and eror like some system.web.extension is missing. i just uninstall everything and install again...and now i can use both ajax toolkit and ajax ext tools.

thnks again 4 ur prompt reply.Smile


deblendewim:

Your Toolkit controls don't need to be on an updatepanel. The Toolkit-controls don't even need a scriptManager i guess (correct me if I'm wrong).

Hi,

I'm afraid that it's necessary.

ScriptManager injects Microsoft Script Library into the generated page, this library is the core of the ajax. And the ControlToolKit will use it.

No comments:

Post a Comment