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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listviewstate issueviewstate issue
Previous
 
Next
New Post
10/26/2006 1:38 PM
 

i am modifying the UDT module to enhance alot of it's features. i am having problems with viewstate getting lost between postbacks. if i am on page 3 of a UDT and i click the print icon, it renders the default view and page 1 of  76 in the grid. even though it is sorted on the fourth column and i am on page 3 of 6.  also, when i try to set something into viewstate like this.

Request.Viewstate("CurrentFilter") = strCurrentFilter

i get an error telling me the viewstate is readonly.

Has anyone seen this?

 

richard

 

 
New Post
11/1/2006 9:49 AM
 

i guess no one has had this problem. i found out what is causing it.

 double post back is coming from  the pagebase.ascx.vb  it has to do with injecting client script.

the paging control doesn't update the urls unless you turn it off ctrlpagingcontrol.visible=false and then turn it back on. there isn't a refresh method or redraw. it's render method is looking for a htlmwriter object that doesn't exist in the sorting code. so it is easier to turn it off. update control. then turn it back on. it updates all of the links correctly and it isn't noticable on the user side. wierd.

the navigateurl function mangles the query parameters (even if encrypted). it looks like a regex issue. i just don't have time to track it down.

i solved all of the sorting and paging with cookies.  query is applied and bidrectional sorting is applied on the query and cleared to the defaults on clearing the query. i really hate doing that but, it works for now. i posted this in the talk about it originally because i didn't think it was in the UDT mod. someone moved it here so i tracked down what was happening myself. these are core issues that can be addressed or at least documented so we can work around them.

 

richard

 

 
New Post
11/1/2006 10:09 AM
 

I used the following workaround:

Instead of using viewstate I add the search statement to ctlPagingControl.QuerystringParams. It is ugly but works.

 
New Post
11/2/2006 10:37 AM
 

when you use ctlpagingcontrol.QuerystringParams and send a your query string. is gets mangled after 4 or 5 postbacks. for some reason it injects a square for this '% in the string. it has something to do with navigateurl. your string is sent there as a 2 element array with some info the paging control needs.

i had to resort to storing the encrypted string in a cookie to get it to work consistently. i didn't want to put an unencrypted query string in a ccokie.

 

richard

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listviewstate issueviewstate issue


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