.net Mvc - Reusing Pages/controllers In Workflow

May 3, 2010

1) the user signs up for the first time. They see 3 different screens, their basic user information, their credit card, and some additional profile information. They complete these 3 steps in a wizard like fashion, where each time they hit "submit" they leave the current screen and move on to the next.2) the user already is signed up. He has links in the navigation to these 3 seperate pages. He can update them in any order. When he hits save, he doesn't leave the page he's on, it just shows something at the top that says "Credit Card Info saved..." or whatever. Possibly using ajax or maybe a full page refresh.I would like to reuse the code not only the view but also in the controller for these 3 screens between the two workflows, but without a ton of if...then logic to determine where to go next depending on whether its a first signup in the wizard or updating individual parts of a profile.

[code]...

View 2 Replies


Similar Messages:

Have A Statemachine Workflow, This Workflow Works Fine Until A New Requirement Is Came?

Aug 3, 2010

I know this is not the right place to post this question but I dont know where to go. My question is this.I have a statemachine workflow, this workflow works fine until a new requirement is came. The new requirement is to add a new state and event driven but this event driven is fired if the document library item is updated where the workfow is embedded. Is this posible? if so what event activity should I place?

View 7 Replies

Workflow Foundation 4 - How To Create A Web Based Representation Of The Workflow

Aug 12, 2010

