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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Can you persist objects inside a workflow?

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :WPF
Can an object used inside a workflow be persisted?

View Complete Post

More Related Resource Links

How to persist workflow with non-serializable arguments

I have a workflow that has some arguments for underlying components (DAL implementation, email sender etc). It also has a  WCF data contract and other serializable arguments. I need to persist and unload this workflow and then resume later on. It is throwing an exception because it is trying to serialize and persist all the workflow arguments. Is there a way to get the serializer to persist only those arguments that can be serialized?

Workflow or DataModel is caching objects somehow.


Hey there!

A just wanted to ask one really awkward question.

As you can see from my post title, my question is - can workflow or DataModels context cache data somehow, when it isn't necessary?

Let me explain a little bit better:
My projects consists of client side (asp web forms) and services (DataModel and some workflows).
Steps what i'm making to reproduce that wierd bug:
1.When i open browser data is immediately filling some textBoxes with data from DB.
2.After that, i'm changing one of the values in my DB.
3.Refresh browser (F5)

4.Click button which will launch workflow in services
5.Realize that workflows processed data with OLD values, which i have been changes recently in DB.

How could it be?
I'm taking "fresh" values all the time from DB (thry my .edmx datamodel), but getting an old value!
Thank you!

activeX error when starting a workflow from inside Microsoft Word


I have a Word 2007 document hosted on a local intranet SharePoint 2007 Server.
When i open the document inside Word 2007 and start a Collect Signature workflow (the word document has some signature lines included), the following ActiveX error si thrown:

Microsoft Office InfoPath
One or more ActiveX controls could not be displayed because either:

1) Your current security settings prohibit running ActiveX controls on this page, or
2) You have blocked a publisher of one of the controls.

As a result, the page might not display correctly.

I managed to find out that the error is generated because of the security level regarding ActiveX controls set on the INTERNET zone.
In the internet zone, all ActiveX controls are restricted to run, but in the LOCAL INTRANET zone are allowed.
Our company security policy does not permit changing the ActiveX settings in INTERNET zone.

If i navigate to the sharepoint site in Internet Explorer, the site is seen correctly in the LOCAL INTRANET zone

Can somebody give me a solution to be able to start the workflow process, without modifing security settings on the internet zone and without upgrading to O

relative URLs inside of email body in workflow emails?

In my auto-generated emails in workflows, I provide the reader a link to a list item on the SP site.  The problem is that I seem to have to provide an absolute URL, which of course changes between development in production.  Is there a solution for this short of editing my workflow when I move to production?  I'm on MOSS 2007 and use SP Designer.

Mulitple While Loops Inside One Task - Workflow



   I have a process that im trying to code up in a workflow. Basically I start off creating a task which sends an email to someone. Enter a while loop which gets satisfied by users input. exit first while loop and kick off a sendemailmessage activity. After doing that I enter a second while loop. the user updates item but the second while loop doesnt fire to check if condition was met.

So first question Is do I have the workflow designed right for this process?

Should I maybe stick another createTask activity between them? If I am doing this properly does anyone have a working example of doing it this way?

If not how would you change the design of the workflow to get it to work? any code examples greatly appreciated!


CreateTask -> OnCreateTask -> SendEmail1 -> 1st While Loop (has OnTaskChangedActivity embedded) -> sendEmail2 -> 2nd While Loop(On2ndTaskChangedActivity)

2nd While Loop never fires a check On2ndTaskChangedActivity.




Accessing the different controls inside a GridView control

how we can access a particular control which resides inside a GridView control. In this article I will show you how you can access different controls inside a GridView control. We will see how we can access a TextBox control, a DropDownList control and a ListBox control. If you are working with ASP.NET 1.X then you might want to check out my article Accessing Different Controls Inside a DataGrid.

How To Add calendar control inside a GridView

This article show hot to add calendar control inside a GridView with code in c#

Using ATLAS PopUp Control with Calendar inside the GridView Control

In this video tutorial Mohammad demonstrates how you can access the Calendar control which is displayed using the ATLAS PopUp control inside the GridView control.

RadioButton inside GridView, How to get it work as normal

Did you tried before to drag a RadioButton control inside a Gridivew templatefield, and then you attempt to select these RadioButtons , you will notice that the behavior of RadioButton control will be changed and it will work just like the behavior of checkbox control! the user will be able to select more than one radiobutton in the grid!

Maintain HTML Radio Button Selection Inside GridView After Postback

Long time ago I wrote an article about getting the value of the selected RadioButtons inside the GridView control. The code did not addresssed the postback issue which means that the selected radio button was cleared after the postback occurs.

Free Series of SharePoint Workflow How-to Videos

This is the series of "How to" Document Workflow with SharePoint using Visual Studio 2008 (using the .NET Framework 3.0 for backward compatibility to Visual Studio 2005). I have created video's that show the most common requests that I have seen around MOSS/SharePoint 2007 workflow & document workflow.

Need help with objects and arrays


I have an objuct that I declared like this:

    Class DailyStats
        Dim _day As String
        Dim _hour As String
        Dim _impressions As String
        Dim _clicks As String
        Property Day() As String
                Return _day
            End Get
            Set(ByVal value As String)
                _day = value
            End Set
        End Property
        Property Hour() As String
                Return _hour

LinkButton inside Repeater



I have Repeater, which consists of LinkButon and Literal. LinkButon and Literal are whole thing by implication. I want get value from Literal, when user click on corresponding LinkButton.


Textbox in ItemTemplate inside Gridview, unable to get the value


Hi. I have a itemtemplate inside a gridview.

<asp:TemplateField HeaderText="Enter OTP">
                            <asp:Label ID="Label2" runat="server"
                                style="font-family: Arial, Helvetica, sans-serif; font-size: x-small"
                                Text="PIN Num:"></asp:Label>
                            &nbsp;<asp:TextBox ID="txtPIN" runat="server" Height="21px" Width="100px"></asp:TextBox>

Embed Youtube inside Ajax Html Editor- problem



When inserting a simple embed of youtube inside the ajax editor, on firefox and chrome problems occur. On the other hand on internet explorer 8 everything works fine. I found this solution http://www.nopcommerce.com/boards/t/4228/bug-in-ajax-html-editor.aspx . 

My question is where do I find the DesignPanel.pre.js ?


Roderick Vella

Gridview inside updatepanel


I am displaying large amount of data in gridview,the gridview placed within updatepanel,every 1sec i am refreshing updatepanel using ajax timer.my problem is while displaying large data the cpu performance is low,pls give idea to increase cpu performance..

how to get an array of all the asp.net textbox control inside create user wizard control?



How can I get all the textboxes inside a create user wizard control using getElementsByTagName().

Below is my JQuery code:

<script type="text/javascript">
        function addLoadEvent(func) {
            var oldonload = window.onload;
            if (typeof window.onload != 'function') {
                window.onload = func;
            } else {
                window.onload = function() {

        function prepareInputsForHints() {
            var inputs = document.getElementsByTagName("asp:TextBox");
            for (var i = 0; i < inputs.length; i++) {
                inputs[i].onfocus = function() {
                    this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
                inputs[i].onblur = function() {
                    this.parentNode.getElementsByTagName("span")[0].style.display = "none";



<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
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