MVC :: State Management On A Multi-page Wizard?

Jul 26, 2010

I'm working on a pretty generic product purchase wizard that takes a user through a process to purchase items in a shopping cart. I am implementing it in MVC2 on Azure without session state. I want to do the following:

GET ShippingInfo calls ActionResult ShippingInfo()
POST ShippingInfo calls ActionResult ShippingInfo(ViewDataObject v)

In ShippingInfo action, I need to validate shipping info. If validation fails, it should redisplay the ShippingInfo view passing the ViewDataObject. If validation success, I want to display the ConfirmView using the posted ShippingInfo data in the ViewDataObject.

I have tried the following:

1) Called RedirectToAction("ConfirmView") but this requires the ConfirmView get method to read the ViewDataObject from cache or a database which I want to avoid if possible

2) Called View("ConfirmView") within the ShippingInfo action on validation success but the URL doesn't change so the back button doesn't work properly

3) Changed the form on ShippingInfo to post to the Confirm controller but then if validation fails the URL is on the Confirm page

I really want to just pass the limited form data from ShippingInfo to the ConfirmView. I then I have everything I need on the Post/Submit from the ConfirmView. Also I want the url to be /Order/Confirm when on the confirm page.

Is there a way to do this without TempData or session state?

View 2 Replies


Similar Messages:

State Management :: Sharing State In Multi Core?

May 20, 2010

If affinity is set to use multi core, aspnet_wp would be run individually on all cores.

So sessionstate, application and cache objects would be core specific. Is this understanding correct ?

Is there a way to share state - session, cache objects?

View 4 Replies

State Management :: Clear Session In Multi Domain?

May 24, 2010

I have multiple sites with main and subdomain. all doing one same method for the login. login is done with the multi domain cookie but there is problem with the logout. I'm using cookie and session for that state.

When ever I logout form the any domain. I should logout form the all domain.

(Like yahoo or google)

As per my method , My all domain have logout page which has code

[Code]....

and main site(www.domain.com) have
[Code]....

So what can I change in this code to do the Logout process for the all subdomains.

View 3 Replies

State Management :: Wizard Control For Updating Entity?

Oct 29, 2010

how to use wizard control to update existing entity (not create new), i.e. need to pre-load data into wizard fields, may be use viewstate? in this case how to make it?

View 1 Replies

State Management :: Maintain Master Page Control State On Load Of Content Page?

Dec 30, 2010

I have created a matser page with a two radio buttons, text box and a button. Whenever user sets some values to these control and clicks the button, i will navigating him from one content page to another based on the data he has entered. The problem is after the content page load, the values selected/given in the controls(radio button, text box) are getting cleared.

Is there some way to maintain the values ?

View 8 Replies

State Management :: State Management And Page Navigation?

Nov 18, 2010

i have a form on page1.aspx with several controls (textbox, dropdownlist, etc).on Page1 PageLoad event i load data from database and performe databinding.From Page1 a user can, by clicking a specific button, move to Page2.aspx to insert some details and, after saving details, he returns to page1.

if save changes are made on control on page1 before save them to db, obviously, these are lost on return from page2 (because are reloaded on pageload from db).How can i save control status between pages round trip?

View 3 Replies

State Management :: Maintain Page View State In Roundtrip Between Webpages?

Jun 15, 2010

I am having a ASP.net application it having three pages ,page 1,page 2,page 3,when the user navigating between this pages I want to maintain the view state in page level after postbacks(i.e.) .If a user visits page 3, passing some query loads some data .then he moves to page 1 doing some entries .after that he once again moves to page 3 now I want to display the data previously available at the time he moves to page 1, same
way I want to do to my three pages up to the user logging out.

View 8 Replies

State Management :: Error The State Information Is Invalid For This Page And Might Be Corrupted While Executing Application

May 26, 2010

I am getting this error while executing my Asp.Net application.i am not able to execute application using Visual Studio Interface and when i am trying to execute application from Local IIS. its executing well but when i am trying to click any button for searching etc it is giving this error. The state information is invalid for this page and might be corrupted. The detailed information is

[Code]....

