Labels

Thursday, November 20, 2008

__EVENTTARGET __EVENTARGUMENT __VIEWSTATE __doPostBack

Hi,

 

Get a look at the ‘View Source’ structure on an HTML page.

You can foucs on below.

 

·          __EVENTTARGET

·          __EVENTARGUMENT

·          __VIEWSTATE

·          __doPostBack

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head><title>

</title>

</head>

<body>

    <form name="form1" method="post" action="NewTrialPage.aspx" id="form1">

<div>

<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />

<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUIMTEzMDA5NjJkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQlDaGVja0JveDEhCugQnV/py+Z1mFbX4q4OORRUhw==" />

</div>

 

<script type="text/javascript">

var theForm = document.forms['form1'];

if (!theForm)

{

    theForm = document.form1;

}

function __doPostBack(eventTarget, eventArgument)

{

    if (!theForm.onsubmit || (theForm.onsubmit() != false))

    {

        theForm.__EVENTTARGET.value = eventTarget;

        theForm.__EVENTARGUMENT.value = eventArgument;

        theForm.submit();

    }

}

//]]>

</script>

 

 

<script src="/TrialSite/WebResource.axd?d=nTKcDFUAsPO-CzOgiU2QPw2&amp;t=633621995606072446" type="text/javascript"></script>

<script src="/TrialSite/WebResource.axd?d=WA2RfCVo5ELQDwtqnK8I9w2&amp;t=633621995606072446" type="text/javascript"></script>

<div>

            <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBgLc7KWUCALs0bLrB" />

</div>

<div>

 <!-- Here actual HTML comes -->

</div>

 

</form>

</body>

</html>

Silverlight 3.0

Hi,

If you have not used SL 2.0 yet, don’t be afraid – Better you use Silverlight 3.0

Silvelight2 has been shipped last month. Over the last 4 weeks, the final release of Silverlight 2 has been downloaded and installed on more than 100 million consumer machines. It has also recently been published to corporate administrators via the Microsoft SMS and Microsoft Update programs to enable them to automatically deploy across enterprises. Over 1 in 4 computers on the Internet now have some version of Silverlight installed. Silverlight 2 was a major release, and delivered an impressive set of cross-browser, cross-platform functionality for Media and Rich Internet Application experiences. It has been great watching new sites launch using it.

Next year MS has planned next major Silverlight release -- Silverlight 3.

Silverlight 3 will include major media enhancements (including H.264 video support), major graphics improvements (including 3D support and GPU hardware acceleration), as well as major application development improvements (including richer data-binding support and additional controls). Note these are just a small sampling of the improvements - MS have plenty of additional cool features that are going to keep up our sleeves a little longer. ;-)

Next year Visual Studio and Visual Web Developer Express will also support a fully editable and interactive designer for Silverlight, and add tool support for data-binding.

It has been really great to watch customers go live with cool solutions. The next year is going to be a fun one as more and more sites launch with Silverlight 2, and as even bigger scenarios are enabled with Silverlight 3 and beyond. :-).

Hope this keeps you updated. J

Thanks & Regards,

Arun Manglick Senior Tech




Hi,

This is about the final Silverlight Release. However, take a look at the history releases.

o Silverlight Alpha 1.0 – Sep 2007

o Silverlight Alpha 1.1 - Nov 2007

o Silverlight 2 Beta 1 -

o Silverlight 2 Beta 2 - Jun 2008

o First public Release Candidate (RC) - Sep 2008 – Last Week

o Final Silverlight 2 Released - Oct 2008

In Oct 2008, MS shipped the final release of Silverlight 2. You can download Silverlight 2, as well the Visual Studio 2008 and Expression Blend 2 tool support to target it, here.

Cross Platform / Cross Browser .NET Development

Silverlight 2 is a cross-platform browser plugin that enables rich media experiences and .NET RIAs (Rich Internet Applications) within the browser.

Silverlight 2 is small in size (4.6MB) and takes only 4-10 seconds to install on a machine that doesn't already have it. It DOES NOT REQUIRE THE .NET FRAMEWORK to be installed on a computer TO RUN - the Silverlight setup download includes everything necessary to play video or run applications.

