Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ASP.Net 2.0 + AJAX 1.0 + AjaxToolKit + XHTML troublesASP.Net 2.0 + AJAX 1.0 + AjaxToolKit + XHTML troubles
Previous
 
Next
New Post
5/2/2007 12:12 AM
 

Though that doesn't sound like a bad idea at all, I don't think it's necessary. I have another page with a VERY similar structure and function. It uses almost all the same controls (and in the same way) but manages a different list of data. That page works fine though. It does look a bit strange (font-size and misaligned tab borders) which tells me something outside my code has changed (like implementing the new DOCTYPE.xml files instead of declaring my DOCTYPE locally in the UserControl, or something with my external CSS file. I can't figure out what the difference is functionally between the two pages though. One more reason I suspect I'm trying to do something I shouldn't be with the above code, while it runs under DNN. Keep in mind, the code above runs fine on my DNN site in a standalone .aspx page.

Any of that throw any new flags? The reason I had transitional in the web.config was because of articles like below. You're saying that's improper though, why?

http://vladan.strigo.net/Projects/MSAjaxDotNetNuke4/HowToEnableMSAjaxinDotNetNuke4/tabid/85/Default.aspx

http://drowningintechnicaldebt.com/blogs/dennisbottjer/default.aspx

http://msdn2.microsoft.com/en-us/library/ms228268.aspx

 
New Post
5/2/2007 4:47 AM
 

I've now deployed the app on an entirely seperate server. Along the way I got the idea to use FireFox+FireBug and setup "break on all JavaScript errors". What I found was that the broken page throws 1 error the working page doesn't. I'm guessing this error is indicative of the greater problem.

Right now I'm wondering/wishing I could tell DNN to let me take care of the ScriptManager as I suspect that's where the trouble is. Perhaps WHERE it's included?

It occurs in ScriptResource.axd. Below is a chunk of the code. The offending line is in Bold.

get_DynamicServiceMethod : function() {
91return this._DynamicServiceMethod;},
92set_DynamicServiceMethod : function(value) {
93if (this._DynamicServiceMethod != value) {
94this._DynamicServiceMethod = value;this.raisePropertyChanged('DynamicServiceMethod');}
97AjaxControlToolkit.DynamicPopulateBehaviorBase.registerClass('AjaxControlToolkit.DynamicPopulateBehaviorBase', AjaxControlToolkit.BehaviorBase);AjaxControlToolkit.ControlBase = function(element) {
98AjaxControlToolkit.ControlBase.initializeBase(this, [element]);this._clientStateField = null;this._callbackTarget = null;this._onsubmit$delegate = Function.createDelegate(this, this._onsubmit);this._oncomplete$delegate = Function.createDelegate(this, this._oncomplete);this._onerror$delegate = Function.createDelegate(this, this._onerror);}
99AjaxControlToolkit.ControlBase.prototype = {
100initialize : function() {
101AjaxControlToolkit.ControlBase.callBaseMethod(this, "initialize");if (this._clientStateField) {
102this.loadClientState(this._clientStateField.value);}
103if (typeof(Sys.WebForms)!=="undefined" && typeof(Sys.WebForms.PageRequestManager)!=="undefined") {
104Array.add(Sys.WebForms.PageRequestManager.getInstance()._onSubmitStatements, this._onsubmit$delegate);} else {
105$addHandler(document.forms[0], "submit", this._onsubmit$delegate);}
106},
107dispose : function() {
108if (typeof(Sys.WebForms)!=="undefined" && typeof(Sys.WebForms.PageRequestManager)!=="undefined") {
109Array.remove(Sys.WebForms.PageRequestManager.getInstance()._onSubmitStatements, this._onsubmit$delegate);} else {
110$removeHandler(document.forms[0], "submit", this._onsubmit$delegate);}
111AjaxControlToolkit.ControlBase.callBaseMethod(this, "dispose");},
112findElement : function(id) {
113return $get(this.get_id() + '_' + id.split(':').join('_'));},
114get_clientStateField : function() {
115return this._clientStateField;},
116set_clientStateField : function(value) {
117if (this.get_isInitialized()) throw Error.invalidOperation(AjaxControlToolkit.Resources.ExtenderBase_CannotSetClientStateField);this._clientStateField = value;},
118loadClientState : function(value) {
119},
 
New Post
5/2/2007 7:30 AM
 

Searching... Reading... Experimenting... SUCCESS!!!!

I'm not 100% sure what the fix was, but here's essentially what I did:

  1. Stripped my TabContainer and Tabs
  2. Found the page worked!
  3. Implemented an Accordion instead of TabContainer
  4. Noticed some issues with my update panels and restructured layout to provide more granular control of updates using more update panels
  5. Found I couldn't control updates properly and started searching forums
  6. Discovered an article that provides the code snippet below (article A)
  7. Disabled the "Enable Partial Updates" for the control module
  8. Implemented code in (article A) in my page_load event

article A

             If DotNetNuke.Framework.AJAX.IsInstalled Then
                DotNetNuke.Framework.AJAX.RegisterScriptManager()
                Label2.Text = "AJAX Is Installed"
            Else
                Label2.Text = "AJAX Is not installed"
            End If

All said, I think the trouble was a matter of having UpdatePanel's embedded inside Panel's, inside TabContainer in combination with a Master/Content configuration and letting DNN try to manage my ScriptManager.

Hope this thread helps someone else.

 
New Post
5/2/2007 7:43 AM
 

rainabba wrote

The reason I had transitional in the web.config was because of articles like below. You're saying that's improper though, why?

Gotcha: Don't use <xhtmlConformance mode="Legacy"/> with ASP.NET AJAX

However, glad you got it working.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
8/19/2009 10:33 AM
 

Thank you for posting this fix! 

I implemented the following to help my module.  The module actually wraps another control that has the AJAX tab control and no DNN references (the control is totally decoupled from DNN).  I used the following in my module (which does have a tie to DNN) to determine if the script manager installed on the page.

Protected Overrides Sub OnInit(ByVal e As EventArgs)

'AJAX FIX: Must have this to determine if the script manager is available; otherwise the

'ajax controls will not appear. (this happens in production but not in dev.)

If DotNetNuke.Framework.AJAX.IsInstalled Then

DotNetNuke.Framework.AJAX.RegisterScriptManager()

End If

'Does not work; however, may provide

'If AjaxControlToolkit.ScriptControlBase.ScriptManager.GetCurrent(Me.Page) Is Nothing Then

' Me.Controls.Add(New AjaxControlToolkit.ScriptControlBase.ScriptManager())

'End If

MyBase.OnInit(e)

End Sub

Hope this helps!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ASP.Net 2.0 + AJAX 1.0 + AjaxToolKit + XHTML troublesASP.Net 2.0 + AJAX 1.0 + AjaxToolKit + XHTML troubles


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out