Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  ViewState Nonfunctional in 3.1.1 Module??
Previous Previous
 
Next Next
New Post 7/31/2007 10:15 AM
User is offline Ken Tarwood
5 posts
www.laticrete.com
10th Ranked


v13wstat3 Nonfunctional in 3.1.1 Module?? 

Hello all,

 

I haven't heard much on this specific topic so I'm hoping someone here can shed light on it.

I'm developing a module to be used with version 3.1.1. I have a few bits of data that I need tied to individual user sessions (when I say user, I'm talking about anonymous unauthenticated users). The information only needs to persist on one page within one display control so my obvious choice was the v13wstat3. I don't receive any exceptions when storing the information in the v13wstat3 ala:

v13wstat3("SortExpression") = "PostDate"
v13wstat3("SortOrder") = " DESC"

However when I try to use those values after a postback they seem to no longer exist (equal to Nothing). The values seem to persist up until the postback occurs (I can read them back right after I assign them).

Has anyone seen this behavior before? DNN's root is setup the same way as all of my other web apps and they all behave normally as far as v13wstat3 goes.

Is there something strange about how the DNN core implements v13wstat3 that could cause this?

I do have this set correctly (AFAIK) in my web.config:

<pages validateRequest="false" enablev13wstat3Mac="true" />

so I'm guessing that is unrelated to the problem.

 

Any help would be greatly appreciated!

 

Thanks,

K

 

 
New Post 7/31/2007 11:48 AM
User is offline Ken Tarwood
5 posts
www.laticrete.com
10th Ranked


Re: v13wstat3 Nonfunctional in 3.1.1 Module?? 

UPDATE:

I checked out the v13wstat3 of the page using Fritz Onion's v13wstat3 decoder for .net 1.1 and instead of decoding it gave me:

There was an error decoding the v13wstat3 string: Key cannot be null. Parameter name: key

 

Not sure if this is a bug in the decoder or a problem with my v13wstat3 but either way it doesn't help much.

I'm not dynamically creating any controls in the module and I checked the module definition to ensure it's cache duration is set to 0. It is. I also tried setting it to -1. Same results. It doesn't seem to matter whether I'm logged in or not either. Either way the v13wstat3 is only preserved on static controls like textboxes and drop-down lists - when I set a v13wstat3 key value manually it is lost.

 

 
New Post 7/31/2007 1:14 PM
User is offline Ken Tarwood
5 posts
www.laticrete.com
10th Ranked


Re: v13wstat3 Nonfunctional in 3.1.1 Module?? 

UPDATE:

I tried to test the faulty v13wstat3 by changing all occurences of "v13wstat3" to "Session". It now seems that session too is broken as I'm getting the same results. I can't return any session variable values after post back. What the heck is going on??

 

 

 
New Post 8/2/2007 7:32 AM
User is offline Ken Tarwood
5 posts
www.laticrete.com
10th Ranked


Re: v13wstat3 Nonfunctional in 3.1.1 Module?? 

I think I found the resolution. I believe all of this has something to do with how DNN caches data pulled from the database. I was passing a filter expression and sort expression that was dynamically concatenated into the WHERE clause of the select statement in the sproc. For some reason requerying with those parameters changed resulted in the same initial data being loaded into the datagrid.

Rather then digging into the issue further, I rewrote the DAL the way it should have been to begin with - the datasource of the datagrid is now a dataview based upon the arraylist that comes back from the DAL. I removed the filter and sort expression params from the sproc and now are using them as arguments of the dataview. This works fine and is obviously a better alternative than somehow trying to hack around with the caching - the data is always the same, it's how it is viewed in the datagrid that's important for this project.

 

Regards,

K

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  ViewState Nonfunctional in 3.1.1 Module??
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP