Labels

Wednesday, December 5, 2007

Display/Visible styling property in JS

Hi,

Here, is the fact that Display/Visible styling property in JS works perfectly in IE and Firefox.

Display

· Block

· None

Visiblilty

· Visible

· Hidden

function Hide1()

{

//debugger;

obj=document.getElementById('divHidden');

if(obj.style.display == "")

{

obj.style.display='none';

}

else

{

obj.style.display='';

}

}

function Hide2()

{

obj=document.getElementById('divHidden');

if(obj.style.visibility == "")

{

obj.style.visibility='hidden';

}

else

{

obj.style.visibility='';

}

}

Thanks & Regards,

Arun Manglick || Tech Lead

Tuesday, November 6, 2007

Speed up Visual Studio 2005

Hi,

Find the below tricks/shortcuts to speed up working with Visual Studio 2005

http://dotnettipoftheday.org/tips/speedup_visual_studio.aspx

  • Make sure Visual Studio 2005 SP1 is installed.

  • Turn off animation.
    • Tools | Options | Environment and uncheck Animate environment tools.
    • Clearing this option causes auto-hidden windows to appear instantly when requested rather than slowly transitioning onto the screen.

  • Disable Navigation Bar.
    • Tools | Options | Text Editor | C# and uncheck Navigation bar.
    • Instead of this option use CTRL-F12.

  • Turn off Track Changes.
    • Tools | Options | Text Editor and uncheck Track changes.
    • This will reduce overhead and speeds up IDE response.

  • Turn off Track Active item.
    • Tools | Options | Projects and Solutions and uncheck Track Active Item in Solution Explorer
    • When selected, Solution Explorer automatically opens the folder for the active item, scrolls to its node, and selects its name.
    • This option is enabled by default.

  • Turn off AutoToolboxPopulate.
    • Tools | Options | Windows Forms Designer and then set AutoToolboxPopulate to False.
    • There is an option in VS 2005 that will cause VS to automatically populate the toolbox with any controls you compile as part of your solution.
    • This is a useful feature when developing controls since it updates them when you build, but it can cause VS to end up taking a long time in some circumstances. So its better to disable this option.

Thanks & Regards,

Arun Manglick || Tech Lead

Saturday, November 3, 2007

Hard Disk/Drive Speed vs Visual Studio Performance

Hard Disk/Drive Speed and Visual Studio Performance

http://weblogs.asp.net/scottgu/archive/2007/11/01/tip-trick-hard-drive-speed-and-visual-studio-performance.aspx

Scott Guru has some recommendations on the type of Machines/Laptops should be used doing development with Visual Studio.

Summary - Get a Duel Core or better CPU. I also always recommend getting at least 2GB or more of RAM.

Admin always has a question why, why you need a better machine. Here is the answer.

Why the Speed Matters –

· The much more likely to block on is the Seek and I/O speed capacity [Required to read/write a lot of files] with which your computer accesses your hard drive.

· When you are doing development with Visual Studio you end up reading/writing a lot of files, and spend a large amount of time doing disk I/O activity.

· Large projects and solutions might have hundreds (or thousands) of source files (including images, css, pages, user controls, etc). Below are the facts that cause a lot of I/O.

o When you open a project Visual Studio needs to read and parse all source files in it so as to provide intellisense.

o When you are enlisted in source control and check out a file you are updating files and timestamps on disk.

o When you do a compilation of a solution, Visual Studio will check for updated assemblies from multiple disk path locations, write out multiple new assemblies to disk when the compilation is done.

o Along with the compilation, it also persist .pdb debugger symbol files on disk with them (all as separate file save operations).

o When you attach a debugger to a process (the default behavior when you press F5 to run an application), Visual Studio then needs to search and load the debugger symbols of all assemblies and DLLs for the application so as to setup breakpoints.

If you have a slow hard-drive, Visual Studio will end up being blocked as it waits for it to complete all of these read/write operations - which can really slow down your overall development experience.

Below are the few recommendations for Hard Drives.

Some laptop hard drive recommendations:

· The default hard drive speed for most PC laptops is typically 5400rpm - which is a pretty slow drive.

· If you are getting a new laptop and plan to use Visual Studio on it, I highly recommend making sure you get a 7200rpm drive instead. You will realize a significant performance benefit by doing this.

· If you’re Laptop has 5400rpm then, put an additional $55 (Lenovo), $93 (Dell) or $200 (Apple) to upgrade the hard drive to be a 7200rpm disk instead.

· Putting this small amount of extra money in the faster disk can really make a big performance difference and is an absolutely worthwhile investment.

Some desktop machine hard drive recommendations

Scott - Two hard drive performance considerations to consider with desktop configurations:

· Consider getting a 10,000rpm hard drive. These are lightening fast and can make a big difference over the default 7,200rpm drives that typically come with desktops.

· Consider buying a second physical hard drive and setup your operating system and OS virtual memory swap file to use one of the physical drives, and then store all your data (images, documents and Visual Studio projects) on the second physical drive. The benefit of an approach like this is that your read/write data operations won't be competing for disk I/O activity with the operating system updating the virtual memory file.

See the article.

Thanks & Regards,

Arun Manglick || Tech Lead

Friday, October 12, 2007

Silver Light

Silver Light

§ WPF/e [Windows Presentation Foundation everywhere (WPF/e)] has been re-named Sliverlight in preparation for its final release.

§ Prior to WPF/e it was known as Jolt. [Jolt -> WPF/E -> Silverlight].

§ Silverlight is a cross-platform and cross-browser plugin/ web client runtime for creating rich internet experiences and applications for the web.

§ Silverlight is just a 1MB download on a PC.

§ It uses a subset of XAML and WPF. You can embed XAML directly into your HTML pages.

§ Silverlight and HTML integrate seamlessly together. Every XAML element can be accessed or manipulated from the same client-side JavaScript that would be used to interact with any DHTML element.

§ Silverlight is almost 100% upward compatible with WPF. Animation, 2D vector graphics, media, text - they're all present in Silverlight and the concepts you've learnt in WPF carry forward.

§ Although Silverlight is a subset - it doesn't support WPF features such as 3D, data binding or templates.

§ Silverlight is blindingly fast - for example, you can play many videos simultaneously without stuttering or dropping frames

§ One of the nice features that Silverlight supports is the ability to go "full screen" and effectively take over the entire screen of a computer. This can be very useful when building immersive UI experiences, games, rich video players, etc.

.Net Framework Require ?

§ There I no need to have the .NET Framework installed in order to use Silverlight. As a cross platform version of the .NET Framework is included in the 4MB Silverlight 1.1 download, which means you do not need to have anything extra installed on the client in order to program Silverlight with a .NET programming model in the browser.

§ The Silverlight version of the .NET framework includes the same CLR engine (same GC, type-system, JIT engine) that ships with the full .NET Framework, and a subset of the .NET Framework namespace libraries. You can see the full list of all classes/namespaces that are included by opening up the Object Browser when you create a new Silverlight application using Visual Studio.

Watch Silverlight Videos

§ To watch videos you will be required to download ‘Silverlight.1.0.exe’ exe.

Silverlight Releases

§ To watch videos you will be required to download ‘Silverlight.1.0.exe’ exe.

Thanks & Regards,

Arun Manglick || Tech Lead

Orcas - New Features

Orcas - VS 2008 and .NET 3.5 Beta2 for Web Development

 

Note:

R      Official name of Visual Studio "Orcas" - Will be called Visual Studio 2008

R      Official name for the .NET Framework "Orcas" - Will be called .NET Framework 3.5

 

 

§          To work with ‘Orcas’ you require to download ‘Visual Studion 2008’

§          This will install below.

o         MS.Net Framework 3.5

o         MS Visual Studio 2008

o         MS Document Explorer 2008

o         MS Web Designer Tool

§          Below are the many of the new improvements for ASP.NET with .NET 3.5 and VS 2008

 

New Features - VS2008

§           

§          Multi-Targeting – This support only works with .NET 2.0, .NET 3.0 and .NET 3.5 and not with .NET 1.0 & .NET 1.1

§          Vertical Split View Support

§          Rich CSS Support

·          CSS property window,

·          CSS inheritance viewer,

·          CSS preview, and

·          CSS manager

§          Improved switching performance

§          Support for control designers within source view

§          Richer ruler and layout support

§          Designer support for Nested Master Pages

§          Javascript Intellisense

·          Javascript Type Inference

·          For External Javascript Libraries

·          Within External Javascript Libraries

·          Hints support

·          Debugging

·          Doc Comments

§          Javascript Debugging

§          VS 2008 JavaScript Intellisense for Silverlight

§          Code Editing Improvments

·          Transparent Intellisense Mode - Just hold down the "Ctrl" key

·          VB Intellisense filtering – Only VB

·          VB LinQ Intellisense – Only VB

·          Organize C# ‘Using’ Statements.

§          Remove Unused

§          Sort

§          Both

·           

 

 

New Features – C# ‘Orcas’ Language Features

 

§          Automatic Properties

§          Object Initializers

§          Collection Initializers

§          Extesnion Methods

§          Lambda Expressions -  p => expressions

§          Query Syntax

§          Anonymous Types

·          Concisely define inline CLR types within code, without having to explicitly define a formal class declaration of the type.

·          Particularly useful when querying and transforming/projecting/shaping data with LINQ.

 

 

LINQ to SQL:

 

§          Part 1: Introduction to LINQ to SQL

§          Part 2: Defining our Data Model Classes

§          Part 3: Querying our Database

§          Part 4: Updating our Database

§          Part 5: Binding UI using the ASP:LinqDataSource Control

§          Part 6: Retrieving Data Using Stored Procedures

§          Part 7: Updating our Database using Stored Procedures

§          Part 8: Executing Custom SQL Expressions

§          Part 9: Using a Custom LINQ Expression with the <asp:LinqDataSource> control

 

ASP.NET in .NET 3.5:

 

§          ASP.NET AJAX in .NET 3.5 and VS 2008

§          ASP:ListView Control (Part 1 - Building a Product Listing Page with Clean CSS UI)

§          Using ASP.NET AJAX Control Extenders in VS 2008

 

 

Regards,

Arun

 

Monday, October 8, 2007

Few facts about UpdateProgress control.

Few facts about UpdateProgress control

· UpdateProgress controls can be either inside or outside other UpdatePanel controls.

· For initial page rendering and for synchronous postbacks, the UpdateProgress control is not displayed. [M. Imp]

· If the ChildrenAsTriggers property of a UpdatePanel control is set to false and an asynchronous postback originates from inside that UpdatePanel control, any associated UpdateProgress controls will still be displayed.

In following situations, you may face that the UpdateProgress control does not display automatically:

· When the UpdateProgress control is associated with a specific update panel using ‘AssociatedUpdatePanelID’ property, and the asynchronous postback results from a control that is not inside that update panel instead postback results from a control that is inside a Trigger.

· When the UpdateProgress control is not associated with any UpdatePanel control, and the asynchronous postback does not result from a control that is not inside an UpdatePanel and is not a trigger. For example, the update is performed in code.

Thanks & Regards,

Arun Manglick || Tech Lead

Friday, October 5, 2007

WPF/Everywhere

First public CTP of "WPF/E" – Release Dec 2006

§ WPF/E" is implemented as a Small Client-Side Runtime that enables AJAX developers and designers to deliver richer, cross-platform, interactive web experiences.

§ It enables sites to significantly improve the client user experience by blending HTML UI, Dynamic Vector Graphics, Animation and Media into a seamless cross-platform browser experience.

§ WPF/E" accomplishes this by providing a Rich Graphics Engine that can be used on any HTML page and which Adds Browser Support for vector graphics, animation, and declarative XAML UI markup.

§ WPF/E also provides Built-In Video and Audio Codec Support for WMV, WMA and MP3 content. This means you can now easily stream interactive video content to any browser without requiring any additional install or runtime.

§ Developers can write standard JavaScript within an HTML page to directly manipulate and program against any XAML DOM element, storyline animation, or video within "WPF/E

§ "WPF/E" can be used with any AJAX framework.

§ "WPF/E" introduced its Built-In Ui/Code Separation Model to enable both designers and developers to collaborate on projects together.

§ Using WPF/E, Developers can Style and Templatize Ui in a way not possible with most other UI frameworks.

§ One of the most powerful aspects of WPF is its ability to create really immersive user experiences that go far beyond what we typically expect today from either a client or web application.

Visual Studio "Orcas" Web Designer – Jan 2007

This designer is a major, major improvement over previous HTML designers within Visual Studio, and will be a shared component used by both Visual Studio and Expression Web Designer going forward.

Among other things, the new HTML designer provides:

  • Split View Support (the ability to have both HTML Source and WYSIWYG design open simultaneously)
  • Extremely rich CSS support (CSS property window, CSS inheritance viewer, CSS preview, and CSS manager)
  • Dramatically improved view switching performance (moving from source->html design mode is now nearly instantaneous)
  • Support for control designers within source view (property builders, event wire-up and wizards now work in source view)
  • Richer ruler and layout support (better yet, values can be automatically stored in external CSS files)
  • Designer support for nested master pages

Thanks & Regards,

Arun Manglick || Tech Lead