Basically, you cannot call server side methods from client side script directly. Server side methods will execute at server side, client side script at client side, they live at two different worlds.However, to call a server side method from client side, you can pass some information to the server as a request for an action, which can trigger a code behind method.One simple solution to communicate with server from client side is to provide a hidden input field to store some flag or information and to read them on the server...
Friday, May 30, 2008
How to call Server Side Methods from Client Side Script in ASP .NET
Author: xiaoyu
| Posted at: 9:03 PM |
Filed Under:
.NET,
AJAX,
javascript
Thursday, May 22, 2008
@@IDENTITY, SCOPE_IDENTITY and IDENT_CURRENT in Transact-SQL
Author: xiaoyu
| Posted at: 9:29 AM |
Filed Under:
sql server
In Transact-SQL, you can use @@IDENTITY keyword to retrieve the value of the identity column whenever an INSERT, SELECT INTO or bulk copy statement is completed. It contains the last value that is generated by the statement.For example, the query below inserts a new record into a table and returns a result set containing the ID of the inserted record.INSERT INTO myTable (myName) VALUES (‘E-JULY’)SELECT @@IDENTITY AS [@@IDENTITY] --Last inserted identity value will be insertedHowever, beware of a potential for a subtle bug in...
Friday, May 16, 2008
Global.asax in ASP .NET
Author: xiaoyu
| Posted at: 11:18 PM |
Filed Under:
.NET

The Global.asax, which also known as ASP .NET application file, is located in the root directory of an ASP .NET application. This file contains codes that are executed in response to application-level and session-level events rose by ASP .NET or by HTTP modules. There are a few things that needs to be take note about Global.asax, as below: The Global.asax is an optional file. You can remove the file if it is unnecessary....
Subscribe to:
Posts (Atom)