.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

Nested Work Flows in 4.0 Framework

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :Windows Application
Hi, I want to Invoke an work flow within an workflow. And I should be able to sqlTrack the inner workflow.  

View Complete Post

More Related Resource Links

Server-side validation on an Entity Framework required field (property) does not work!

Has anyone had issues getting server-side validation on an Entity Framework required field (property) to work? The data type is a string (nvarchar). Server-side validation for required fields of other data types WORK fine. Only string fields have issues. I get the following error on UpdateModel(obj); of my POST method within the controller. Exception Details: System.Data.ConstraintException: This property cannot be set to a  null value.Source Error: Line 4500:                OnTextChanging(value);Line 4501:                ReportPropertyChanging("Text");Line 4502:                _Text = StructuralObject.SetValidValue(value, false);Line 4503:                ReportPropertyChanged("Text");Line 4504:                OnTextChanged(); I've even tried data annotations like this but it seems to get ignored.     [MetadataType(typeof(ObjMD))]     public partial class Obj     {    

I try To Install Microsoft framework Dont i dont work

Hi i have Tried To Download Microsoft Frame Work 3.5 And every time i start the download I says Half Way Through "Go to Control Panel, Click on Turn On and Off Progams.So i went There Tried to Configure It but I says Not All files where Finshed I need Help ASSP i have a Advent 7110, Window 7 Ultimate.

The control value can not be set on GUI in .Net Framework 4.0, but it can work in .Net Framework 3.5



Now I encounter one strange problem on WPF. In the previous version, I work on VSTS2008 with .Net Framework 3.5; And in current version, I upgrade the software to VSTS2010 with .Net Framework 4.0. But the problem occurs. The control value can not be set on GUI now but the legacy version works fine.

After debug, I found that the control value in logic layer is what I want. But the value can not be populate to GUI.

The xaml script is like this:


Content="{Binding Path=TopButton1IndexUIValue}"


The codes are listed like this:


public static DependencyProperty TopButton1IndexUIValueProperty = DependencyProperty.Register(
       "TopButton1IndexUIValue", typeof(string), typeof(GraphicView));

public string TopButton1IndexUIValue
      get { return (string)GetValue(TopButton1IndexUIValueProperty); }
      set { SetValue(TopButton1IndexUIValueProperty, value); }


Does anyone know what the root cause of this issue ? In other words, is there extra more work needed while upgrading from 3.5 to 4.0 ?

Thanks a lot !!

Possible VS 2010 bug with work flows - Does anyone have a solution?


Morning, im trying to import a reuseable workflow in the way Microsoft say it should be done.


I've saved my template from Designer 2010 (.wsp), creating a new project in VS2010 under "import reusable work flow" select deploy as farm solution, i go select my .WSP file. Then the next step displays nothing ("Select Items to Import"). My flow works perfectly in SP when attached to lists and items. But VS doesnt see that a flow exists from this .WSP file.


Can anyone explain why this is happening?




WPF, MVVM , Entity Framework: Is there an example to show how Entity Frameowk work with MVVM pattern


Is there an example to show how Entity Frameowk work with MVVM pattern or WPF?
Does it suppose to be the Model layer implement LINQ to Entities?

How does WCF work with other parts of the .NET framework?

This may be a silly question, but I'm very new to both WCF and the .Net framework, so bear with me. I've been reading about WCF's capabilities, looked at some demos, but I haven't found a clear answer yet. Say for instance I had an application in C# with a WPF GUI (I dont, yet, so no code samples and such) , and I wanted that application to have P2P connectivity (from what I've read, WCF is the way to go here). How would I integrate WCF into this application? Is the WCF part a separate type of application whose functions I can call or is it a real part of the main program?

I would appreciate it if someone could give me a concise explanation of how this works exactly.

Multiple database support with Entity Framework

One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

Creating a Generic Entity Framework 4.0 Repository

With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework.

The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to SQL. To set things right, Microsoft proactively moved forward with improving Entity Framework, in time for the 4.0 release of the .NET Framework. This is good news because my initial impressions, so far, have been nothing but positive.

ASP.NET 4.0 Dynamic Data and Many to Many Entity Framework Entities

I did not play much with Dynamic Data controls in VS2008 and just made a cool discovery in VS2010 Beta 2. This may not even be new, but as I'm sitting 30,000+ feet over the Atlantic ocean, I don't have access to VS2008 at the moment to check.

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!

