RSS

HBCode – WPF With The Model-View-ViewModel Design Pattern and Entity Framework


This post is in reference to my previous post on WPF With The Model-View-ViewModel Design Pattern and Entity Framework.

I just made an early alpha release of the wpf application on codeplex – HBCode.

I hope peope will like and I would get more responses.

Here are few screen previews:

 
4 Comments

Posted by on April 30, 2012 in .NET, C#, Entity Framework, WPF

 

Tags: , , , , , , , , ,

Creating a desktop shortcut for a Click Once application


Nice video on Creating a desktop shortcut for a Click Once application

RobinDotNet's Blog

This GoldMail shows how to create a desktop shortcut for your ClickOnce application. The code can be used for any ClickOnce application, assuming you set your attributes accordingly.
 
 
This download contains the sample code (VS2008, C#). If you are a VB developer and can’t figure out how to translate this to VB, post a query and I’ll see what I can do for you.
ClickOnce_DesktopShortcut.zip

July 19, 2009 edit: Here is a link to the follow-up post that provides the code and implementation details for doing same in VB.

ClickOnce Desktop Shortcut Using VB

[edit 7/7/2011 Move zip file to Azure blob storage]

[edit 3/8/2014 Move to different Azure blob storage]

View original post

 
Leave a comment

Posted by on April 5, 2012 in .NET, Winforms

 

Tags:

What is error AjaxControlToolkit.CommonToolkitScripts ?


In asp.net application, check below ASP.NET HTML and Javascript code

Problem case:

<aspext:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
      <Scripts>
           <asp:ScriptReference Name="AjaxControlToolkit.Common.Common.js" Assembly="AjaxControlToolkit" />
           <asp:ScriptReference Name="AjaxControlToolkit.ExtenderBase.BaseScripts.js" Assembly="AjaxControlToolkit" />
      </Scripts>
</aspext:ToolkitScriptManager>
<asp:Panel ID="Panel1" runat="server" ClientIDMode="Static" />

<script type="text/javascript" language="javascript">
      function getPosition() {
           var commonObj = new AjaxControlToolkit._CommonToolkitScripts();
           $common.setBounds($get("Panel1"),
           {
                x : 100,
                y : 200,
                width : 200,
                height : 100
           }
      }
 </script>
The assembly 'AjaxControlToolkit, Version=4.1.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' does not contain a Web resource that has the name 'AjaxControlToolkit.Common.Common.js'. Make sure that the resource name is spelled correctly. Make sure that the application references the correct version of an ASP.NET AJAX Framework assembly

Possible Solution:

1. Try using ScriptManager instead of ToolkitScriptManager as below

<asp:ScriptManager ID="ScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Name="AjaxControlToolkit.Common.Common.js" Assembly="AjaxControlToolkit" />
                <asp:ScriptReference Name="AjaxControlToolkit.ExtenderBase.BaseScripts.js" Assembly="AjaxControlToolkit" />
            </Scripts>
</asp:ScriptManager>

2. Check the version of your ASP.NET application, because above scripts are for .NET 3.5 sp1 as mentioned here on www.asp.net.

Reference from my answer on StackOverflow

 
 

Tags: , , , , , ,

Quick Update on “WPF With The MVVM and Entity Framework”


Due to lack of time, the demo application is being delayed which I mentioned here, but (for time being) you could have the other application mentioned as ‘Book Library’ from WPF Application Framework on codeplex.

Cheers 😀

UPDATE

check here for more HBCode – WPF With The Model-View-ViewModel Design Pattern and Entity Framework

 
3 Comments

Posted by on March 30, 2012 in .NET, C#, Entity Framework, WPF

 

Tags: , , ,

EF5: Rejecting changes to a single property


EF 5, marking individual properties as Modified.. 😀

 
Leave a comment

Posted by on March 25, 2012 in C#, Entity Framework

 

Tags: , , , ,