Wednesday, 10th March 2010     Good Afternoon Register | Login  
MODULES
MODULES
SKINS
SKINS
NEWS
NEWS
FORUMS
FORUMS
FEEDBACK
FEEDBACK

View Article
 
 

Current Articles | Categories | Search | Syndication

Sunday, March 12, 2006
Why can't I move my module to another page?
By SuperUser Account @ 2:58 AM :: 1139 Views ::

Whenever you attempt to move a module to another page the request is ignored.  There have been a number of posts explaining it could be down to a core framework bug, but the most common reason is very simple once you track down the cause!

This is a common mistake in a number of third party and even core modules!  The only modules that show this behaviour utilize a settings page that Inherits ModuleSettingsBase.

The reason the module will not move is because of the following code:

Public Overrides Sub UpdateSettings()

    Try

    'Your update code....

    'Code causing problem....
    Response.Redirect(NavigateURL())

    
End Try
        Catch exc As Exception
    End
Try

End
Sub


Removing the Redirect code allows the parent Module Settings page to handle the redirect, suddenly the module starts to behave as it should!

 

Comments
Currently, there are no comments. Be the first to post one!
Click here to post a comment
   

     
Copyright 2005 - 2009 24DNN.com   |  Terms of Use  |  Privacy Statement
Page generated in 0.125 seconds.