Labels

Wednesday, January 2, 2008

B'Bye 2007

Do not have time to breath:

While 2007 saw the launch of several different technologies, two primary themes emerged: AJAX and the Microsoft .NET Framework 3.0.

AJAX:

· AJAX was inaugurated as a first-class Web application development platform with the ASP.NET AJAX Extensions.

· The extensions library introduced both Client And Server Libraries that can abstract much of the plumbing detail involved in connecting JavaScript code running in the browser with business logic running on an application server.

· Additionally, the library established a new mechanism for dynamically associating script behaviors with existing controls, provided localization functionality on both client and server, and much more.

The .NET Framework 3.0 introduced three technologies that are already causing a dramatic shift in how applications are architected.

· Windows Presentation Foundation (WPF) took the traditional message-pump, clipping-rectangle architecture of Win32 and flipped it on its head, leveraging advancements in graphic cards and offering Windows developers the declarative, container-based mode of authoring user interface elements long enjoyed by Web application developers.

· Windows Communication Foundation (WCF) pulled together all the various methods of creating a distributed application under one abstraction layer.

· Windows Workflow Foundation (Windows WF) added a declarative workflow modeling language and execution engine, functionality that was previously available only as an additional app, not as a platform service.

Silverlight has been poised to take the world by storm, enabling a richer browser-based user experience than has yet been possible in Web application development. Moreover, with the release of LINQ in Visual Studio 2008 and the ADO.NET Entity Framework (following soon after the Visual Studio release), how we think about data access is about to undergo a major paradigm shift.

When you consider the enormity of the .NET Framework 3.0 and AJAX is it now a best practice to abandon all of those OO practices and split class hierarchies into pairs of logic service classes and data token classes that can easily be passed between remote services.

So if you think you’ll get two seconds to take a breath, keep holding on. J

Thanks & Regards,

Arun Manglick Tech Lead

FW: B'Bye 2007

Do not have time to breath:

While 2007 saw the launch of several different technologies, two primary themes emerged: AJAX and the Microsoft .NET Framework 3.0.

AJAX:

· AJAX was inaugurated as a first-class Web application development platform with the ASP.NET AJAX Extensions.

· The extensions library introduced both Client And Server Libraries that can abstract much of the plumbing detail involved in connecting JavaScript code running in the browser with business logic running on an application server.

· Additionally, the library established a new mechanism for dynamically associating script behaviors with existing controls, provided localization functionality on both client and server, and much more.

The .NET Framework 3.0 introduced three technologies that are already causing a dramatic shift in how applications are architected.

· Windows Presentation Foundation (WPF) took the traditional message-pump, clipping-rectangle architecture of Win32 and flipped it on its head, leveraging advancements in graphic cards and offering Windows developers the declarative, container-based mode of authoring user interface elements long enjoyed by Web application developers.

· Windows Communication Foundation (WCF) pulled together all the various methods of creating a distributed application under one abstraction layer.

· Windows Workflow Foundation (Windows WF) added a declarative workflow modeling language and execution engine, functionality that was previously available only as an additional app, not as a platform service.

Silverlight has been poised to take the world by storm, enabling a richer browser-based user experience than has yet been possible in Web application development. Moreover, with the release of LINQ in Visual Studio 2008 and the ADO.NET Entity Framework (following soon after the Visual Studio release), how we think about data access is about to undergo a major paradigm shift.

When you consider the enormity of the .NET Framework 3.0 and AJAX is it now a best practice to abandon all of those OO practices and split class hierarchies into pairs of logic service classes and data token classes that can easily be passed between remote services.

So if you think you’ll get two seconds to take a breath, keep holding on. J

Thanks & Regards,

Arun Manglick || Tech Lead

Thursday, December 27, 2007

Addition to the ViewState Myth

This is in addition to the post on Viewstate Myth in Apr 2007

In my last post, I have described the Viewstate Myth on ‘Change Of Values’ in controls.

Today I’m posting the conclusion of viewstate myth on the Visibility and Enabling Disabling of controls.

After making research on above two forms below is the conclusion:



Visibility –

· All controls are dependent on Viewstate.

· So if the Viewstate is disabled, the controls will become visible again on 'SimplePostBack' operation.

Enable/Disable-

· All controls are dependent on Viewstate.

· So if the Viewstate is disabled, the controls will become enable again on 'SimplePostBack' operation.

Recap:

Changing Value –

· Textbox, HiddenField, Dropdown does not depend on ViewState.

· Label requires view state.

Thanks & Regards,

Arun Manglick || Tech Lead

Monday, December 17, 2007

ASP.NET Dynamic Data Support - Scott G

ASP.NET Dynamic Data Support

http://weblogs.asp.net/scottgu/archive/2007/12/14/new-asp-net-dynamic-data-support.aspx

This is one of the cool new feature - "ASP.NET Dynamic Data Support". In a nutshell this enables us to really quickly build data driven web-sites that work against a LINQ to SQL (and in the future LINQ to Entities) object model - and optionally allows you to-do this Without Having To Build Any Pages Manually.

Below steps are required to work with this:

