.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

MVC Move Data Between Views

Posted By:      Posted Date: October 26, 2010    Points: 0   Category :ASP.Net
 

Hello,

I am trying to move data, in the project I am working on a ViewModel containing two Data Contract Classes, from one view to another.

This is to facilitate a form process with multiple steps.  Similar to filling out a survey.

The issue is that I have been asked not to use session (due to multi tab issues), not to use cache and not to use Cookies.

What is the best way to move this data?

The only example I have been able to find revolves around creating hidden fields for all of the fields of the ViewModel and its associated classes.

Here is an example of the Hidden fields. Once the form is submitted the controller's method is given a full ViewModel object with the details from all of the hidden fields.
<form runat="server">
        <%: Html.HiddenFor(m => m.Reference)%>
        <%: Html.HiddenFor(m => m.FirstName)%>
        <%: Html.HiddenFor(m => m.LastName)%>
        <%: Html.HiddenFor(m => m.Things)%>
        <%: Html.HiddenFor(m => m.surveyData.Title)%>
        <%: Html.HiddenFor(m => m.surveyData.Q1)%>


View Complete Post


More Related Resource Links

Cutting Edge: Flexible Custom Data Views

  

ASP. NET 1. x introduced some powerful and useful data-bound controls. However, none were designed specifically to manage the view of a single record. When you build master/detail views, you need to display the contents of a single record.

Dino Esposito

MSDN Magazine December 2005


Data Points: Updating Data in Linked Servers, Information Schema Views, and More

  

Every day a developer somewhere needs to write code to iterate through SQL ServerT system objects, query and update tables in linked servers, handle optimistic concurrency, and retrieve column and stored procedure metadata.

John Papa

MSDN Magazine November 2004


SSRS 2008 R2 Data Source View Wizard does not recognize unique key constraints on views when using O

  
Hi, SSRS Data Source View Wizard does recongnize Primary/Foreign Key relationships from oracle datasouce tables, but does not recognize unique key constraints on views. How can I solve this problem. Thanks

Dynamic Data Entity Framework: Initial Sort Order for Views

  
Hello Steve,I'm trying to set an initial sort order for my View (not table) in Dynamic Data using Entity Framework 2. I have updated my Model and Imported the View. Now I'm trying to use the DisplayColumn attibutebut it's not working.[DisplayColumn("Product", "ParsingOrder", true)]Fabio

Problem using SSIS to move DB2 data to Oracle

  

Hi,

I will need your advice on a SSIS package which moves IBM DB2 (for z/OS V7) data to Oracle (AIX 10g). Thank you in advance.

Basically, this is a very simple SSIS package (created by SSIS import / export wizard) and just maps column by column. I used IBM OLEDB provider for DB2 to connect the source and Oracle Provider for OLEDB to connect to the destination.

The problem I ran into was that if the DB2 source value contains special (or invisible) characters then this value will be converted to a SPACE (' ') value on Oracle. To be more detailed, take the following example:

On DB2, value  000002D0000002D7 (EBCDIC HEX codes). This is actually a value of a column defined on DB2 as CHAR(8). Please note HEX '00' in EBCDIC stands for NULL and HEX 'D0' stands for character 'K';

On Oracle, this value will be stored as a SPACE (or a string of SPACEs) after data move.

On both DB2 and Oracle this column was defined as CHAR(8).

I guessed this was related to a code page issue, so I tried a few different code page to set for the source property (by setting the DefaultCodePage of the DataFlow source property), I used code page 37, 500, etc... All resulted in the same Oracle value.

The character set on DB2 is EBCDIC and the one on Oracle is ALT32UTF8. I guess it was the source provid

Move data to DB2 on AS400 with SSIS

  

Anyone writing data to DB2 on an AS400 with SSIS?

I cannot get the OLEDB destination configured correctly.  I can set the destination up with a SELECT sql query, and preview the resultset.


need some help parsing data views

  
not sure how to ask this, but, I've got an internal customer who has to grab a lot of data from a SCCM view. Specifically the v_R_User view. All of the columns are generated in the DB by AD attributes, one of them being the Manager field. We're using SQL Reporting and when the data from the column is displayed it's displayed exactly as it is in the column. thus the column data reads as the distinguished name and I'd like it to be displayed in the report as just the manager's name.  Not a SQL guru, so not sure how ot go about doing this. Any help will be greatly appreciated.

How can I move my production data only to my dev env.

  

I'd like to move data from my prod. env. to my dev. env. The data in dev would be replaced by the prod one. I cannot do a detach/attach or backup and restore due to some already existing dev objects located in the dev. env.

 

Any lead on how I can do this?

 

Thanks Marcel


How to move or migrate document library with all data from one web application to another web applic

  

Hi,

We have created one document library in a web application and also added some documents in it.

Now we want to copy same document library to another web application with all content.

We have tried list template option but it is not working as document library is exceeding size quota(greater than 50 MB)

Please help.

Thanks in advance.

Regards,

Jayashri


Unable to view data on list views

  
I have two lists. A List item in one list will be inserted to the other list based on the actions. This is easily achieved on the event receiver by adding the list item to the target list. Though I adds the list item to the target list; i am only able to view those data when i click on "Modify View" and simply click on "OK" button. Basically its a view refresh / commit. Has anyone came across such issue?

Clear data in views of multiview

  

I created a asp.net survey program in which there is a multiview to store different questions and answers.
There are 5 views in a multiview. Each view has varies controls, such as text boxes, dropdown lists, check boxes.
Every time, once user move to next customer, I want to clear all data within 5 views and then start over.
Is there a easy to do it?

I created a asp.net survey program in which there is a multiview to store different questions and answers.

There are 5 views in a multiview. Each view has varies controls, such as text boxes, dropdown lists, check boxes.

Every time, once user move to next customer, I want to clear all data within 5 views and then start over.

Is there a easy to do it?


What is the techical difference between Data Sources and Data Sources Views ?

  

Hi friends,

I am total new in SSAS world.

Can anyone explain me, what is the fundamental difference between Data Source and Data Sources Views ?

 

Thanks !!!


passing data between views

  

I have a view, which contains data from a Model class.  In this view I have a <form> section and submit button, and using that to pass data to a controller works fine.  What I'm struggling with is using a link that I also have on this view which passes data to a different view if the user clicks on it.  I'm using HTML.ActionLink, and including a message, name of the view, and as the third parameter, the Model.  However, when I get to the called View, the Model is null.  Anyone know what's going on?


thanks




use multiple data source views in one cube

  

Is it possible to use multiple data source views in one cube so I can organize each star with separate data source views?

This applies to SQL 2005 and SQL 2008 enterprise


Business Intelligence professional

.How to Create Views Displaying Cross-Web and Joined List Data

  

http://blogs.msdn.com/b/sharepoint/archive/2009/12/02/sharepoint-2010-list-view-blog-series-part-1-introduction-to-the-new-list-view.aspx

This is said to be available option, and was planned for the series. We unfortunately didn't see anything after part 3, and I am asking part 9 topic!

Any help will be appreciated. I want to show a list frmo root site in sub-web.

--Sharad


how to move xml data from one table to other table

  

hello, how to move xml data from one database to another database???????

 

 


Using Transact SQL Queries in Data Source Views

  

Afternoon all,

Can someone explain how I would use a view defined in SQL in my data source view creation and what the advantages of doing so would be. I've been assigned to a project where I need to build a DSV, but the database has a view that appears to create what I need too.

I've read in some MS literature that a view can be used in lieu of referencing the actual tables.

Can anyone explain how this would work?


http://www.final-exodus.net
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend