2
Posted on 3:46 AM by Softminer and filed under

Microsoft Windows SDK, Platform SDK, and .NET Framework SDK are software development kits from Microsoft that contain header files, libraries, samples, documentation and tools required to develop applications for Microsoft Windows and .NET Framework.

It is usually installed on C:\Program Files\Microsoft SDKs\Windows

these are the versions of SDK


Windows Server 2003 SP1 Platform SDK 5.2.3790.1830.15
Windows Server 2003 R2 PSDK 5.2.3790.2075.51

Windows Vista Update & .NET 3.0 SDK v6.0
Included in Visual Studio 2008[5] v6.0a
Windows Server 2008 & .NET 3.5 SDK v6.1
Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP 1 v7.0
Microsoft Windows SDK for Windows 7 and .NET Framework 4 v7.1

for example if you use WCFclient in Visualstudio 2008 then it will call svcutil.exe from SDK 6 but if you call it in VS 2010 then it will call svcutil.exe in SDK 7.

if in the command prompt of Visual studio type "where svcutil.exe" then you can see which SDK is called.

the default SDK in in registery in this path :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows

if you install VS 2010 then SDK 7 will automatically will install on your machine.

you can install SDK 7 from here

lease note if you are running a 64-bit version of Windows and Visual Studio 2008, please upgrade to Visual Studio 2008 SP1 before installing the Windows 7 SDK.
1
Posted on 5:20 AM by Softminer and filed under

usually extension method are used to add new function to a class. for example you want to add extension method to "String" class in view like Left.


public static string Left(this String param, int length)

{

   string result = param.Substring(param.Length – length, length);

   return result;

 }

then you can use it in view as
<% Model.city.Left(10) %>
0
Posted on 2:02 AM by Softminer and filed under


<img id="updating" src="/content/ajax-loader.gif" style="display: none;" alt="Updating ..." />

<br />
 <%= Ajax.ActionLink("Get Time", "GetTime",
 new AjaxOptions { UpdateTargetId = "time", LoadingElementId="updating" })%>


0
Posted on 12:43 AM by Softminer and filed under

Usually by default the Views in MVC are Inherited from Inherits="System.Web.Mvc.ViewPage but you can Inherit it from specific Model.


first you have to define your model in your MVC Model folder. but when I add this to Page


Inherits="System.Web.Mvc.ViewPage<MyProject.Models.MyModel>"  then I get the following Error :



Compiler Error Message: CS0426: The type name 'Models' does not exist in the type 'System.Web.UI.WebControls.Wizard'


Solution:


<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MyModel>" %>


<%@ Import Namespace="MyProject.Models" %>
0
Posted on 2:59 AM by Softminer and filed under

recently I have installed windows 7 , during installation it didnt ask for product key and then after installing windows when I wanted to activate windows I get this error.

0x8007232B widows activation problem

then I have solve this problem buy entering product key:
run as administrator

C:\Windows\system32>slmgr -ipk "product key"



C:\Windows\system32>slui

to remove water mark windows activation
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\
sppsvc and right side select Start the right click and Modify change value to 4.
0
Posted on 1:01 AM by Softminer and filed under

I have windows 7 Enterprise and while installing WSSF I got the error that VS 2008 is not installed on my PC but I already had one.

so first you need to be sure that Prerequisites are installed.


http://msdn.microsoft.com/en-us/library/ff650736(v=PandP.10).aspx

Windows XP Professional, Windows Server 2003, or Windows Vista operating system
Microsoft Visual Studio 2008 (Visual Studio Professional Edition or Visual Studio Team Suite)
Visual Studio 2008 SDK Version 1.0
Microsoft .NET Framework 3.5
Guidance Automation Extensions - February 2008 Release

and then getting WSSF from MSDN webiste

when installing this, its important to do this steps otherwise you will get error that VS2008 is not installed on your PC.

RUN -> CMD (Run as adminstrator -> run setup WSSF
0
Posted on 12:33 AM by Softminer and filed under

Usually after getting latest version for the first time TFS will ask about folder, but if it didn't ask you can change the working folder under menu -> Source Control -> Workspace

then you can edit the workspace