Wednesday, February 25, 2009

How to make an inherited editable region uneditable

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16416

"javascript:" is replaced to "" in HyperLinkField

For security reason, ASP.net automatically replace the "javascript:" in the hyperlinkfield to empty string.

In order to run javascript function, you would better add the event by navigate DOM tree to do so.

Control Execution Lifecycle

The server loads an ASP.NET page every time it is requested and then unloads it after the request is completed. The page and the server controls it contains are responsible for executing the request and rendering HTML back to the client. Although the communication between the client and the server is stateless and disconnected, the client experience must appear to be that of a continuously executing process.
This illusion of continuity is created by the ASP.NET page framework and by the page and its controls. On postback, a control must behave as if it were starting where it left off at the end of the previous Web request. The ASP.NET page framework makes it relatively easy to perform state management, but control developers must be aware of the control execution sequence to achieve the effect of continuity. Control developers need to understand which information is available to a control at each phase in its lifecycle, which data is persisted, and what the control's state is when it is rendered. For example, a control is unable to invoke its parent until the tree of controls on a page has been populated.

http://msdn.microsoft.com/en-us/library/aa719775(VS.71).aspx

Saturday, February 21, 2009

Introduction to Web Application Projects

Purpose of Web Application Projects
The goal of Web application projects is to address some of the feedback we have heard from customers. Some developers find migrating Visual Studio .NET 2003 applications to the new Web site model in Visual Studio 2005 impractical, especially because precompiling (publishing) a Visual Studio 2005 Web site creates multiple assemblies.
The new Web application project type also enables some scenarios where Visual Studio 2005 Web projects are different than in the previous version of Visual Studio. For example, the new model has different semantics for Web subprojects where the subproject is not an ASP.NET or IIS application, but instead feeds its generated assembly to a parent application's Bin folder.

http://msdn.microsoft.com/en-us/library/aa730880(VS.80).aspx

Useful when choosing which type of projects to use.

Thursday, February 19, 2009

Creating and working with content using Dreamweaver

To update large amount of HTML pages, dreamweaver is one of a great tool that can greatly reduce our workload. It includes templates and library items which can reduce repetitive work.
Let's see the following instruction to learn about it:

http://www.adobe.com/devnet/dreamweaver/golive_migration/content/content.html

Dreamweaver provides an intuitive and simple environment for creating and editing content. Through the use of the Properties inspector and the various other panels, creating your content, exactly how you want it, takes no time at all.
Working with templates
Working with snippets
Working with Library items

Thursday, February 12, 2009

Use javascript to check the loading of the page

document.onreadystatechange=function() {
if (document.readyState=="complete") {
//your work
}
}

Friday, February 6, 2009