Все вопросы: [viewstate]

216 вопросов

похожие теги: failed-to-load-viewstate
0
голосов
1ответов
708 просмотров

Asp.net dynamic table content is removed when saved in Viewstate

Set content of table ... ViewState["Table1"] = Table1; // When remove this line, table is seen on the page. ... What should I do?

2
голосов
1ответов
228 просмотров

Accessing the viewstate of a child control

I want to extract information in the viewstate of a child control. This control belongs to a third party and i do not have access to the source code. Is this possible?

3
голосов
2ответов
4065 просмотров

asp.net Invalid character in a Base-64 string

I have a c# mobile site and have a problem with some of mobile clients. I have posted a trace below but basically browser of phone or wap gateway that phone connects to internet url encodes viewstate hidden input in the form. /wEPDwULLTExNTMyOTcwOTBkGAEFBlBtTGlzdA9nZA== becomes %2FwEPDw...

2
голосов
3ответов
712 просмотров

Is there a way to expire the viewstate?

I want to know is there any way to expire the viewstate after a particuler given time.

1
голосов
1ответов
241 просмотров

ViewState and Security Settings generating errors

I have an odd reoccurring error that I believe is related to View State and security settings. This error appears on one of my client’s site between 1 to 6 times a day: Source: System.Web Error in: /detail.aspx?CaseID=1852 Error Message: Unable to validate data. Stack Trace: at System.Web.Con...

0
голосов
2ответов
1793 просмотров

Maintaining usercontrol state on dynamically added usercontrols

I have a page that dynamically creates multiple usercontrols on the page_init event, and adds it to a placeholder on the page. The usercontrols themselves databind to a repeater on page_init to a collection of about 10 strings, which outputs a div for each item. There's also a "view more" link ...

0
голосов
2ответов
832 просмотров

Deleting GridView’s rows

Let’s assume that ( the first time page is created ) I manually bind GridView to some data source. Is there’s a way to configure GridView to delete a row ( by pressing row’s delete button) without handling any of the delete events ( in other words, we wouldn’t try to delete a row in data source...

2
голосов
1ответов
824 просмотров

Viewstate in flat files vs viewstate in SQLserver

I wrote my own PageStatePersister class based on SessionPageStatePersister which writes the most recent 10 Viewstates for a session to a shared disk. I figure this will scale better than  keeping Viewstate in session since all web servers have access to it, they won't have to deal with expiration...

10
голосов
6ответов
10879 просмотров

How to minimize viewstate size of a page in asp.net?

How to minimize viewstate size of a page in asp.net? Please help.

0
голосов
2ответов
2457 просмотров

Problems reloading the viewstate of my dynamically created ASP.Net controls

I have an ajax toolkit tab container on my ASP.Net page, and I am dynamically creating the tabs in the code behind (at runtime, I have a variable number of tabs, each with the same layout but different header text and body data). Each tab contains only one control, which is a user control I buil...

0
голосов
2ответов
1138 просмотров

asp.net server side viewstate without sessions

So I've done my best to minimize my viewstate on my ASP.net ajax application, http compression, disabling viewstate in hidden fields, but would like to go further. So after researching it seems that there are two approaches a) use the ASP.net 1.x way which uses LoadPageStateFromPersistenceMediu...

0
голосов
1ответов
532 просмотров

Dynamic Controls Created from Database Data

I have been working for a couple days trying to figure out how to do this. Working in C# I have a List of data being pulled from various database tables. I want to create different DropDownLists from this data that will persist across PostBacks. One way I was able to tinker through this was to...

1
голосов
2ответов
202 просмотров

Asp.net MVC with ViewState?

Just read blog post of Maarten Balliauw. Wanted to ask will <%Html.Serialize("person", Model); %> return bunch of 'don`t-stop-debugging-heavily-server-sided' RAD controls? Is that's a good idea to include this? If so - what kind of usage would be appropriate?

1
голосов
3ответов
1474 просмотров

How ASP.NET MVC removes ViewState from application?

I'm looking in ASP.NET MVC source and don't found where ViewState is removed from application. (The ViewState is not just disabled, it is removed of all pages in application) Thanks! Update: Is remove Viewstate hidden field possible?

2
голосов
1ответов
446 просмотров

ASP.Net viewstate questions on form postbacks

Let's assume I have a very simple form, with a submit button and a dropdown list. When I change the list entry and hit submit, at what stage in the postback processing does the viewstate reflect my changed list entry? According to O'Reilly's Learning ASP.Net 3.5, there are two loads taking plac...

1
голосов
2ответов
839 просмотров

Why is my view state not storing a dynamic control adding using Controls.Add?

I'm trying to load a control depending on a category ID that is selected from a drop down list. This is this code i have within a switch statement to show a usercontrol. This was the only way i knew of doing it and having reusable views. I'm open to other methods as i've read a few people saying...

0
голосов
1ответов
380 просмотров

Web Methods works with html button but not asp:button

I'm am looking at the code in this article on Web methods and I've tried to implement it. The article works as designed but when I swap the HTML button for an asp:button I get different results. CODE behind: [WebMethod] public static string GetCurrentDate() { retur...

6
голосов
3ответов
7393 просмотров

ASP.NET How ViewState works

I have a textbox and button on my .aspx page. The EnableViewState property of the textbox is set to false. But when I enter some text in the textbox and click the button the entered text is still present in the textbox. I expect the textbox to be blank since EnableViewState is set to false. Am I ...

17
голосов
7ответов
13099 просмотров

ASP.NET MVC and ViewState

Now I've seen some questions like this, but it's not exactly what I want to ask, so for all those screaming duplicate, I apologize :). I've barely touched ASP.NET MVC but from what I understand there is no ViewState/ControlState... fine. So my question is what is the alternative to retaining a c...

1
голосов
3ответов
2537 просмотров

ASP.Net - How do I add a HiddenField from another WebControl and maintain it?

I've got a WebControl that I want to dynamically add a HiddenField from. I've tried the following example: Click here, but that doesn't work due to the fact this.Page.Form is null in the Page Init event. I've tried the following, but the value is never maintained: HiddenField hd_IsDirty = new...

1
голосов
2ответов
1116 просмотров

TinyMCE and Viewstate verification failed. Reason: Viewstate was invalid

Visual Studio 2008 .NET 3.5 I'm using the built in web server to test, and everything works fine. My TinyMCE code is the following: <!-- TinyMCE --> <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ ...

1
голосов
3ответов
1116 просмотров

c# Form submit viewstate error

Im trying to setup a login functionallity in C#, where I have a form on default.aspx that posts to Login.aspx where the logic is runned. But when the form posts to Login.aspx I get a MAC viewstate verification error. What is this and why? When I call Login.aspx direct from the browser I get no ...

0
голосов
3ответов
1475 просмотров

ASP.NET: JavaScript modifying the value of a HiddenField before submitting

I have looked at similar questions on Stack Overflow but haven't been able to find the solution to this particular problem. I have a simple (not really, but let's pretend) ASP.NET page with an update panel inside it. In this update panel there is a HiddenField control with a value that will be s...

