View Single Post
  #6 (permalink)  
Old June 7th, 2005, 01:09 PM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Instead of hardcoding the postback method name in your page script, I'd recommend you use the GetPostBackEventReference() method off the Page class. This will return you the generated method name and will most likely be forward compatible. It also handles the issue of ensuring that the client-side method is emitted to the page markup.

http://msdn.microsoft.com/library/en...rencetopic.asp

ASP.NET 2.0 has a feature call "client call-backs" which perform exactly what you are looking for. They can be activated within the 2.0 GridView control (similar to DataGrid) so that the body of the grid is redrawn without the need for a full page postback.

-Peter
Reply With Quote