Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Post back in a part of a web page not all the page

Reply
Thread Tools

Post back in a part of a web page not all the page

 
 
Ahmed Hashem
Guest
Posts: n/a
 
      11-29-2003
Hi All;
I hope that you can help me in replying to my question. I have a web form
that have many post backs to get data from the web server. Every time I use
one of those post backs all the page is posted back to the server(This is
not almost welcomes by the user). I want only the part only to be refreshed
or posted back(assuming that we put it in something like panel).
I heared that I can use the <div> tage to fix this problem. I tried it but
not working. If so is there any alternatives.
I hope that you can kindly answer my question.
Best Regards;
Hashem


 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      11-29-2003
Hashem,

You could use iFrames. But they are IE compatible only.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Ahmed Hashem" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All;
> I hope that you can help me in replying to my question. I have a web form
> that have many post backs to get data from the web server. Every time I

use
> one of those post backs all the page is posted back to the server(This is
> not almost welcomes by the user). I want only the part only to be

refreshed
> or posted back(assuming that we put it in something like panel).
> I heared that I can use the <div> tage to fix this problem. I tried it but
> not working. If so is there any alternatives.
> I hope that you can kindly answer my question.
> Best Regards;
> Hashem
>
>



 
Reply With Quote
 
 
 
 
Alvin Bruney
Guest
Posts: n/a
 
      11-29-2003
Don't know where you got that div tag thing from. About the only thing you
can do is either use an iFrame, which doesn't really solve the problem but
puts a bandaid over it, or you can try turning on smart navigation which is
supposed to refresh only the changed items on the screen. Even this works
marginal for applications and it introduces a whole slew of other unwanted
buggy 'features'.

I'd recommend that you just get smart about roundtripping data. For
instance, if you would cache some common data (stuff contained in dropdown
lists for example) on one postback and bind it to controls then these
controls would not have to post back to get that data as they would already
be there - simple stuff like that makes for a pleasant user experience.

Also, I don't think users really mind the postback if it is quick and there
is not much delay. Users get ****ed when it takes 5 seconds or more to make
different selections in a drop down for example and with good reason. Get
clever about viewstate, use server controls only when absolutely needed and
cache data whenever possible using the four levels of caching provided by
ASP.NET. Together, all of these improve the user experience, which is what
counts anyway. It's easy to build a web application, it's difficult to
master the skill of building a good web application.

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"Ahmed Hashem" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All;
> I hope that you can help me in replying to my question. I have a web form
> that have many post backs to get data from the web server. Every time I

use
> one of those post backs all the page is posted back to the server(This is
> not almost welcomes by the user). I want only the part only to be

refreshed
> or posted back(assuming that we put it in something like panel).
> I heared that I can use the <div> tage to fix this problem. I tried it but
> not working. If so is there any alternatives.
> I hope that you can kindly answer my question.
> Best Regards;
> Hashem
>
>



 
Reply With Quote
 
James Radke
Guest
Posts: n/a
 
      12-01-2003
Ahmed,

What I have done to solve that very problem is to enhance my ASPX page with
client side javascript. The client-side javascript calls a webservice
function contained within my web/intranet site which retrieves the necessary
data from the server, and then the javascript modifies the required
client-side fields appropriately. This works fine for me in almost every
instance. The only downside is that I cannot re-do a datagrid in this
manner - that has to remain as a postback event.

I have even taken to performing some client-side validation this way to
eliminate the round-tripping / passing of data when the page contains a lot
of information. This really makes the user experience much better as it
eliminates the 'flicker' of the page while it refreshes, and makes the
backgound commands execute faster.

A great article that I used as the basis for my code can be found at:

http://www.fawcette.com/vsm/2002_06/...efault_pf.aspx

If you have any questions, let me know!

Thanks!

Jim

"Ahmed Hashem" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All;
> I hope that you can help me in replying to my question. I have a web form
> that have many post backs to get data from the web server. Every time I

use
> one of those post backs all the page is posted back to the server(This is
> not almost welcomes by the user). I want only the part only to be

refreshed
> or posted back(assuming that we put it in something like panel).
> I heared that I can use the <div> tage to fix this problem. I tried it but
> not working. If so is there any alternatives.
> I hope that you can kindly answer my question.
> Best Regards;
> Hashem
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does a dynamic control load post back data across post back?? =?Utf-8?B?Z29yaWxsYQ==?= ASP .Net 1 05-25-2007 05:02 AM
Variable displays at one part while does not in another part in a Jack ASP General 8 05-10-2005 07:26 PM
How can I send back(Post back) some values from client machine Joby ASP .Net 0 05-14-2004 04:19 AM
Re: Hey Kathy, a while back didn't you post a little thing to help remember IRQ and DMA assignments? If so please re-post. Geoff A+ Certification 1 02-09-2004 12:14 AM
Post back in a part of a web page not all the page Ahmed Hashem ASP .Net Web Controls 3 12-01-2003 08:18 PM



Advertisments