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.0Page State (in edit mode ???)Page State (in edit mode ???)
Previous
 
Next
New Post
5/30/2007 10:34 AM
 

I have been working on a framwork that I will make available for all soon that allows controls or other implementations to be rendered on a page in place of a token the you specify. So Far I the build in implementation this I will be releasing with it are Flash, Image and text replacment.

An implementation such as the Flash allows you to set up the properties on the admin or host pages and specify what the token is to be and what pages (tabs) to use them on. Then you can go to the specified pages and place the token on the page in any location and now when the page loads the token will be replaced with the flash you specified. This is a great way to add extra functionaly to third party modules etc. Also I have made the framwork extensible so any developer who chooses can eaisly create an implementation and plug it in. More to come on this soon...

Ok here is the isssue! I have a IHTTP module that needs to know what state the page is in. I need to know if the page is in edit mode or not. Really I just need to know if the page is in view state or not. I also have access to the portal settings in the IHTTP module. Currently I just to a check on the qurey string

    Dim p As Page = CType(sender, Page)
If p IsNot Nothing Then
If
p.Request("ctl") IsNot Nothing Then
Dim rCtl As String = p.Request("ctl").ToLower
If rCtl = "edit" OrElse rCtl = "module" Then
' do not do token replacment
End
If
End If
End If

This method is not cutting it. Can anyone come up with a better solution?

Thanks


Get your free DotNetNuke Modules Here
 
New Post
5/31/2007 8:39 PM
 

Not exactly sure what you're doing, but -

You could make sure your IHTTP module is only loaded in the "View" controls

or try

If p.Request("ctl") Is Nothing Then

 - do token replacement

 
New Post
6/1/2007 9:38 PM
 

Thanks. This seems to be the best method I seen so far and most likely the way I will implement it.


Get your free DotNetNuke Modules Here
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Page State (in edit mode ???)Page State (in edit mode ???)


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