Thursday, August 12, 2010

Highlight the GridView row when you mouse-hover

Recently while working on a ASP.Net MVC project, I needed to display data in a GridView of one of the Views. I also wanted to highlight each row, as I moved my mouse over the rows of the grid.

I got to the rescue with JQuery. This is awesome, it lets you do these kind of stuffs fairly easy. Think like javascript, but needs a little different syntax. This is how it got to working:

<script type="text/javascript">
  $(document).ready(function () {
    $("tr").filter(function () {
         return $('td', this).length && ! $('table', this).length
    }).css({background: "#FFFFFF" }).hover(
     function () { $(this).css({ background: "#EEFF77" }); },
                function () { $(this).css({ background: "#FFFFFF" }); }
                );
        });
    </script>


Thursday, August 5, 2010

LightSwitch Beta 1 for VS 2010 – Now available

LightSwitch Beta 1 was made available to the MSDN Subscribers on Wed Aug 18, 2010.  Also, it was announced that it will be available for Public download starting today Aug 23, 2010.

I hope to get this on my machine sometime this week and am pretty sure would be lots of fun.

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