Sunday, December 9, 2007

Asp.Net and Java Script

What is right with java script

Every one knows thousands of codes are there of java script and CSS while you are developing a site. You should have have knowledge of java script while developing sites......so what is the right with java script

Over the last few years, the amount of JavaScript code you'll find in the typical web application has surged. There are a couple good reasons for the surge:

* JavaScript is ubiquitous
* JavaScript is mature

Ubiquity
If you want to write an application that will reach as many users as possible, then you'll be writing a web application. You can reach users on Windows, Macintosh, Linux, and hundreds of other platforms on devices both large and small.

How will you make a web application interactive? You'll use JavaScript. Your users won't have to install a runtime, or an ActiveX control, or download some interpreting engine. They'll install a web browser that includes JavaScript support, as so many do, and they'll happily use your application. JavaScript is the most ubiquitous programming language on the planet.
Maturity

As the demand for JavaScript code has increased, the frameworks and libraries of well-tested and robust JavaScript code have begun to emerge. Many of these frameworks abstract away the browser idiosyncrasies we discussed earlier, and can greatly reduce the amount of time we invest in writing and debugging cross-platform JavaScript code. Here are some of the most popular frameworks:

* ASP.NET AJAX
* Prototype
* Script.aculo.us
* The Dojo Toolkit
* Yahoo! UI Library

We've also begun to see the emergence of proven practices and design patterns. The practices put the object oriented features of JavaScript to good use. What's that? You didn't know JavaScript was object oriented? We might not have applied OOP practices to JavaScript code over the last few years, but the capability does exist.

Thursday, October 4, 2007

Improvements in ASP.NET 2.0

ASP.NET 2.0 was designed to make web development easier and quicker.

Design goals for ASP.NET 2.0:

  • Increase productivity by removing 70% of the code
  • Use the same controls for all types of devices
  • Provide a faster and better web server platform
  • Simplify compilation and installation
  • Simplify the administration of web applications
  • What's New in ASP.NET 2.0?

    Some of the new features in ASP.NET 2.0 are:

  • Master Pages, Themes, and Web Parts
  • Standard controls for navigation
  • Standard controls for security
  • Roles, personalization, and internationalization services
  • Improved and simplified data access controls
  • Full support for XML standards like, XHTML, XML, and WSDL
  • Improved compilation and deployment (installation)
  • Improved site management
  • New and improved development toolsMaster Pages
  • ASP.NET didn't have a method for applying a consistent look and feel for a whole web site.

    Master pages in ASP.NET 2.0 solves this problem.

    A master page is a template for other pages, with shared layout and functionality. The master page defines placeholders for content pages. The result page is a combination (merge) of the master page and the content page.

Themes

  • Themes is another feature of ASP.NET 2.0. Themes, or skins, allow developers to create a customized look for web applications.

    Design goals for ASP.NET 2.0 themes:

  • Make it simple to customize the appearance of a site
  • Allow themes to be applied to controls, pages, and entire sites
  • Allow all visual elements to be customized
Web Parts

ASP.NET 2.0 Web Parts can provide a consistent look for a site, while still allowing user customization of style and content.

New controls:

  • Zone controls - areas on a page where the content is consistent
  • Web part controls - content areas for each zone

Navigation

ASP.NET 2.0 has built-in navigation controls like

  • Site Maps
  • Dynamic HTML menus
  • Tree Views
Security

Security is very important for protecting confidential and personal information.

In ASP.NET 2.0 the following controls has been added:

  • A Login control, which provides login functionality
  • A LoginStatus control, to control the login status
  • A LoginName control to display the current user name
  • A LoginView control, to provide different views depending on login status
  • A CreateUser wizard, to allow creation of user accounts
  • A PasswordRecovery control, to provide the "I forgot my password" functionality
Roles and Personalization

Internet communities are growing very popular.

ASP.NET 2.0 has personalization features for storing user details. This provides an easy way to customize user (and user group) properties.

Internationalization

