Monday, July 26, 2010

Silverlight controls with a 3D appearance

Wow !!!

Yes, this is what many have reacted to this new behavior of the Silverlight Apps recently.

Codeplex has a new project on Silverlight 3D Controls for transforming the look-n-feel of the controls in your app, or more precisely, the app itself with an effect of adding more depth to its dimension.

This is achieved using a control from this library, DepthCanvas.

You have the option to set its ZDepth as well as set the Speed for the animation.

You can find this on Codeplex here.

Friday, July 16, 2010

How to install the Blend 4 Item Templates into VS 2010

Recently I was trying to create a Behavior in VS 2010. I thought I already had everything needed for this. This is what I had installed on my machine:

- Microsoft Silverlight 4 (ver 4.0.50524.0)

- Microsoft Silverlight 4 SDK (ver 4.0.50401.0)

- Microsoft Silverlight 4 Toolkit April 2010 (ver 4.0.40413.2020)

- Microsoft Silverlight 4 Tools for Visual Studio 2010 (ver 10.0.30319.156)

- Microsoft Expression Blend 4 (version 4.0.20421.0)

- Microsoft Expression Blend SDK for .NET 4 (version 2.0.20525.0)

- Microsoft Expression Blend SDK for Silverlight 4 (version 2.0.20525.0)

But, when I tried to create a “New Item” in my Silverlight project in VS 2010, I couldn’t find any installed templates for this.

But I knew, that I had been doing this in Blend and VS 2008 recently. So I jumped onto the band-wagon to look back for the installedtemplates option in the “devenv” command for Visual Studio.

So, this is what I did:

#1. Locate the “Expression Blend” folder in this location: “C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp” (your loc may be different based upon your installation). There is a sub-folder “1033”, which contains Action.zip, Behavior.zip and Trigger.zip.

#2. Copy-Paste this folder to this location “C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp” (again your loc may be different based upon your installation.)

#3. Close all the VS running environments.

#4. Start the VS command prompt from the VS Tools menu.

#5. Run the command [devenv /installtemplates]

#6 Start VS 2010, open any new/existing project, try creating/adding a new item now. You will find a new folder under “Visual C#” namely, “Expression Blend”. (Under C# because we copied from the CSharp location in step #1 above.) This will list the three installed items.

Now go ahead and start creating those Actions, Behaviors and Triggers.

Wednesday, June 23, 2010

Process explorer

I wanted something more than what today’s Windows Task Manager had to offer. Looking over the internet found this free download which seems pretty much offering something extra. So I got this.

Hope you find this as useful.

Technorati Tags: ,,,,

Wednesday, January 27, 2010

Visual Web Part in SharePoint 2010

There is a new web part template in Visual Studio 2010, that actually lets you develop and deploy user controls by packaging all in a single unit.  Lets take a look at what this single unit contains when you create the project:

image

- The “properties” and “Reference” are the similar standard folders created for all projects.

- The “Features” is a new folder that contains the configuration information for the feature.

- The “Package” is also a new folder that contains the configuration information for the WSP.

- The last folder (in my case “VisualWebPart1”, this is the name that you provide during the project creation) is the standard user control project template folder structure. It hosts a number of files: a .cs file, a .webpart file, an elements.xml file, and a .ascx file. 

So actually it creates an ASP.NET user control and the VS 2010 lets you open the designer for the user control already wrapped within the web part.

This is not very different than what we used to do earlier by creating to separate projects in a single solution – one for the web part and the other for the user control. Then the web part would actually embed the user control by issuing the command Page.LoadControl() method pointing at the user control. 

So VS 2010 has done a great job to hide a lot of tasks from the developers by bringing many pieces together at one place and packaging as a single unit for an easy deployment to SharePoint.

 

Wednesday, January 20, 2010

Tuesday, January 19, 2010

Installing SharePoint 2010 on Win Server 2008 R2

I have started to put together a series of posts pertaining to the title “Installing SharePoint 2010 on Windows Server 2008 R2”.

Background:

I am running Hyper-V on my Windows Server 2008 R2 machine and have configure the virtual server with Windows Server 2008 R2. All the description of this install would be in association with this virtual machine. So, in all, I have pre-configured my virtual server with Win Server 2008 R2 and start with the SQL Server 2008 installation.

I will appreciate all your feedback, to improve-correct any mistakes related to this series of posts.

Installing SQL Server 2008

Capture the ISO file to start the setup.image

image

Click Open.

image

Click Run Setup.exe

image

Click Run Program

image

Click OK. Microsoft .Net Framework 3.5 SP1 install starts but fails immediately with the messages below:

image

Click OK.

image

I forgot, I needed to configure the Application Server Role on the Server before I could proceed.

image

Select Application Server.

image

Click “Add Required features”.

image

Now, Select Web Server (IIS).

image

Click Next.

image

Select “Web Server (IIS) Support”.

image

Click “Add Required Role Services”, click Next.

image

Click Next.

image

image

image

Click Next.

image

Review the info and Click Install.

image

image

image

Click Close.

image

                                        >> Step 2: Installing the SQl Server 2008

 

Useful ASP.Net/C# questions and answers

And here are few  ASP.Net and C# question URLs, HTH.

Dot Net Questions

Interviews World

ASP.Net Qs and As

C# Questions

More ASP.Net Qs and As

Code Project - Asp.Net Interview Question Part 1 (This has a PDF download link)

Basic and Advanced .NET and ASP.NET interview questions

Another look at the ASP.Net Qs and As

ASP.NET questions and answers for cascading style sheets

http://blogs.crsw.com/mark/articles/252.aspx

C# General Questions 

.Net Framework/Namespaces related

GAC/ Assembly related

Most frequently asked ASP.NET Interview Questions

Looking at ASP.NET Questions

Answers to ASP.NET interview questions

Technorati Tags: ,,,

Useful MOSS Question-Answer links

I found some of these blog sites with lot of very common MOSS related questions, most with answers too :)

Hopefully, you will find it useful.

Sharepoint Interview Questions

Basic Sharepoint Online Test

Some Developer Tests

More SharePoint Questions

Point SharePoint questions

Sharepoint Developer Interview Questions-Answers

 

Thursday, October 22, 2009

Deleting the trouble-maker Web Parts from your SharePoint Page

Sometimes, your custom coded web parts may crash your page and not even allow the page to get loaded. This could be very annoying when you have a production page working with several other web parts on it.

Due to this error, you are left with no option to get rid of that trouble-maker. You cannot go to the edit mode to delete the web part. But there is a workaround for this too.

Append this to the SharePoint site URL:
?contents=1

Ex: http://yoursiteurl/pages/default.aspx?contents=1

You may have to “Check Out” the page and then look for the trouble-maker Web Parts which crash landed your fully functional page. Go ahead and “Delete” them all.

Friday, October 16, 2009

Identifying the Worker process

While debugging my web part, it was very annoying to look for the specific w3wp.exe and get it attached to step through the code. Most of the times, I could see there were multiple w3wp.exe listed when I went to “Debug –> Attach to process…”.

Unnecessarily, I had to attach them to all.

Apparently, there is a way to look for your process and attach your Visual Studio environment only to that worker process. Microsoft has a vbscript command that does just that. To get the list of the worker process and figure the one which you need, follow the below steps:

  1. Go to Command prompt.
  2. Go back to the Root directory “C:”.
  3. Type IISAPP.vbs and press enter.

This will give you the required list. Now you can easily identify the Process ID of the SharePoint site by looking at the AppPoolID.

Technorati Tags: ,,,,