Entity Framework 4 Tips for WinForms Development

I've been recently working on a smart client (WinForms) application backed by Entitiy Framework 4 (EF4) on Visual Studio 2010. In this blog post I will try to give you some tips regarding some limitations and points to be careful about EF4.

Bar Code Scanners with the .NET Compact Framework

Summary: Learn how to make your applications use bar code scanners in a generic way-ndependent of the specific bar code scanners that are used on different devices. Using the design patterns Façade and Factory, the implementation not only supports multiple bar code scanners, but it also makes it easy to add support for other bar code scanners. After a brief discussion about bar code scanners and the bar code scanner pattern, a download code sample, written in C#, demonstrates the use of the pattern and technologies.

Serial Communication with the .NET Compact Framework

Learn how to make your applications communicate over a serial port and how to handle common issues when implementing serial solutions. After a general discussion about serial communication and a common serial communication standard, this article demonstrates a practical use of the technologies through sample source code written in C#.

.net 4 framework getelementbyid for javascript without clientid


I thought I heard we would be able to get the value of an asp:textbox by id with javascript in the .net 4 framework? was I mistaken? if not does anyone know the syntax?

Binding Nested Listviews in MVC ViewPage


I am a longtime .NET developer but for big applications and services.  This is my first asp.net project and I have chosen MVC.   I have a need for nesting a ListView within a ListView.  In this simple catalog app, I have EF 4 Entities that are Categories, SubCategories, ItemTypes, and Items.

My goal is to display a 5 column layout of SubCategories with their ItemTypes below them in a ViewPage.  I did just fine with it done out in C# as server directives such as:

    var subcats = Model.SubCategory.ToArray();
    var nrSubCats = subcats.Count();
    var rows = (nrSubCats/5) + (((nrSubCats % 5) > 0) ? 1 : 0);
    for (var row = 0; row < rows; row++)
    { %>
        <div style="width: 100%; float: left; clear: right;">
        var start = row * 5;
        for (var i = start; (i < start + 5) && (i < nrSubCats); i++)
        var subcat = subcats[i];
            <div style="float: left; clear: right; width: 20%; margin-left: 5;">
                <h2> <%:subcat.Name%></h2>
                    foreach (var its in subcat.ItemType)

MVC2 issue - Stuck. Trying to create a cms with nested partials


I am currently trying to display multiple items on a single page. I am not sure as to how to tackle this. What I have is a database table that has all the page data in. I have this run as a PagesController and this works fine. However what I would like to do is, if say the Products page is selected via the menu, I want to pull back not only the Products page html but also get all the products, and even be able to pull them through via category. I was trying to use a partial view, but I can't get it to work. The same would be for other pages, having partial views to display the other content, ie if Gallery is selected, the page html for Gallery shows and it then can push to a partial view that pulls all the gallery images from the gallery db table and so on. 

Maybe I am tackling this the wrong way. I have the pages stored in the db to allow for a CMS system I have setup. Maybe I need to use models for all the other items(Products, Gallery, Videos and such) and use the partial for the page html?

Any help would be greatly appreciated as I am confused.

Looking for guidance: wanting to work with AJAX architecture



I'm starting a small website that will be backed by a database, and will allow a small number of users to authenticate and select an entry in the database, and then view (and optionally update) a corresponding entry (think master-detail).

I have some flexibility in how I'll do this, but I'd really like to incorperate some newer AJAX style coding, eliminating some page postbacks. I think this is a great opportunity to learn the concepts well.

I'll probably go with an ASP.NET 4.0 site. From what I've seen there are MANY ways to go about this:

-WCF Data Services to expose the data, and consume in ASP.NET

-Page methods to expose the data, separate method to update the data

-I'd rather avoid the UpdatePanel because I'm really looking for a full hands-on approach, with learning client side scripting being an objective as well.

Beyond that, it seems that one can use jQuery to build clientside templates, but also one can use the ASP.NET AJAX template engine (in ASP.NET 4.0 I believe).

A concern I have: users should only be able to work with the data exposed via these endpoints if they are logged into the website. Hopefully I can somehow reuse the ASP.NET forms authentication cookie for this purpose. 

Well, I hope I've posted enough to a

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