Developers can write Silverlight applications using any .NET language (including VB, C#, JavaScript, IronPython and IronRuby). Silverlight provides a rich set of features for development including:

  • WPF UI Framework: Silverlight 2 includes below.

    • A rich WPF UI framework that makes building rich Web applications much easier.
    • Includes a powerful Graphics And Animation Engine, as well as rich support for higher-level UI capabilities like controls, layout management, data-binding, styles, and template skinning.

The WPF UI Framework in Silverlight is a compatible subset of the WPF UI Framework features in the full .NET Framework, and enables developers to re-use skills, controls, code and content to build both rich cross browser web applications, as well as rich desktop Windows applications.

  • Rich Controls: Silverlight 2 includes a rich set of built-in controls that developers and designers can use to quickly build applications.

    • Core form controls - TextBox, CheckBox, RadioButton, ComboBox, etc.
    • Built-in layout management panels - StackPanel, Grid, Panel, etc.
    • Common functionality controls - Slider, ScrollViewer, Calendar, DatePicker, etc. and
    • Data manipulation controls - DataGrid, ListBox, etc.

All Silverlight controls support a rich control templating model, which enables developers and designers to collaborate together to build highly polished solutions.

· Rich Networking Support: Silverlight 2 includes rich networking support. It includes below.

o Out of the box support for calling REST, WS*/SOAP, POX, RSS, and standard HTTP services.

o Supports Cross Domain Network Access (enabling Silverlight clients to directly access resources and data from resources on the web).

o Support for built-in sockets networking support.

  • Rich Base Class Library: Silverlight 2 includes below.

    • Rich .NET base class library of functionality (collections, IO, generics, threading, globalization, XML, local storage, etc).
    • Includes rich APIs that enable HTML DOM/JavaScript integration with .NET code.
    • Includes LINQ and LINQ to XML library support, as well as local data caching and storage support.

The .NET APIs in Silverlight are a compatible subset of the full .NET Framework.

  • Rich Media Support: Silverlight 2 includes below.

    • Built-in Video Codecs for playing high definition video, as well as for streaming it over the web (including both live and on-demand support).
    • Includes support for Adaptively Switching Video Bitrates on the fly based on network conditions (Enabling Users To Avoid Seeing The Dreaded "Buffering..." Message), placing and metering ads within video streams, as well as enabling content protection.

The final Silverlight 2 release delivers a tremendous amount of power and flexibility that enables you to really push the boundaries of what can be done in a browser, and enable great end user experiences.

Higher Interoperability

Microsoft is partnering with Soyatec to sponsor additional tools for developing Silverlight applications using the cross platform Eclipse development platform. Click here to learn more about this and download the free Silverlight Eclipse plugin. Click here for a step-by-step tutorial that walks-through how to use their Eclipse tools today to build a Silverlight 2 application.

We are also announcing today that we are releasing the Silverlight XAML vocabulary and schema under the Open Specification Promise (OSP), which enables anyone to create products that read and write XAML for Silverlight. You can learn more about this announcement here.

Upgrading from the Beta

If you have the Beta2 or RC versions of the VS Tools for Silverlight, or the Silverlight 2 Beta SDK or Developer Editions of Silverlight 2, please make sure to uninstall these completely before downloading and installing today's release.

Thanks & Regards,

Arun Manglick Senior Tech Lead

Wednesday, November 19, 2008

Indian techies hit by recession in US

Indian techies hit by recession in US

18 Nov 2008, 2333 hrs IST, IANS

 

NEW YORK: Less than three weeks ago, Saurabh (name changed) relocated along with his family from Edison, the Indian neighborhood in New Jersey, to Silicon Valley in California as he switched jobs. Before moving, he put his house, which he had bought last year, on sale and leased an apartment at his new work place.

 

One fine morning, two weeks after he moved with bag and baggage to Silicon Valley, he was quietly handed the pink slip by his boss in his chamber along with about two dozen of his colleagues. Saurabh, who has two kids to support, is jobless again.

 

"It is very difficult, these days. There are no jobs available," Saurabh said, requesting that his name and the name of the company not be disclosed. So did others interviewed for this report.

 

Luckily enough, he has a permanent residency visa, which is more popularly known as the Green Card, because of which he can stay in this country and search for a new job. But many of his colleagues do not even have that luxury. They are getting ready to go back home as they can't live in this country on an H-1B visa if they don't have a job.

 

Reference: http://economictimes.indiatimes.com/Infotech/Indian_techies_hit_by_recession_in_US/articleshow/3727735.cms

 

Thanks & Regards,

Arun Manglick || Senior Tech Lead

 

Tech sector may lose 180,000 jobs

Tech sector may lose 180,000 jobs

 

17 Nov 2008, 1014 hrs IST, AGENCIES

 

WASHINGTON: The technology sector is on pace to lose 180,000 jobs this year, the most since 2003, amid a global economic downturn, according to a report.

 

Challenger, Gray & Christmas, Inc, a Chicago-based global consulting firm which tracks job-cut announcements, said telecommunications, electronics and computer industry companies had cut 140,422 jobs through October 31.

 

It said 69,654 tech-sector jobs had been cut in the third quarter of the year alone. That did not include major layoffs announced since October 31 such as the 5,000 to 6,000 job cuts at Sun Microsystems.

 

"At the current pace, the year-end total could reach 180,000, which would be the largest annual total since 2003, when technology firms announced 228,325 job cuts," it said.

 

A total of 107,295 tech-sector jobs were cut in 2007.

 

Reference - http://economictimes.indiatimes.com/articleshow/3721721.cms

 

 

Thanks & Regards,

Arun Manglick || Senior Tech Lead ||

 

Monday, November 17, 2008

Adding An Icon With Your URL

Hi,

There are two approaches to do it. These two approaches servers different purpose – Read Carefully.

Approach 1 –

· Select any standard Windows icon file. The .ico file *must* be in standard Windows icon file format, or it will be ignored.

· Rename the icon file *exactly* to: favicon.ico – all lowercase. No deviation from this is allowed.

· Place the favicon.ico file in the 'root' directory on your web server (where your main index page is).

Whenever your site is bookmarked, the icon will subsequently show up on the visitor's Favorites list. Unless the site is bookmarked, the icon is not shown in the url.

When they visit your site, the icon will also show in the URL window of the browser. But when you visit the next page of the same site, the icon will no logner exist.

To do this use the second approach.

Approach 2 –

Insert the following LINK tag in the <head>...</head> of your pages.

<LINK REL="SHORTCUT ICON" HREF="Images/myicon.ico">

· Change the path and icon filename to correspond to the location of the icon file on your site.

· The icon graphic filename should be lowercase, no more than eight characters, and the extension must be .ico.

· As above, the file *must* be in standard Windows icon file format or it will be ignored.

When you use this method as opposed to Method One above, the LINK REL code should appear on any page that might be bookmarked.

Note - Creating Icons

The following is an exact quote from Microsoft®:

"For Internet Explorer 5, the required size of a shortcut icon is 16x16 pixels. To create the icon, use an icon editor, such as the one included in Microsoft® Visual Studio® or one of the many other icon editors available. Regardless of the program you use, make sure you set the editor to create an icon that is 16x16 pixels. Otherwise, the icon will be ignored by Internet Explorer."

Thanks & Regards,

Arun Manglick || Senior Tech Lead


Wednesday, November 12, 2008

Silverlight 2 Released - Final

Hi,

This is about the final Silverlight Release. However, take a look at the history releases.

o Silverlight Alpha 1.0 – Sep 2007

o Silverlight Alpha 1.1 - Nov 2007

o Silverlight 2 Beta 1 -

o Silverlight 2 Beta 2 - Jun 2008

o First public Release Candidate (RC) - Sep 2008 – Last Week

o Final Silverlight 2 Released - Oct 2008

In Oct 2008, MS shipped the final release of Silverlight 2. You can download Silverlight 2, as well the Visual Studio 2008 and Expression Blend 2 tool support to target it, here.

Cross Platform / Cross Browser .NET Development

Silverlight 2 is a cross-platform browser plugin that enables rich media experiences and .NET RIAs (Rich Internet Applications) within the browser.

Silverlight 2 is small in size (4.6MB) and takes only 4-10 seconds to install on a machine that doesn't already have it. It DOES NOT REQUIRE THE .NET FRAMEWORK to be installed on a computer TO RUN - the Silverlight setup download includes everything necessary to play video or run applications.

Developers can write Silverlight applications using any .NET language (including VB, C#, JavaScript, IronPython and IronRuby). Silverlight provides a rich set of features for development including:

  • WPF UI Framework: Silverlight 2 includes below.

    • A rich WPF UI framework that makes building rich Web applications much easier.
    • Includes a powerful Graphics And Animation Engine, as well as rich support for higher-level UI capabilities like controls, layout management, data-binding, styles, and template skinning.

The WPF UI Framework in Silverlight is a compatible subset of the WPF UI Framework features in the full .NET Framework, and enables developers to re-use skills, controls, code and content to build both rich cross browser web applications, as well as rich desktop Windows applications.

  • Rich Controls: Silverlight 2 includes a rich set of built-in controls that developers and designers can use to quickly build applications.

    • Core form controls - TextBox, CheckBox, RadioButton, ComboBox, etc.
    • Built-in layout management panels - StackPanel, Grid, Panel, etc.
    • Common functionality controls - Slider, ScrollViewer, Calendar, DatePicker, etc. and
    • Data manipulation controls - DataGrid, ListBox, etc.

All Silverlight controls support a rich control templating model, which enables developers and designers to collaborate together to build highly polished solutions.

· Rich Networking Support: Silverlight 2 includes rich networking support. It includes below.

o Out of the box support for calling REST, WS*/SOAP, POX, RSS, and standard HTTP services.

o Supports Cross Domain Network Access (enabling Silverlight clients to directly access resources and data from resources on the web).

o Support for built-in sockets networking support.

  • Rich Base Class Library: Silverlight 2 includes below.

    • Rich .NET base class library of functionality (collections, IO, generics, threading, globalization, XML, local storage, etc).
    • Includes rich APIs that enable HTML DOM/JavaScript integration with .NET code.
    • Includes LINQ and LINQ to XML library support, as well as local data caching and storage support.

The .NET APIs in Silverlight are a compatible subset of the full .NET Framework.

  • Rich Media Support: Silverlight 2 includes below.

    • Built-in Video Codecs for playing high definition video, as well as for streaming it over the web (including both live and on-demand support).
    • Includes support for Adaptively Switching Video Bitrates on the fly based on network conditions (Enabling Users To Avoid Seeing The Dreaded "Buffering..." Message), placing and metering ads within video streams, as well as enabling content protection.

The final Silverlight 2 release delivers a tremendous amount of power and flexibility that enables you to really push the boundaries of what can be done in a browser, and enable great end user experiences.

Higher Interoperability

Microsoft is partnering with Soyatec to sponsor additional tools for developing Silverlight applications using the cross platform Eclipse development platform. Click here to learn more about this and download the free Silverlight Eclipse plugin. Click here for a step-by-step tutorial that walks-through how to use their Eclipse tools today to build a Silverlight 2 application.

We are also announcing today that we are releasing the Silverlight XAML vocabulary and schema under the Open Specification Promise (OSP), which enables anyone to create products that read and write XAML for Silverlight. You can learn more about this announcement here.

Upgrading from the Beta

If you have the Beta2 or RC versions of the VS Tools for Silverlight, or the Silverlight 2 Beta SDK or Developer Editions of Silverlight 2, please make sure to uninstall these completely before downloading and installing today's release.

Thanks & Regards,

Arun Manglick || Senior Tech Lead

Friday, November 7, 2008

<% %> Magic

Hi,

This blog post summarizes a few approaches of <% %> Magic.

Message Retrieval from Resource Files

var msg = '<%=GetLocalResourceObject("ValidationMsg")%>'

var msg = '<%=GetGlobalResourceObject("PageTitle", "DebtParametersOther")%>';

var msg = '<%=GetGlobalResourceObject("PageTitle", "DebtParametersOther").ToString().EncodeQuotes()%>';

// Code at Server Side

public static string EncodeQuotes(this string value)

{

return value.Replace("'", "&#39").Replace("\"", "&#34;");

}

Text Property in UI

<asp:Label ID="Label1" runat="server" Text="<%$ Resources: LabelHeader %>"></asp:Label> // // Local Resource

<asp:Label ID="Label1" runat="server" Text="<%$ Resources:Messages, LabelHeader %>"></asp:Label> // Global Resource

Eval in Grid

<asp:TemplateField HeaderText="<%$ Resources:GridviewHeader %>">

<ItemTemplate>

<asp:LinkButton id="linkButton" Text='<%# DataBinder.Eval(Container, "DataItem.DocNumber") %>' ></asp:LinkButton>

</ItemTemplate>

</asp:TemplateField>

<asp:TemplateField HeaderText="<%$ Resources:GridviewHeader %>">

<ItemTemplate>

<asp:LinkButton id="linkButton" Text='<%# Eval(“DocNumber") %>' ></asp:LinkButton>

</ItemTemplate>

</asp:TemplateField>

Document. getElementById

var lblNoError = window.document.getElementById('<%=lblNoError.ClientID %>');

Retrieving value from Server Side in JS

function HelloTime()

{

alert('<%= GetTime() %>');

}

// Code at Server Side

public string GetTime()

{

return DateTime.Now.ToString();

}

Thanks & Regards,

Arun Manglick || Senior Tech Lead