About
Download
Pricing/Purchase Info
Highlights
FAQ
How-To
Tutorials
Learn ASP Express
Tech Support
Bug Report
Hosting
Resources
Home
Forums

Peace - Now and Forever
dot
ASP Express
The last editor you'll ever need
Untitled
Syntax Changes in ASP.Net
Here are some of the new syntax changes in Beta 2 ASP.Net. It is not complete of course, but as more are found, they will be added.

DATA
Old (Beta 1)   >   New (Beta 2)
System.Data.SQL   >   System.Data.SqlClient
SQLConnection  >   SQLConnection
SQLCommand  >   SQLCommand
SQLDataSetCommand  >   SQLDataAdapter
SQLDataReader  >   SQLDataReader
SQLDataSetCommand.FillDataSet()  >   SQLDataAdapter.Fill() - note that .Fill replaces .FillDataSet
System.Data.ADO   >   System.Data.OleDb
ADOConnection  >   OleDbConnection
ADOCommand  >   OleDbCommand
ADODataSetCommand  >   OleDbDataAdapter
ADODataReader  >   OleDbDataReader
ADODataSetCommand.FillDataSet()  >   OleDbDataAdapter.Fill() - note that .Fill replaces .FillDataSet

E.SortField - for sorting with DataGrid   >   E.Expression

TEMPLATES

Old (Beta 1)   >   New (Beta 2)
<template name="HeaderTemplate"> </template>   >   <HeaderTemplate> </HeaderTemplate>
<template name="ItemTemplate"> </template>   >   <ItemTemplate> </ItemTemplate>
<template name="AlternatingItemTemplate"> </template>   >   <AlternatingItemTemplate> </AlternatingItemTemplate>
<template name="FooterTemplate"> </template>   >   <FooterTemplate> </FooterTemplate>
The same format also applies to Separator, SelectedItem, and EditItem

MISC

Old (Beta 1)   >   New (Beta 2)
config.web   >   web.config
dbCommand.execute(mysqldatareader)   >   dbCommand.ExecuteReader()
<%@OutputCache duration = "3600"%>   >   <%@OutputCache VaryByParam = duration duration = "3600"%>

NEW!! --> Be sure to check out our new section:
ASP.Net Code Samples
And, as always, remember ASP Express for all your ASP and ASP.Net needs - the first ASP editor with ASP.Net functionality

Send your comments, questions or suggestions via E-Mail to : (suggestions@aspexpress.com)