Reaching people with different languages is important if you want to reach a larger audience.

ASP.NET 2.0 has improved support for multiple languages.

Data Access

Many web sites are data driven, using databases or XML files as data sources.

With ASP.NET this involved code, and often the same code had to be used over and over in different web pages.

A key goal of ASP.NET 2.0 was to ease the use of data sources.

ASP.NET 2.0 has new data controls, removing much of the need for programming and in-depth knowledge of data connections.

Mobility Support

The problem with Mobile devices is screen size and display capabilities.

In ASP.NET, the Microsoft Mobile Internet Toolkit (MMIT) provided this support.

In ASP.NET 2.0, MMIT is no longer needed because mobile support is built into all controls.

Images

ASP.NET 2.0 has new controls for handling images:

  • The ImageMap control - image map support
  • The DynamicImage control - image support for different browsers

These controls are important for better image display on mobile devices, like hand-held computers and cell phones.

Automatic Compilation

ASP.NET 2.0 provides automatic compilation. All files within a directory will be compiled on the first run, including support for WSDL, and XSD files.

Compiled Deployment (Installation) and Source Protection

ASP.NET 2.0 also provides pre-compilation. An entire web site can be pre-compiled. This provides an easy way to deploy (upload to a server) compiled applications, and because only compiled files are deployed, the source code is protected.

Site Management

ASP.NET 2.0 has three new features for web site configuration and management:

  • New local management console
  • New programmable management functions (API)
  • New web-based management tool
Development Tools

With ASP.NET Visual Studio.NET was released with project and design features targeted at corporate developers.

With ASP.NET 2.0, Visual Studio 2005 was released.

Key design features for Visual Studio 2005 include:

  • Support for the features described above
  • Upload files from anywhere (FTP, File System, Front Page....)
  • No project files, allowing code to be manipulated outside Visual Studio
  • Integrated Web Site Administration Tool
  • No "build" step - ability to compile on first run

Visual Web Developer is a new free ASP.NET 2.0 tool for non-corporate developers who don't have access to Visual Studio.NET.

Tuesday, September 25, 2007

How to create a link exhcange directory in ASP.Net 2.0 using C# with Sql Server 2000

In this post we will discuss how we can create a link exchange directory by using asp.net 2.0 and c#. This could be a interesting project for beginner in asp.net. The script for this type of directories are available on internet free.....

Here i will also publish the whole source code of directory

First of all open a new website project and give it to name.

1. Create a Admin folder where you will place your all admin forum to manage the directory user interface

2. Add two web config files
- one in Admin folder
- other in your root folder

Sunday, September 23, 2007

The DataReader Class

A DataReader allows you to read the data returned by a SELECT command one record at a time, in a forward-only, read-only stream. This is sometimes called a firehose cursor. Using a DataReader is the simplest way to get to your data, but it lacks the sorting and relational abilities of the disconnected DataSet described in Chapter 8. However, the DataReader provides the quickest possible no-nonsense access to data.

Read() Advances the row cursor to the next row in the stream. This method must also be called before reading the first row of data. (When the DataReader is first created, the row cursor is positioned just before
the first row.) The Read() method returns true if there’s another row
to be read, or false if it’s on the last row.
GetValue() Returns the value stored in the field with the specified column name or index, within the currently selected row. The type of the returned value is the closest .NET match to the native value stored in the data source. If you access the field by index and inadvertently पास an invalid index that refers to a nonexistent field, you will get an
IndexOutOfRangeException exception. You can also access the same
value by name, which is slightly less efficient because the DataReader
must perform a lookup to find the column with the specified name.
GetValues() Saves the values of the current row into an array. The number of fields that are saved depends on the size of the array you pass to this method. You can use the DataReader.FieldCount property to
determine the number of fields in a row, and you can use that
information to create an array of the right size if you want to save
all the fields.

Monday, September 10, 2007

dgdfgdf

dfgdf
gdf
gdf
gd
g
dfg
e
g

gd
fg


fgdfgdgdfgdfg