The client wants to see a graphical representation of the workflow. In addition (let's say it is a workflow for processing orders), the client wants to see at what point in the workflow any given order is, indicated on the graphical workflow representation by a highlighted node or some visual queue.

All of this must be available via a web interface.

Was hoping somebody had some bright ideas for how to achieve this without writing extensive custom controls.

Does Workflow Foundation 4 offer anything itself that would assist toward this end?

View 1 Replies

C# - Is Workflow Right For Dynamic Workflow Creation In Web Based Application

Jun 22, 2010

I am new to workflow and just know some of its features. I want to do a project in WF. It will be a web based intranet application where user will be able to define workflow dynamically through web interface.Duration for completing a task can be many days.With these requirments I am not sure will use of WF helpful in quick development or it will increase work ?Please advice me should I try to learn WF for this project or should do it with C# and asp.net

View 1 Replies

Web Forms :: Loading Different Pages Based On TreeView Controllers Events In Master Page?

Apr 15, 2010

I am using a master page with a treeview control. I have 2 other pages Summary.aspx and Home.aspx

I want the Summary page to be loaded when I run the application but afterwards I want to load the Home.aspx page based on the selected Node change event of the treeview control.

I have placed the treeview control in master page because it has to remian the same for all my pages.

Did I do something wrong? The problem is I am not able to load the pages based on events occuring for Tree view control.

View 1 Replies

C# - Reusing The Same Repeater ItemTemplate

Mar 11, 2010

I'm currently using a certain ItemTemplate for three repeaters that are all on the same page, but they are all bound to different data sources. Is there any way to refactor my web form without using a user control to easily refer to this template so I will only have to define it once?

View 2 Replies

C# - Reusing PagedList Object On WCF

Jan 6, 2011

I have a custom collection PagedList<T> that is being returned from my WCF service as PagedListOfEntitySearchResultW_SH0Zpu5 when T is EntitySearchResult object. I want to reuse this PagedList<T> type between the application and the service. My scenario:

I've created a PagedList<T> type that inherits from List<T>. This type is on a separated assembly that is referenced on both application and WCF service. I'm using the /reference option on the scvutil to enable the type reusing. I also don't want any arrays returned so I also use the /collection to map to the generic List type. I'm using the following svcutil command to generate the service proxy:

"C:Program Files (x86)Microsoft SDKsWindowsv7.0ABinNETFX 4.0 Toolssvcutil.exe"
/collectionType:System.Collections.Generic.List`1
/reference:.... inDebugApp.Utilities.dll
http://localhost/App.MyService/MyService.svc?wsdl
/namespace:*,"App.ServiceReferences.MyService"
/out:..ServiceProxyMyService.cs
The PagedList object is something like:
[CollectionDataContract]
public partial class PagedList<T> : List<T>
{
public PagedList() { }
/// <summary>
/// Creates a new instance of the PagedList object and doesn't apply any pagination algorithm.
/// The only calculated property is the TotalPages, everything else needed must be passed to the object.
/// </summary>
/// <param name="source"></param>
/// <param name="pageNumber"></param>
/// <param name="pageSize"></param>
/// <param name="totalRecords"></param>
public PagedList(IEnumerable<T> source, int pageNumber, int pageSize, int totalRecords)
{
if (source == null)
source = new List<T>();
this.AddRange(source);
PagingInfo.PageNumber = pageNumber;
PageSize = pageSize;
TotalRecords = totalRecords;
}
public PagedList(IEnumerable<T> source, PagingInfo paging)
{
this.AddRange(source);
this._pagingInfo = paging;
}
[DataMember]
public int TotalRecords { get; set; }
[DataMember]
public int PageSize { get; set; }
public int TotalPages()
{
if (this.TotalRecords > 0 && PageSize > 0)
return (int)Math.Ceiling((double)TotalRecords / (double)PageSize);
else
return 0;
}
public bool? HasPreviousPage()
{
return (PagingInfo.PageNumber > 1);
}
public bool? HasNextPage() { return (PagingInfo.PageNumber < TotalPages()); }
public bool? IsFirstPage() { return PagingInfo.PageNumber == 1; }
public bool? IsLastPage() { return PagingInfo.PageNumber == TotalPages(); }
PagingInfo _pagingInfo = null;
[DataMember]
public PagingInfo PagingInfo
{
get {
if (_pagingInfo == null)
_pagingInfo = new PagingInfo();
return _pagingInfo;
}
set
{
_pagingInfo = value;
}
}
}

View 1 Replies

Create Some Control For Reusing HTML?

Jun 24, 2010

I'm new to asp.net mvc. I'm looking to create some control for reusing HTML. I have a complex HTML box for example:

<div class="Box">
<div class="Top"></div>
<div class="Content">
<div style="padding:10px;">
[CONTENT GOES HERE]
</div>
</div>
<div class="Bottom"></div>
</div>

Previously using webforms I've been able to reuse this by inheriting from WebControl and override Render. But how can I implement this in MVC?

View 2 Replies

C# - Assigning Values To Properties And Reusing The Code?

Sep 28, 2010

I have some code like this. But imagine that there are hundreds of lines like this all duplicated across multiple functions.

MyClass.prop1 = doingsomething("test1");
MyClass.prop2 = doingsomething("test55");

I want to reuse my code... how can I do it?

I want to do something like this:

foreach(ClassInfo)
{
dosomethingAssignment(ClassInfo.propertiesToAssign[i], ClassInfoStringIPassedToFunctionInFirstExample[i]);
}

Maybe this isn't the way to do this in C#, but what is the best way to reuse my code?

View 4 Replies

Prevent IIS From Reusing Worker Processes For Separate AppDomains

Sep 21, 2010

When IIS restarts an ASP.Net (2.0) web application, it can either:

Recycle the AppDomain: Unload the AppDomain and load a new AppDomain on the same process (e.g. when HttpRuntime.UnloadAppDomain() is called, when web.config is changed).
Recycle the process: unload the AppDomain and load a new one on a new process (e.g. when invoking Recycle command on an AppPool via inetmgr, or when memory limit is reached).

Due to some internal reasons (trouble with legacy native code we depend upon), we cannot allow the first option. We just can't load the application twice on the same process.

Can IIS be somehow told to never allow worker process reuse?

I've tried preventing it myself by tracking whether an application has already started on a process once using a Mutex, and if so - throwing an exception during Application_Start()); I've also tried terminating the process by calling Environment.Exit() during Application_End(). The problem with both methods is that it causes any requests that arrive during Application_End or Application_Start to fail (unlike a manual process recycle, which fails absolutely no requests because they are redirected to the new process right away).

View 2 Replies

Configuration :: Providing Source Code But Preventing From Reusing?

Apr 8, 2010

Our company has developed its own CMS system and there is a requirement that customers may purchase the source code for this system but only to be used for the one application (1 domain).My question is, is it possible to give them the source code but prevent them from reusing it to run another site (domain) for it.

My first thought was to have some license checking mechanism or have an uncompiled dll that checks the domain but obviously if they have the source code they can simply remove this code or checks.

View 1 Replies

Web Forms :: Reusing Class Properties Invoked In Masterpage In A User Control

Feb 2, 2010

I'm working on a project that uses a master page. When the page loads I'm calling a class (which I feed and ID into) to get back certain values for a location that the user has selected. Things like town name etc.

On the home page I have a user control which has some statistics for that location too.

Is there a way that I can get the user control to pull values from the class invoked by the Master Page (which has already been fed the ID, hit the db and pulled back the values), rather than creating a new instance of the class within the user control and having to supply the ID and hit the db all over again? This is now I'm calling the class in the masterpage. I have a method "CheckForStoredLocation" that goes off and gets all the data I need.

[Code]....

View 4 Replies

C# - Stop Site Reusing Session Id On Expiry - Force A New SessionId From The Global.asax.cs File?

Sep 30, 2010

I want to be able to log when a user ends their session on our application and record whether it was a sign out or a the session expired. I am using

cookies.Add(new HttpCookie("ASP.NET_SessionId", ""));

to set a new sessionId on sign out, but when the session expires, the sessionId is reused if the browser instance is not closed. In my web.config I have used

<sessionState mode="InProc" timeout="1" cookieName="session" regenerateExpiredSessionId="true" />

but still get sessions reused. I can't kill the cookie in Session_end() because I don't have access because there is no HttpContext or request, so I can't reset it that way. how I can force a new sessionId from the Global.asax.cs file?

View 2 Replies

How To Use Workflow Engine?

Jan 27, 2010

I know workfow engine is, but actually in our programming life, how can we get use of the workflow engine ?
How will workflow engine

View 3 Replies

Customer Workflow For CRM Dynamics

Jul 15, 2010

I need to create a customer workflow for CRM dynamics , I have visual studio 2010 Express edition install in my machine. I most of the examples in web says Go to Visual studio 2005 or more, then slect Workflow Project type in new project dialog box. but in express edition i cannot see workflow as a project type, is this because of express edition or do i need to run any thing to get this project types in to VS express.

View 4 Replies

.net - Best Practices For Web Application Workflow?

Jul 18, 2010

All too often I find myself being required to design pages that flow through a series of steps. 1) Select from a set of options. Submit.2) Populate a page with results. Make changes. Submit.3) Do something based on the previous results. Submit.4) Confirm previous actions. Submit.5) Goto 1.An ecommerce site with shopping cart would be a textbook example of this.Now, there are any number of ways to deal with this. My question is, what is the recommended way to do it in asp.net? In PHP or ISAPI I would just use standard html controls, get the post data and do stuff with it, each on a different page

View 3 Replies

C# - Control For Presenting Workflow?

Sep 13, 2010

I write an application in asp.net and I have something like state machine which can be modified by user (nodes, paths and directions of paths).

Is there any nice controll I can use to display this data ?

Just display, there is no need to do anything with it

View 2 Replies

Architecture :: Page Flow With Workflow 4.0?

Nov 10, 2010

Is there any good example to implement Asp.Net page flow using workflow 4.0 ?

View 3 Replies

Visually Tracking / Monitoring Workflow(WF) 4.0?

Feb 18, 2011

I am planning to build a custom web application in ASP.NET 4.0 using WF 4.0, the user wants ability to modify workflows himself, for this we will be using a WPF client which the user can use and we will do workflow re-hosting, lots of blogs and guidance is available for this. But I am not sure how to the meet one requirement where the user wants to see/track a visual representation (diagram/image) of the workflow, depicting what stages are over, what is the current stage etc. This needs to be done on a web page.Possibly the same workflow with icons depicting status. This is something similar to the visual available for Visio workflows in SharePoint 2010. Even AgilePoint workflows provide such a view.

View 2 Replies

C# - Queueing An Item To The Workflow Queue ?

Sep 24, 2010

you could have a workflow which is used for the submission and tracking of tickets, with the scenario that when the support desk goes home all of the active workflows generate an e-mail to the person who submitted the ticket saying that their ticket won't be looked at today.What is the best approach to do this?Is it a custom activity or some other method of enumerating all of the active workflows and firing an event/queueing an item to the workflow queue Clearly from the workflow perspective it would be nice to have an activity within it which is fired when,in the case of the example above the office closes.

View 2 Replies

MVC :: HTML / CSS Customer Order Workflow Site

Mar 4, 2010

I have see many websites that they show nice tab headings with STEPS: 1. Sign-in, 2- Billing info, 3 - Payment, 4 - Place order While customer ordering items, he/she goes through these steps and gets an experience of using a wizard based approach. one Also this gives good feedback of what are steps involved in the order processing Any details on how to do this wizard kind of functionality in ASP.NET MVC? Is there anything in JQuery UI that might be helpful? I know that I can simply use some text tabs and use different background color for selected step: But wondering if there is more standard or better ways to do this with: ASP.NET MVC, JQuery UI etc.

View 2 Replies

Windows Workflow / Unable To Understand How To Implement

Oct 28, 2010

I understand the concepts of windows workflow...But unable to understand how to implement it...Can anyone tell me some good sites which explains Workflow with coding???

View 1 Replies

Web Forms :: How To Show Sequential Workflow On Web Page Dynamically

Jul 30, 2010

My basic question is how can we show a sequential workflow diagram on asp.net web page dynamically. using WWF can we do this?. i have gone throgh the some of forums/articles but i could not find right information anywhere. please suggest me the right path to achieve this.

View 9 Replies

Visual Studio :: To Include A File To The WorkFlow Project

Mar 12, 2010

I excluded a file(i.e . a WorkFlow file) from my project. The file got removed from the Solution Explorer, But it was in the directory where the project was saved. Can anyone please tell me how the file can be included again.

View 1 Replies

Workflow Foundation Hosting - Console, Windows Service?

Mar 10, 2011

I read some blog that If we host workflow foundation in asp.net, there will be issues with workflow persistence, is this correct? and what is the better idea to host workflow foundation on asp.net or on windows service?

View 1 Replies







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