473,508 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using SQL to Store ViewState?

In v1.1 I've created a PageBase.vb class that all
application web pages inherit from. I've overridden
the "LoadPageStateFromPersistenceMedium"
and "SavePageStateToPersistenceMedium" methods of the
base class "System.Web.UI.Page" so that all of the app
page's ViewState is stored as rows in the app's SQL
Server table "ViewStates".

Anyway, all is good in v1.1, but when I deploy to my
hosting service (running v1.0) this all seems to break.
Was it possible to do this in v1.0?

Thanks for any info provided in advance.

Nov 17 '05 #1
1 1887
I dont' think apps compiled with 1.1 will work on 1.0... I think you would
have to specifically redirect it to use the lower version.
Other then that, you will have to post the specific error, where it occurs,
and the relevant code.

"Marv" <mc*******@seasidecon.com> wrote in message
news:08****************************@phx.gbl...
In v1.1 I've created a PageBase.vb class that all
application web pages inherit from. I've overridden
the "LoadPageStateFromPersistenceMedium"
and "SavePageStateToPersistenceMedium" methods of the
base class "System.Web.UI.Page" so that all of the app
page's ViewState is stored as rows in the app's SQL
Server table "ViewStates".

Anyway, all is good in v1.1, but when I deploy to my
hosting service (running v1.0) this all seems to break.
Was it possible to do this in v1.0?

Thanks for any info provided in advance.

Nov 17 '05 #2

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

Similar topics

2
5219
by: Nicole - ASP/C# Beginner | last post by:
Hi, I am trying to store a NameValue collection within a ViewState like this: StoreFilterSelection = ViewState; YEt I recieve an error "Cannot implicityly convert type 'system.type' to...
0
1290
by: wASP | last post by:
I thought it was something relatively simple: ViewState = SomeObj; Then: SomeObj = ViewState; So, in my own code, I have this on the initial load:
0
877
by: Egbert Nierop \(MVP for IIS\) | last post by:
Hi, I have a typed dataset, that is serialized using viewstate. Now when a user adds a new row from a certain grid, the new row is added to the typed dataset. The database TRANSACTION however,...
5
4119
by: Joakim Westman \(Elicit AB\) | last post by:
Hi! I have a page that generates a lot of HTML, and I am considering different solutions to constrain the amount of code that is sent back to the client. One thing I thought about is the...
2
4750
by: george d lake | last post by:
Hi, I have a structure that I need to save between pages. Can not use sessions. I would love to use ViewState, but, I get this error! The type 'TicketSystemV2.ucTicketList+OrderBy' must be marked...
1
1143
by: cmrchs | last post by:
Hi, how do I 'save' a DataRow-object in ViewState or Session-object ? Trying : Session = myDataSet.Tables.Rows; or ViewState = myDataSet.Tables.Rows; results in an error :
4
4504
by: Robert P. | last post by:
I can easily store a one-dimensional array in viewstate ( see Test1 ) If I try storing a multi-dimensional array in the viewstate it's crapping out on me when it goes to serialize the array (not...
12
1837
by: TB | last post by:
Hi All: I am trying to create a variation on the standard datagrid, whereby the datagrid is only shown after pressing some buttons. This reason for this is that I would like to use the same...
4
3380
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
15
2392
by: Joe Fallon | last post by:
I would like to know how you can figure out how much memory a given instance of a class is using. For example, if I load a collection class with 10 items it might use 1KB, and if I load it with...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7118
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...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.