Stopping post backs possible??

  • Thread starter Thread starter ALPO
  • Start date Start date
A

ALPO

I would like to work in a grid, paging, calculations on a
dataset cached in viewstate, etc without posting back.
Basically I would like to operate on the page without
having to go back to the server for a response. I am
thinking that could take out the "runat=server"
declarations in HTML. WIll that work or is there a better
way? Is there any way to do it?
 
If you remove runat="server" you will just be rendering the literal text of
your controls, which the browser has no idea what to do with. If you want to
do everything on the client, then you are going to have to roll your own
functionality and take your actions using JavaScript instead of using the
classes and events that the framework exposes. ASP.NET is VERY
server-centric in its thinking, because that's where it has the most control
over what happens.
 
You can use webservices behaviours with some java coding client side to refresh
only a portion of your page. In this case, the section where you have your
datagrid.

Joao Cardoso (MVP dotNET)
=======================================================
[LusoCoders]- http://groups.yahoo.com/group/lusocoders/
[PontoNetPT]- http://www.programando.net/regras.aspx
(e-mail address removed)-s.p-a.m - www.acinet.pt
=======================================================
 
Back
Top