Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Stopping post backs possible?? (http://www.velocityreviews.com/forums/t67296-stopping-post-backs-possible.html)

ALPO 11-21-2003 03:44 PM

Stopping post backs possible??
 
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?

Chris Jackson 11-21-2003 04:02 PM

Re: Stopping post backs possible??
 
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.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"ALPO" <anonymous@discussions.microsoft.com> wrote in message
news:05f201c3b046$5e252dc0$a001280a@phx.gbl...
> 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?




Joao S Cardoso [MVP] 11-21-2003 04:40 PM

Re: Stopping post backs possible??
 
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
jjscc@acinet.pt.n.o-s.p-a.m - www.acinet.pt
================================================== =====


All times are GMT. The time now is 04:17 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57