· Create a ‘Dynamic Data WebSite’ [A new template came in picture after you install ASP.NET 3.5 Extensions CTP release]


· Add a new LINQ to SQL data model to your project (right-click->add new item->LINQ to SQL Classes item).

Object Relational Mapper:

· LINQ to SQL is an O/RM (object relational mapper) that ships in .NET 3.5, and which allows you to model a relational database using .NET classes.

· You can then query the database using LINQ, as well as update/insert/delete data from it.

· LINQ to SQL fully supports transactions, views, and stored procedures.

· It also provides an easy way to integrate data validation and business logic rules into your data model.

· Scaffolding - Enable Dynamic Templates in Your Project:

· ASP.NET Dynamic Data projects provide built-in support for creating automatic "scaffolding" views of your LINQ to SQL and LINQ to Entities data models.

· Dynamic Data projects include template pages and user controls that can automatically create built-in Data Browsing/Editing/Selection/Deleting Ui That Is Dynamically Constructed At Runtime based on the LINQ to SQL or LINQ to Entities data model you've added to your project.

· To enable this auto-scaffolding support, open the web.config file of your project, search for the "dynamicData" section within it, and set the "enableTemplates" attribute to "true":

<system.web.extensions>

<dynamicData dataContextType=”” enableTemplate=”True”>

</system.web.extensions>

· Now the last step – Hit F5. You'll by default be taken to a default.aspx page that lists all of the table objects in your data model.

Thanks & Regards,

Arun Manglick || Tech Lead

ASP.NET 3.5 Extensions preview

ASP.NET 3.5 Extensions preview:

http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-3-5-extensions-ctp-preview-released.aspx

After the release of Orcas (VS 2008 and .NetFramework 3.5), there were few new features have been added into it. See my blog post.

Out of these new features, few have been for ASP.Net. These were called as ASP.Net 3.5 Extension.

This first ASP.NET 3.5 Extensions preview release (Dec 07) includes below:

  • ASP.NET AJAX Improvements: New ASP.NET AJAX features in the ASP.NET 3.5 Extensions release include better browser history support (back/forward button integration, and server-side history management support), improved AJAX content linking support with permalinks, and additional JavaScript library improvements.

  • ASP.NET MVC: This model view controller (MVC) framework for ASP.NET provides a structured model that enables a clear separation of concerns within web applications, and makes it easier to unit test your code and support a TDD workflow. It also helps provide more control over the URLs you publish in your applications, and more control over the HTML that is emitted from them.

http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx

  • ASP.NET Dynamic Data Support: The ASP.NET 3.5 Extensions release delivers new features that enable faster creation of data driven web sites. It provides a rich scaffolding framework, and will enable rapid data driven site development using both ASP.NET WebForms and ASP.NET MVC.

http://weblogs.asp.net/scottgu/archive/2007/12/14/new-asp-net-dynamic-data-support.aspx

  • ASP.NET Silverlight Support: With the ASP.NET 3.5 Extensions release we'll deliver support for easily integrating Silverlight within your ASP.NET applications. Included will be new controls that make it easy to integrate Silverlight video/media and interactive content within your sites.

  • ADO.NET Data Services: In parallel with the ASP.NET Extensions release we will also be releasing the ADO.NET Entity Framework. This provides a modeling framework that enables developers to define a conceptual model of a database schema that closely aligns to a real world view of the information. We will also be shipping a new set of data services (codename "Astoria") that make it easy to expose REST based API endpoints from within your ASP.NET applications.

Thanks & Regards,

Arun Manglick || Tech Lead

Friday, December 14, 2007

Display vs Visibility

Showing and hiding a dialog box

Showing or hiding an element can be done by

  • Setting its display property to none or
  • Setting its visibility to hidden.

Display: An element whose display is set to none does not consume space in the layout i.e. the layout of the rest of the element is done as if this element did not exist at all.

Visibility: An element whose display is set to hidden the element is still layed out but it is not shown i.e. the element consumes space. Hence an invisible element still affects the layout.


document.getElementById("DivContent").style.display='none';
and
document.getElementById("DivContent").style.display='block'

Thanks & Regards,

Arun Manglick || Tech Lead

Thursday, December 13, 2007

Easily Converting to Visual Studio 2008

Easily Converting to Visual Studio 2008

http://www.wintellect.com/cs/blogs/jrobbins/archive/2007/11/21/easily-converting-to-visual-studio-2008.aspx

VS2008 has launched and on the pace. You might get into 100 different project files and solutions. The thought of manually opening each one and going through the upgrade wizard didn't sound that appealing. Fortunately, there's an easier way to automatically upgrade a solution or project: the /upgrade switch on DEVENV.EXE (the Visual Studio IDE itself). Using the /upgrade switch is about a million times faster than the wizard!

Steps:

· Begin by opening a Visual Studio Command 2008 Prompt from the Start menu.

· Navigate to your project tree and execute "devenv /upgrade MySoln.sln" (without the quotes).

· Visual Studio will automatically upgrade the solution and all projects as well as create backups.

Thanks & Regards,

Arun Manglick || Tech Lead