Stopping post backs possible??

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?
 
C

Chris Jackson

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.
 
J

Joao S Cardoso [MVP]

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
=======================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top