0
голосов
1ответов
1117 просмотров

MasterPage and ViewState (VB.Net)

Ok So i have written methods to override the LoadPageStateFromPersistenceMedium and SavePageStateToPersistenceMedium methods. now the problem is that i am using a masterpage, so how do i maintain using my masterpage and still inherit from System.Web.UI.Page? Please bear in mind that the .vb Code...

0
голосов
3ответов
360 просмотров

disabling view state for page is it a good for performance?

Is it better for performance to set EnableViewState to false for all pages and just except some controls that i want to enable their ViewState ?. And how could i do this in web.config file ?.

0
голосов
4ответов
431 просмотров

Viewstate still present in page even though I'm using sqlserver to store the viewstate

I have an ASP.net web app and on my test (database) server I have enabled sqlserver to store the viewstate and when I run the app from visual studio this works fine. However when I try to host the app on the production machine (IIS 6) the viewstate is still present in each page request. If I us...

16
голосов
5ответов
32128 просмотров

Setting ViewStateUserKey gives me a "Validation of viewstate MAC failed" error

I have the following in my BasePage class which all my ASPX pages derive from: protected override void OnInit(EventArgs e) { base.OnInit(e); ViewStateUserKey = Session.SessionID; } I also have a machineKey set in Web.config. I don't think this error is because of a web farm because thi...

1
голосов
1ответов
1057 просмотров

Does the ASP .NET Label Add to the Weight of the ViewState Being Passed on Localization?

I am currently working on a localization project for an ASP .NET application. I currently have a massive page with a multi view with about 9 tabs with each tab containing lots of data. I was just wondering, I put a lot of tag on my ASPX page so that I could localize my text easily. I was wonderi...

3
голосов
1ответов
422 просмотров

Validation of Viewstate MAC fails ASP.Net 2.0 SP2

I've checked every post on SO, every post on the internet, but nothing is helping. I'm getting the Validation of viewstate MAC failed error. It just started failing on our production server all of a sudden. However it works on our staging server, and the files are identical. We discovered that...

6
голосов
4ответов
4652 просмотров

Advice for Building a dynamic "Advanced Search" Control in ASP.NET

alt text http://img3.imageshack.us/img3/1488/advancedsearch.png I'm building an "Advanced Search" interface in an ASP.NET application. I don't need SO to write this thing for me, but I'm stuck on a specific problem regarding dynamic controls and ViewState. I would like some direction for how ...