473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Strange viewstate problem with MCMS

I have an MCMS website that I inherited. It was originally built
in .NET 1.1 and then ported to .NET 2.0. They built it with inherited
base classes to mimic what is now done with master pages.

So much for the background. I'm building a new page that's pulling
information from a database. The initial input has a dropdown list
that populates dynamically and a couple labels that I'm using for
housekeeping duties. The problem is that neither the dropdown or the
labels maintain state on postback.

To verify that it's not the form itself, I created a new template page
that does not use the original format. It just has my new form. This
works fine. When I insert it into the existing page framework, the
viewstate does not work.

I checked to see that there are no page directives that disable
viewstate. Other than that, I'm really kind of stumped on where to
look next.

Any ideas are most appreciated.

Thanks,

Mark B

Mar 16 '07 #1
3 1272
Do a search at the project level for viewstate being turned off, you have
probably just looked at the page in question. It may be turned disabled in
the custom framework itself.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Mark B" <ma*******@yahoo.comwrote in message
news:11*********************@p15g2000hsd.googlegro ups.com...
>I have an MCMS website that I inherited. It was originally built
in .NET 1.1 and then ported to .NET 2.0. They built it with inherited
base classes to mimic what is now done with master pages.

So much for the background. I'm building a new page that's pulling
information from a database. The initial input has a dropdown list
that populates dynamically and a couple labels that I'm using for
housekeeping duties. The problem is that neither the dropdown or the
labels maintain state on postback.

To verify that it's not the form itself, I created a new template page
that does not use the original format. It just has my new form. This
works fine. When I insert it into the existing page framework, the
viewstate does not work.

I checked to see that there are no page directives that disable
viewstate. Other than that, I'm really kind of stumped on where to
look next.

Any ideas are most appreciated.

Thanks,

Mark B

Mar 18 '07 #2
I was able to find where viewstate was being turned off that affected
the page. It still doesn't automatically store viewstate but I can add
items to the viewstate so it's a step in the right direction. Please
let me know if you can think of any other ideas.

Thanks,

Mark B
On Mar 18, 4:56 pm, "Alvin Bruney [MVP]" <some guy without an email
addresswrote:
Do a search at the project level forviewstatebeing turned off, you have
probably just looked at the page in question. It may be turned disabled in
the custom framework itself.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon andwww.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley

"Mark B" <mark_b...@yahoo.comwrote in message

news:11*********************@p15g2000hsd.googlegro ups.com...
I have anMCMSwebsite that I inherited. It was originally built
in .NET 1.1 and then ported to .NET 2.0. They built it with inherited
base classes to mimic what is now done with master pages.
So much for the background. I'm building a new page that's pulling
information from a database. The initial input has a dropdown list
that populates dynamically and a couple labels that I'm using for
housekeeping duties. The problem is that neither the dropdown or the
labels maintain state on postback.
To verify that it's not the form itself, I created a new template page
that does not use the original format. It just has my new form. This
works fine. When I insert it into the existing page framework, the
viewstatedoes not work.
I checked to see that there are no page directives that disable
viewstate. Other than that, I'm really kind of stumped on where to
look next.
Any ideas are most appreciated.
Thanks,
Mark B

Mar 19 '07 #3
>It still doesn't automatically store viewstate
There's more digging you need to do, it's probably overridden somewhere
else, I'd go hunt thru the *.config files and in the bowels of the
framework. Do you have current documentation? These *tricks* should be
documented thoroughly because they change the behavior of the framework.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Mark B" <ma*******@yahoo.comwrote in message
news:11**********************@d57g2000hsg.googlegr oups.com...
>I was able to find where viewstate was being turned off that affected
the page. It still doesn't automatically store viewstate but I can add
items to the viewstate so it's a step in the right direction. Please
let me know if you can think of any other ideas.

Thanks,

Mark B
On Mar 18, 4:56 pm, "Alvin Bruney [MVP]" <some guy without an email
addresswrote:
>Do a search at the project level forviewstatebeing turned off, you have
probably just looked at the page in question. It may be turned disabled
in
the custom framework itself.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon andwww.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley

"Mark B" <mark_b...@yahoo.comwrote in message

news:11*********************@p15g2000hsd.googlegr oups.com...
>I have anMCMSwebsite that I inherited. It was originally built
in .NET 1.1 and then ported to .NET 2.0. They built it with inherited
base classes to mimic what is now done with master pages.
So much for the background. I'm building a new page that's pulling
information from a database. The initial input has a dropdown list
that populates dynamically and a couple labels that I'm using for
housekeeping duties. The problem is that neither the dropdown or the
labels maintain state on postback.
To verify that it's not the form itself, I created a new template page
that does not use the original format. It just has my new form. This
works fine. When I insert it into the existing page framework, the
viewstatedoes not work.
I checked to see that there are no page directives that disable
viewstate. Other than that, I'm really kind of stumped on where to
look next.
Any ideas are most appreciated.
Thanks,
Mark B


Mar 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Marina | last post by:
Hi, When posting to a particular ASP.NET page from ASP, we get a generic DNS error when one of the form variables gets beyond around 1290 characters or so. The error can litterally be eliminated...
0
by: Apogee | last post by:
I have encountered a very strange behavior of the vsnet: ASP.net: I set the ViewState of the Document to false, just to see that Literal controls need the ViewState, so I turned it on again....
9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
0
by: Kris Vanherck | last post by:
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net...
1
by: rgrandidier | last post by:
I am dynamically adding an HtmlInputHidden element with different values. The problem is the first time I add it with a given value and submit it then change the value within the Page_Load event it...
4
by: William Sullivan | last post by:
I have an extremely weird problem that I have no idea how to approach. I have a simple page with a search textbox and a search button. The button causes a postback, where I perform the search and...
0
by: davidw | last post by:
All my pages are created dynamically. So I have a controlholder control, I put it in a page, and pass it some parameters, it will load control by with loadcontorl. It is a bit complex. At the...
1
by: cuj0 | last post by:
Does anyone know what might cause the "The viewstate is invalid for this page and might be corrupted" error to occur every time users try to do something that results in a postback on a particular...
0
by: AndreasJ.Mueller | last post by:
Hi Since we have moved our application (.NET 1.1) to a new server a few weeks ago we have seen in the event-logs multiple errors (which in itself is not my current problem, so I no...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.