CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
Explore    Item Entry    Members   
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/19/2006 12:31:11 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 16 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
talisker78
Asp.Net User
UpdateProgress in Master Page12/19/2006 12:31:11 AM

0/0

I haven't found a discussion regarding this yet, and I've searched for quite a bit.  I've come up with a solution that resolved the issue, but it's not exactly elegant.

After upgrading from the Betas to CTP, I've come across the following client side error, which never appeared before: (nstuff debugging info)
________________________________

 Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type 

at http://localhost/[AppName]/ScriptResource.axd?d=u_zg0lxZbCGICB2KkUULAzBlgWJw9WItXUSrW_r9mEP1jnmhPKIpcfnOBSKPZhBU4C2cNfYdPSyK4qOW1AirYrmZDRaJMV_UKr2pdXxNfCY1&t=633018166467500000 [2811]
    Sys$Component$create
    code: throw e
at http://localhost/[AppName]/ [294]
    JScript anonymous function
    code: $create(Sys.UI._UpdateProgress, {"associatedUpdatePanelId":null,"displayAfter":500,"dynamicLayout":true}, null, null, $get("ctl00_updateProgress2"))
at http://localhost/[AppName]/ScriptResource.axd?d=u_zg0lxZbCGICB2KkUULAzBlgWJw9WItXUSrW_r9mEP1jnmhPKIpcfnOBSKPZhBU4C2cNfYdPSyK4qOW1AirYrmZDRaJMV_UKr2pdXxNfCY1&t=633018166467500000 [2492]
    JScript anonymous function
    code: evt[i](source, args)
at http://localhost/[AppName]/ScriptResource.axd?d=u_zg0lxZbCGICB2KkUULAzBlgWJw9WItXUSrW_r9mEP1jnmhPKIpcfnOBSKPZhBU4C2cNfYdPSyK4qOW1AirYrmZDRaJMV_UKr2pdXxNfCY1&t=633018166467500000 [3854]
    Sys$_Application$_doInitialize
    code: handler(this, Sys.EventArgs.Empty)
at http://localhost/[AppName]/ScriptResource.axd?d=u_zg0lxZbCGICB2KkUULAzBlgWJw9WItXUSrW_r9mEP1jnmhPKIpcfnOBSKPZhBU4C2cNfYdPSyK4qOW1AirYrmZDRaJMV_UKr2pdXxNfCY1&t=633018166467500000 [49]
    JScript anonymous function
    code: return method.apply(instance, arguments)

_______________________________________

There were no code changes on my app since I upgraded to the CTP. 

 I isolated the problem to be the following - I have an UpdateProgress control in the master page.  On pages where there is an update panel in the body - the above Javascript exception is not encountered.  On pages without - the exception is hit.  I initially addressed this on a page by page basis to confirm this was the cause - simply placing an empty UpdatePanel, generically named and without any real purpose - and this solved the problem and the error was not hit.

 For simplicity, I just threw an UpdatePanel, again empty - as in the following - in the Master Page, which solved the problem across the board.

<atlas:UpdatePanel ID="UpdatePanel1" runat="server"></atlas:UpdatePanel>

I'm not concerned here, since the solution is working.  However, I am puzzled by the cause and resolution - is there now a requirement to include UpdatePanel in order to utilize an UpdateProgress?  This may seem odd - in most cases one really is not useful without the other, however, placing my UpdateProgress in the Master page was simple enough - it's utilized when needed, and if not needed, it's not exactly a burden to have sitting around.  I just found it odd that I had to fudge in a useless control in order to avoid this error. 

I apologize if this post was a bit verbose and meandering. I spent a bit of time trying to figure this out, and after benefitting so much from all the other posts on this board, I figured I'd try to contribute a bit. 

1 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

Ajax Controls not Recognized in code view in a Child of a Master Page ... Ajax Controls not Recognized in code view in a Child of a Master Page: '____ ' is not a known element, > ROOT > ... updateprogress control not showing template ...
ASP.NET AJAX > Overview > The UpdatePanel and UpdateProgress Controls ... To use an UpdatePanel control in a master page, you must decide how to include ... In this example, a property named LastUpdate is defined on the master page and ...
ASP.NET AJAX > The UpdateProgress Control Using the UpdatePanel Control with Master Pages ... the UpdateProgress control to display status during the partial-page rendering. In This Section ...
UpdateProgress that work only at second data sending - ASP.NET Forums I put in my website an updateprogress which present an anigif image during loading action... Someone tell me the problem maybe i sue Master page...
Walkthrough: Creating an AJAX-enabled Web Site ... creates a basic ASP.NET Web site with a Web page that illustrates some features of the ASP.NET AJAX Library that ... UpdateProgress ... Creating Master/Detail ...
MasterPage Class (System.Web.UI) Any other markup and controls in the master page are unaffected. ... UpdateProgress Class. UrlPropertyAttribute Class. UserControl Class ...
Page 2 - Delving Deeper into Constructing ASP.NET AJAX-based Applications ... MasterPage.master master page so that users are given a consistent ... UpdateProgress contents will appear after the asynchronous update progress has been ...
4GuysFromRolla.com ... "real-world" demo that uses Ajax techniques to display a master/detail report. ... There's also an UpdateProgress control on the page that uses an animated GIF in ...
ASP.net Ajax (Part2): AJAX Extensions Controls - Articles Add to each page ScriptManager (Or only once in the Master Page) ... UpdateProgress from the Toolbox and put it in the AJAXMasterpage.master before ...
Ajax Programming :: Problem: Master Page in Ajax Enabled Website ... Application for Ajax Enabled Website and in. that i have used master page. ... Error 2 Element 'UpdateProgress' is not a known element. This can. occur if ...


 
All Times Are GMT