Equivalent of ASP.NET MVC TempData in ASP.NET?

There is no direct equivalent (that is, data that is only passed to the next page) You can use Session and clear it out on the receiving page.

There is no direct equivalent (that is, data that is only passed to the next page). You can use Session and clear it out on the receiving page.

You can use either Session or Viewstate to pass data between pages in ASP. NET application.

I don't think so. – Oded Jun 1 at 8:29 codeproject.Com/KB/viewstate/AccessViewState. Aspx – eugeneK Jun 1 at 8:32 I suggest you read the article.

He is using Server.Transfer. This is not the same a loading a new page or doing a redirect. – Oded Jun 1 at 8:35 Oded, will it do what @rob waminal asks for or not.

I'm not discussing about Responce. Redirect versus Server. Transfer when in this case you right they are different.

– eugeneK Jun 1 at 8:39 @eugeneK: I'll be passing some query strings to the called page so Server. Transfer is a no. – rob waminal Jun 1 at 9:59.

There is no direct equivalent (that is, data that is only passed to the next page).

You can use either Session or Viewstate to pass data between pages in ASP.NET application.

If you need to use Session or TempData in an API you are probably doing something very wrong from a design perspective. Also you shouldn't be using TempData in your MVC application for this task. TempData is used when you need to persist information between more than one request.

In your case it is the same request. Alright, now that we have fixed your MVC application here's how to achieve the same in the Web API using the Request.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions