>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

JavaScript with ASP.NET 2.0 Pages - Part 1 - aspnet javascript script server asp runat web form

 
Registered tutorials: 501
Registered Users: 33125



Rating: 5 out of 1 votes cast


  
Category: Ajax and .NET

Tags Map

add april article asp aspnet attach august autocomplete blocks boundfield box build button call called categoryid class client clientscript code column common confirm control controls custom datafield datagrid days december defaultfocus delete demand dropdownlist easy email embedded enhancements event eventargs february file files focus form function gridview handler headertext id include including inject injecting january javascript july june language linkbutton march method methods november object october onclick onclientclick onitemdatabound page pageload pageregisterstartupscript pages parameter popupscript position posts properties property protected register resource resources return rss runat sbappend script sender september server service set setting side specific sqldatasource steps string tags tasks templatefield text textbox type void ways web work working xml

Keyword Cloud Navigation Map

JavaScript with ASP.NET 2.0 Pages - Part 1

Digg this   Post to del.icio.us

Abstract: This article explores the enhancements and the various ways of injecting JavaScript programmatically into ASP.NET 2.0 pages

Introduction

In ASP.NET 1.x days, many client-side tasks, such as tracking mouse events, setting page focus, displaying/hiding a section of page, was not directly supported by asp.net. This is because ASP.NET applications are server-based; all web control events are handled on the server side. The constant round trips to and from server often slows down work processes, and the page-refreshing often ensured a web form would to lose its focus or its scroll position. Therefore programmers still rely on a multitude of JavaScript to keep web pages nimble and responsive. However, in ASP.NET 1.x, injecting JavaScript always involves two steps and quite some code: First, you weave your JavaScript function into a string in your code-behind page; second, you use the Page class of your web form to register the script, using either the Page.RegisterStartupScript or the Page.RegisterClientScriptBlock method.

ASP.NET 2.0 has inherited some of the ASP.NET 1.x approaches of including JavaScript in a web form. Moreover, it has added many methods and properties to smooth and simplify the handling of some of the most common client-side tasks. It has also introduced new ways to include JavaScript on the server side or load JavaScript from resources. In this article will go into detail of the enhancements and the various ways of working with Script code in ASP.NET 2.0.


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 363
Unique Hits: 333


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 1 1.1 1.7 1.9 11.8 13.6
Current 6 7 6 7 6 7
Previous 1 1 4 4 8 9
Nov 29 1 1 2 2 8 8
Nov 28 0 0 0 0 8 8
Nov 27 0 0 0 0 22 28
Nov 26 0 0 0 0 7 7
Nov 25 1 1 2 3 7 8
Nov 24 0 0 0 0 0 0
Nov 23 1 1 2 2 5 5
Nov 22 0 0 1 1 47 56
Highest 7 8 17 21 47 56


Script Execution Time: 1.87813 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2