<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-602850767119300869.post3891423165444792811..comments</id><updated>2010-03-10T09:53:32.960-05:00</updated><title type='text'>Comments on Web.NET: ScriptManager vs. ToolkitScriptManager</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.turlov.com/feeds/3891423165444792811/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/602850767119300869/3891423165444792811/comments/default'/><link rel='alternate' type='text/html' href='http://blog.turlov.com/2008/05/scriptmanager-vs-toolkitscriptmanager.html'/><author><name>Alexander Turlov</name><uri>http://www.blogger.com/profile/03810972326430206042</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-602850767119300869.post-4278226255300376291</id><published>2010-02-02T10:18:03.262-05:00</published><updated>2010-02-02T10:18:03.262-05:00</updated><title type='text'>Hello

From my practice I experienced a situation ...</title><content type='html'>Hello&lt;br /&gt;&lt;br /&gt;From my practice I experienced a situation when using TSM increased page load performance. There was a single hint - set &lt;br /&gt;&lt;br /&gt;LoadScriptsBeforeUI = false</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/602850767119300869/3891423165444792811/comments/default/4278226255300376291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/602850767119300869/3891423165444792811/comments/default/4278226255300376291'/><link rel='alternate' type='text/html' href='http://blog.turlov.com/2008/05/scriptmanager-vs-toolkitscriptmanager.html?showComment=1265123883262#c4278226255300376291' title=''/><author><name>Виктор</name><uri>http://www.blogger.com/profile/09572928444670093763</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.turlov.com/2008/05/scriptmanager-vs-toolkitscriptmanager.html' ref='tag:blogger.com,1999:blog-602850767119300869.post-3891423165444792811' source='http://www.blogger.com/feeds/602850767119300869/posts/default/3891423165444792811' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-602850767119300869.post-6365644861554080497</id><published>2008-12-15T12:53:00.000-05:00</published><updated>2008-12-15T12:53:00.000-05:00</updated><title type='text'>Hello, I am modifying a web application that also ...</title><content type='html'>Hello, I am modifying a web application that also uses ajaxToolkit:ToolkitScriptManager; specifically, I need to make some WebService methods (defined in separate .asmx files) accessible through javascript from the client.&lt;BR/&gt;&lt;BR/&gt;This, simply put, doesn't work; but if I replace the ToolkitScriptManager with the standard asp:ScriptManager, it works again.&lt;BR/&gt;&lt;BR/&gt;So it would seem that the ToolkitScriptManager has the significant drawback of preventing association of WebServices to client script by normal means; can anyone confirm that? I could not find any documentation of this anywhere on the net.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/602850767119300869/3891423165444792811/comments/default/6365644861554080497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/602850767119300869/3891423165444792811/comments/default/6365644861554080497'/><link rel='alternate' type='text/html' href='http://blog.turlov.com/2008/05/scriptmanager-vs-toolkitscriptmanager.html?showComment=1229363580000#c6365644861554080497' title=''/><author><name>Emanuele Ciriachi</name><uri>http://www.blogger.com/profile/17503321778796520550</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.turlov.com/2008/05/scriptmanager-vs-toolkitscriptmanager.html' ref='tag:blogger.com,1999:blog-602850767119300869.post-3891423165444792811' source='http://www.blogger.com/feeds/602850767119300869/posts/default/3891423165444792811' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-602850767119300869.post-4187642904645019780</id><published>2008-06-20T10:23:00.000-04:00</published><updated>2008-06-20T10:23:00.000-04:00</updated><title type='text'>Hi All,I got solution for the above issue. I was t...</title><content type='html'>Hi All,&lt;BR/&gt;&lt;BR/&gt;I got solution for the above issue. I was trying to set focus using the code  &lt;BR/&gt;&lt;BR/&gt;this.ScriptManager1.SetFocus(myControlName.ClientID); &lt;BR/&gt;&lt;BR/&gt;and I wrote this code in my SelectedIndexChanged Event Function. That time this code didn't work.&lt;BR/&gt;&lt;BR/&gt; Now I changed this code to Page Load Function i.e.&lt;BR/&gt;&lt;BR/&gt;    protected void Page_Load(object sender, EventArgs e)&lt;BR/&gt;    {&lt;BR/&gt;        if (!IsPostBack)&lt;BR/&gt;        {&lt;BR/&gt;                 this.ScriptManager1.SetFocus(myControlName.ClientID);&lt;BR/&gt;        }&lt;BR/&gt;        else&lt;BR/&gt;        {&lt;BR/&gt;                this.ScriptManager1.SetFocus(GetPostBackControl(this.Page).ClientID);&lt;BR/&gt;        }&lt;BR/&gt;    }&lt;BR/&gt;&lt;BR/&gt;Here I am using a function GetPostBackControl() to identify the current postbacking control and I am setting focus to the same control. If you want to move focus to any other control, just use a Switch Statment.&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;    public static System.Web.UI.Control GetPostBackControl(System.Web.UI.Page page)&lt;BR/&gt;    {&lt;BR/&gt;        Control control = null;&lt;BR/&gt;        string ctrlname = page.Request.Params["__EVENTTARGET"];&lt;BR/&gt;        if (ctrlname != null &amp;&amp; ctrlname != String.Empty)&lt;BR/&gt;        {&lt;BR/&gt;            control = page.FindControl(ctrlname);&lt;BR/&gt;        }&lt;BR/&gt;        // if __EVENTTARGET is null, the control is a button type and we need to&lt;BR/&gt;        // iterate over the form collection to find it&lt;BR/&gt;        else&lt;BR/&gt;        {&lt;BR/&gt;            string ctrlStr = String.Empty;&lt;BR/&gt;            Control c = null;&lt;BR/&gt;            foreach (string ctl in page.Request.Form)&lt;BR/&gt;            {&lt;BR/&gt;                // handle ImageButton controls ...&lt;BR/&gt;                if (ctl.EndsWith(".x") || ctl.EndsWith(".y"))&lt;BR/&gt;                {&lt;BR/&gt;                    ctrlStr = ctl.Substring(0, ctl.Length - 2);&lt;BR/&gt;                    c = page.FindControl(ctrlStr);&lt;BR/&gt;                }&lt;BR/&gt;                else&lt;BR/&gt;                {&lt;BR/&gt;                    c = page.FindControl(ctl);&lt;BR/&gt;                }&lt;BR/&gt;                if (c is System.Web.UI.WebControls.Button ||&lt;BR/&gt;                         c is System.Web.UI.WebControls.ImageButton)&lt;BR/&gt;                {&lt;BR/&gt;                    control = c;&lt;BR/&gt;                    break;&lt;BR/&gt;                }&lt;BR/&gt;            }&lt;BR/&gt;        }&lt;BR/&gt;        return control;&lt;BR/&gt;    }&lt;BR/&gt;&lt;BR/&gt;Thank you,</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/602850767119300869/3891423165444792811/comments/default/4187642904645019780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/602850767119300869/3891423165444792811/comments/default/4187642904645019780'/><link rel='alternate' type='text/html' href='http://blog.turlov.com/2008/05/scriptmanager-vs-toolkitscriptmanager.html?showComment=1213971780000#c4187642904645019780' title=''/><author><name>Lesh</name><uri>http://www.blogger.com/profile/07504856385587860375</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.turlov.com/2008/05/scriptmanager-vs-toolkitscriptmanager.html' ref='tag:blogger.com,1999:blog-602850767119300869.post-3891423165444792811' source='http://www.blogger.com/feeds/602850767119300869/posts/default/3891423165444792811' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-602850767119300869.post-902561652491573548</id><published>2008-06-19T14:46:00.000-04:00</published><updated>2008-06-19T14:46:00.000-04:00</updated><title type='text'>Hi All,I need one help from you. I am trying to se...</title><content type='html'>Hi All,&lt;BR/&gt;&lt;BR/&gt;I need one help from you. I am trying to set focus todifferent controls after my different PostBack events, butthis.ScriptManager1.SetFocus(myControlName.ClientID); is not working.&lt;BR/&gt;&lt;BR/&gt;In my ASPX page I have RAD CONTROLS (RadComboBox and RadCalendar) and alsoI am using AjaxControlToolkit Controls (ToolkitScriptManager andModalPopupExtender) also.&lt;BR/&gt;&lt;BR/&gt;In my page, RadComboBox is inUpdatePanel - ContentTemplate area and on its SelectedIndexChangedfunction I am trying to set focus to another Control using the abovecode:&lt;BR/&gt;&lt;BR/&gt;this.ScriptManager1.SetFocus(myControlName.ClientID);&lt;BR/&gt;&lt;BR/&gt;but this is not working... Do anyone know any solution for this?&lt;BR/&gt;&lt;BR/&gt;Can I use ToolkitScriptManager for set focus?&lt;BR/&gt;&lt;BR/&gt;Thanks...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/602850767119300869/3891423165444792811/comments/default/902561652491573548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/602850767119300869/3891423165444792811/comments/default/902561652491573548'/><link rel='alternate' type='text/html' href='http://blog.turlov.com/2008/05/scriptmanager-vs-toolkitscriptmanager.html?showComment=1213901160000#c902561652491573548' title=''/><author><name>Lesh</name><uri>http://www.blogger.com/profile/07504856385587860375</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.turlov.com/2008/05/scriptmanager-vs-toolkitscriptmanager.html' ref='tag:blogger.com,1999:blog-602850767119300869.post-3891423165444792811' source='http://www.blogger.com/feeds/602850767119300869/posts/default/3891423165444792811' type='text/html'/></entry></feed>