Tuesday, June 12, 2007

XSLT

Terms:

XSL stands for EXtensible Stylesheet Language.
XSLT stands for XSL Transformations

Styles;
CSS for HTML documents.
XSL for XML documents.

XSLT is a language for transforming XML documents into XHTML documents or to other XML documents.

XSL consists of three parts:

* XSLT - a language for transforming XML documents
* XPath - a language for navigating in XML documents
* XSL-FO - a language for formatting XML documents

A common way to describe the transformation process is to say that XSLT transforms an XML source-tree into an XML result-tree.

Source: http://www.w3schools.com/xsl/

Wednesday, June 6, 2007

Self-Signed SSL on IIS localhost

Great accomplishment to make SSL work on localhost! Worth spending couple of hours!

-Copy makecert.exe from C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin to C:\

-Run the below line on command window (cmd).

C:\>makecert -n "CN=%ComputerName%" -ss MY -sr LocalMachine -b 09/09/2006 -e 09/09/2008 -a sha1 -sky exchange -r -pe MYLocalExchangeCA.cer

%ComputerName% environment variable directly grabs your computer name.
-sky token should be "exchange".

-Then, go to IIS > The Web Site root > Properties > Directory Security > Secure Communications > Server Certificate > "Assign an existing certificate" > Choose the certificate > Next until Finish. (I'm sorry if you don't see any certificates, something should be wrong.)


-On the Default Web Site or a Virtual Directory, go to Directory Security tab again > Secure Communications > "Edit" button & make sure "Require Secure Channel (SSL)" is checked.


-go type https://localhost/ OR https://localhost/[virtual directory] in your browser.
-ignore the warning
-see your site working!

Sunday, May 27, 2007

Marking BLL Dataobjects

-CLASS

[System.ComponentModel.DataObject]
public class ProductsBusinessLogic

-METHOD

[System.ComponentModel.DataObjectMethodAttribute
(System.ComponentModel.DataObjectMethodType.Select, true)]
public ProductsDataTable GetProducts()

"The DataObject attribute marks the class as being an object suitable for binding to an ObjectDataSource control, whereas the DataObjectMethodAttribute indicates the purpose of the method. As we'll see in future tutorials, ASP.NET 2.0's ObjectDataSource makes it easy to declaratively access data from a class. To help filter the list of possible classes to bind to in the ObjectDataSource's wizard, by default only those classes marked as DataObjects are shown in the wizard's drop-down list. The ProductsBLL class will work just as well without these attributes, but adding them makes it easier to work with in the ObjectDataSource's wizard."

source: http://asp.net/learn/dataaccess/tutorial02cs.aspx?tabid=63
**************
nullable types

int?
decimal?

Friday, May 25, 2007

Use Class Library for DAL

Creating the Data Access Layer
from http://asp.net

When working with data one option is to embed the data-specific logic directly into the presentation layer (in a web application, the ASP.NET pages make up the presentation layer). This may take the form of writing ADO.NET code in the ASP.NET page's code portion or using the SqlDataSource control from the markup portion. In either case, this approach tightly couples the data access logic with the presentation layer. The recommended approach, however, is to separate the data access logic from the presentation layer. This separate layer is referred to as the Data Access Layer, DAL for short, and is typically implemented as a separate Class Library project.

******************************************

W3 Schools Javascript tutorial