[FormatException: Invalid character in a Base-64 string.] System.Convert.FromBase64String(String s) +0 System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +72 System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4 System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37 System.Web.UI.HiddenFieldPageStatePersister.Load() +113[ViewStateException: Invalid viewstate. Client IP: 127.0.0.1Port: 1307User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5ViewState: /wEPDwULLTIwOTUyMjAzMTgPZBYCZg9kFgICAw9kFgICCw9kFgICAQ9kFhgCAg8QDxYCHgtfIURhdGFCb3VuZGdkDxYFAgECAgIDAgQCBRYFEAUHQ2VudHJhbAUCODBnEAUITm9ydGhlcm4FAjgxZxAFB0Vhc3Rlcm4FAjgyZxAFCFNvdXRoZXJuBQI4M2cQBQdXZXN0ZXJuBQI4NGdkZAIJD2QWAmYPZBYKAgEPEA8WAh8AZ2QPFgUCAQICAgMCBAIFFgUQBQdDZW50cmFsBQI4MGcQBQdFYXN0ZXJuBQI4MmcQBQhOb3J0aGVybgUCODFnEAUIU291dGhlcm4FAjgzZxAFB1dlc3Rlcm4FAjg0ZxYBZmQCBw8QDxYCHwBnZGQWAWZkAgkPD2QPEBYBZhYBFgIeDlBhcmFtZXRlclZhbHVlBQItMRYBZmRkAgsPEA8WAh8AZ2RkFgFmZAINDw9kDxAWAWYWARYCHwEFAi0xFgFmZGQCCg9kFghmDw8WAh4JTWF4TGVuZ3RoZmRkAggPDxYEHgxNYXhpbXVtVmFsdWUFCTUvMjYvMjAxMB4MTWluaW11bVZhbHVlBQk1LzI2LzE5MTBkZAIMDxYQHhlDdWx0dXJlRGVjaW1hbFBsYWNlaG9sZGVyBQEuHgdDdWx0dXJlBQVlbi1VUx4bQ3VsdHVyZVRob3VzYW5kc1BsYWNlaG9sZGVyBQEsHg5DdWx0dXJlRGF0ZUZNVAUDTURZHhZDdWx0dXJlQU1QTVBsYWNlaG9sZGVyBQVBTTtQTR4WQ3VsdHVyZVRpbWVQbGFjZWhvbGRlcgUBOh4WQ3VsdHVyZU...][HttpException (0x80004005): The state information is invalid for this page and might be corrupted.] System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106 System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +14 System.Web.UI.HiddenFieldPageStatePersister.Load() +217 System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105 System.Web.UI.Page.LoadAllState() +43 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242 System.Web.UI.Page.ProcessRequest() +80 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.pages__cmtickets_cmtickets_reports_cmtickets_search_aspx.ProcessRequest(HttpContext context) in c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Filesapp_mobily_alexmare1eddc658e6f2ba5App_Web_b9acfmsy.14.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

View 3 Replies

State Management :: Set The Changed State Of All Contols On A Page As Default?

May 30, 2010

i want to save the recent state of all controls against a button1 click event. e.g. recently selected item of a dropdownlist should persist selected when user loads page next time, if he/she had clicked button1 before leaing this page. And same for allother controls on this page.

View 1 Replies

C# - Displaying Progress Bar In A Multi-Branch Wizard?

Jan 11, 2011

I am creating a wizard. One of the requirements is to display where the user is in the workflow (ie: Step 1 of 5). My problem is at any point the steps remaining could change depending on what the user answers. Let me highlight with an example.

Q1: What is your name?

Q2: What is your age?

(a) 0-18 => User selects a, there are 3 questions remaining
(b) 19-65 => User selects b, there are 4 questions remaining.
(c) 65+ => User select c, there is 1 question remaining.

So in Q1, there is no way to know which answer the user is going to pick in Q2. What would I display to the user in Q1? Has anyone encountered this before? If so I would love to hear your opinion. Please keep in mind that the example is simplified and I have many branches in my workflow.

View 3 Replies

Multi-step Creation Wizard Using AJAX And JQuery?

Apr 6, 2010

I'm in the process of redesigning a creation wizard in our ASP.NET MVC 2 application.Our current method is to have different pages for each step and navigate between them. While this works, it's a bit slow and annoying to navigate.I was looking to use JQuery and AJAX to make this feel a bit more dynamic and to also use client side validation.I have investigated using Ajax.BeginForm() to post back the individual steps of the wizard, and have that post return the partial view containing the new form with the next step of the wizard. That way, I can do client-side validation on each step.With this in mind, is Ajax.BeginForm() a better method than using the JQuery form plugin? Has anyone found any major issues with either approach?

View 1 Replies

State Management :: Show  default Country, State , City At Page Load Of Default.aspx ?

Sep 18, 2010

Here is my scenario.In default.aspx page user selects the country, state, city from drop down list, and store them in cache for further use. but when other user open the web site from other computer it shows the same country, state, and city selected by user 1. Is there any problem related to cache? I have stored data as following.

cache["ctryID"] = ctryID;

cache["stateID"]= stateID;

cache["cityID"]= cityID;

I want to show default country, state , city at page load of default.aspx

View 2 Replies

State Management :: Client And Server Side State Management?

Feb 25, 2011

when we go for client and server side state management in asp.net

View 2 Replies

State Management :: Show Previous Page Data In Next Page Using Session Variable

Jan 19, 2011

I want to show my data in next page with well formated in table.I all ready write code for session which show data in next page.but i want to show it in table format and i also want to comapre in database for a price and show too. this is my code for next page:

[Code]....

this code show me data but as i say iwant it in table format and want to comapare session varibles in database i want to show price accoding that particular product. The Pervious page code:

[Code]....

View 4 Replies

State Management :: After Reading File Page Expires When Click On Another Page?

Jan 5, 2011

I have created a demo application to read data from the CSV and after read the data from the csv file there is a button to save all the CSV loaded data in the database. When i load the large CSV (2MB) file . after load all the data from the file i will save all the data in datatable and store in view state.

when i click on another Link the page doesn't work and page become expires. Where is the problem.

Its simple doing read CSV file .. file stream closed. store all the csv data in view state. and click on the another link save into the database. but click save database button page expire.

View 6 Replies

State Management :: Passing Value From Login Page To Ascx Page

Sep 25, 2010

I am using query string to pass values from page 1(log in page) to page 2 and then page 3. I have an .ascx file also, so how can I import the user name from Page1(login.aspx) to menu.ascx file. So that when I click the menu Home the value of the variable remains at the website. I am not aware of session handling thats why I am using this method to pass the valus among the various pages in website.

View 4 Replies

State Management :: How To Cache The Master Page But Not Content Page

Mar 22, 2010

I have a Web Application where I have one and only one master page and with 100's of diffrent content pages

So to speed up my Web app How can i CACHE the mater oage but not the content page??

Master page loads each time whenever content page is requested..

This thing is possible,I have seen it on many diffrent websites where the Website's Master Page Remains Intact and only the content page changes (best example would be Facebook)

How can i have the same effect in my Web Application?

View 24 Replies

State Management :: Redirect Page To Login Page On Logout?

Dec 2, 2010

In logout link's click event i have written Session.Abandon() that will destroy the Session state.I am also handling Session_End event that is fired afterward (written in Global.asax). But one more thing i want is that after Session ends, login page should be redirected (opened).

For that i wrote:

[Code]....


This is working fine on the surface, but after applying debugging i saw that there were unexpected number of calls to Session_Start and Session_End events for two times, then login page was opened.

Why Session_Start and Session_End was called two times ? If i left this process as it is working then may i get some serious error in future ?

View 4 Replies

State Management :: Send A Parameter From Page To Page?

Nov 11, 2010

I have two pages. The first one contains the authors' records and it has a link called REMOVE. If I click on the link that related to a specific author that will be move to the other page that contain the detail view of this author. I already did that but I make a fault but i don't know it. If I click the link that related to author that has au_id=25. the other page has the first record while the url of this page equle to ? au_id=25

here is the codes in the first page

[Code]....

here is the codes in the second page

[Code]....

View 2 Replies

State Management :: Send Data From One Page To Another Page?

Aug 13, 2010

how many method used to senddata from one page to another page?

View 4 Replies

State Management :: Pass Value To The Next Page?

Jul 20, 2010

I would like to pass vaule to the next aspx page. I am using sesseion variable, but I still get the error.

protected void sUBMIT_Click(object sender, EventArgs e)
{
Session["PID"] = DdlPID.SelectedValue;
Session["GID"] = DdlGID.SelectedValue;
PID = (string)Session["PID"];
GID = (string)Session["GID"];
Server.Transfer("Submit.aspx");
}

Next submit page

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
LblPID.Text = PID;
LblGID.Text = GID;
}

ERROR: the name 'PID' does not exist in the current context.

View 14 Replies

State Management :: How To Move To Page 404

Dec 13, 2010

my server already move users to page 404, for not exist pages..

but how can I move users to 404 if for example the string query of the page is not exist ?

response redirect to 404 page ?

View 6 Replies

State Management :: Using Same Dataset In Whole Page?

Jun 26, 2010

i declared one data set as public static dataset type and assigned the value to it in page load event but that value is not accessible in other modules.

View 4 Replies

State Management :: How To Display Cookies On Different Page

Sep 9, 2010

I'm working in vb language and I would like to know how to store the values of asp.net controls (textboxes, selected items of combo boxes etc) so that I will be able to display them on a different page. I was using cookies but it's not working.

Page 1

Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Response.Cookies("FirstName").Value = txtFirstName.Text.ToString()
Response.cookies("Date").value = cboDate.selectedItem.Text.ToString()
Response.Cookies("FirstName").Expires = DateTime.Now.AddDays(1)
Response.Cookies("Date").Expires = DateTime.Now.AddDays(1)
End Sub
[code]...

View 1 Replies

State Management :: Passing Value Of A Text Box To Another Page

Dec 4, 2010

I have a text box and a asp button in master page, i just want to use the value of the text box on the target page. i have set the post back url of the asp button.on the page load event of the target page i write the following code

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not isPostback Then
Try [code]...

this is not working. i could not get the value of txtSearch.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved