PostBack + usercontrol

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

Hi,

I have a UserControl that contain :
1 treeview
1 datagrid
and so on ...

Is there a way to postback ONLY ONE control and not all content in my Usercontrol ?

(because all contents in my usercontrol in my aspx page flicker)


Thanks !

Dany
 
No, the postback has to do with a post to the server. A post to the server
is an HTTP request for a page - not for parts of the page - IIS doesn't know
anything about that.

So the answer is no, that is just how it is. If you don't want flickering,
you will have to write lot's of javascript to do all the work on the client.
 
Dan, Marina,

There are several situations when posting the entire form is just overkill.
For those cases where you just need to post few values, something like what
Dan describes, you could use the XMLHttp component (or netscape's verbatim
XMLHttpRequest) to achieve a "soft" postback. This won't cause any
flickering. And yes, you will need to write some javascript in order to
handle this. Its not hard at all but you will need to get handy with these
components, etc. ASP.NET 2.0 will include built-in support for these
soft-postback (called "Callbacks" in the current alpha release) that should
simplify the required javascript thus making it easier to use these
functionallity in your webapps.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
 
It's goods news that ASP.NET 2.0 will include built-in support for these
soft-postback !But what's time we can get ASP.NET 2.0?

--
=====================================================
* ÃλÃÈçÕæ£¡ ¡¡¡¡*
* ÎÒºÜÕæ³Ï£¬µ«ÎÒÉú»îÔÚ»ÑÑÔÖ®ÖС£ ¡¡¡¡*
* ¡¡¡¡*
* ÎÒÅׯúÁËËùÓеÄÓÇÉËÓëÒÉÂÇ£¬È¥×·ÖðÄÇÎ޼ҵij±Ë®£¬ *
* ÖÕÓÚÕÒµ½ÁËÒ»¸ö°®ÎÒµÄÅ®ÈË£¬´Ó´ËʧȥÁË×ÔÓÉ£¡ ¡¡ *
*[csharp] °ßÖñ ÌÀ½¨¾ü ¡¡ ¡¡*
=====================================================
 
AFAIK, a public beta1 should be going out soon. As for the RTM bits, I
believe they should be out around mid-2005.

Please note that all these dates are MY speculation only, nothing official
:-)

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

ÌÀ½¨¾ü said:
It's goods news that ASP.NET 2.0 will include built-in support for these
soft-postback !But what's time we can get ASP.NET 2.0?

--
=====================================================
* ÃλÃÈçÕæ£¡ ¡¡¡¡*
* ÎÒºÜÕæ³Ï£¬µ«ÎÒÉú»îÔÚ»ÑÑÔÖ®ÖС£ ¡¡¡¡*
* ¡¡¡¡*
* ÎÒÅׯúÁËËùÓеÄÓÇÉËÓëÒÉÂÇ£¬È¥×·ÖðÄÇÎ޼ҵij±Ë®£¬ *
* ÖÕÓÚÕÒµ½ÁËÒ»¸ö°®ÎÒµÄÅ®ÈË£¬´Ó´ËʧȥÁË×ÔÓÉ£¡ ¡¡ *
*[csharp] °ßÖñ ÌÀ½¨¾ü ¡¡ ¡¡*
=====================================================
Victor Garcia Aprea said:
Dan, Marina,

There are several situations when posting the entire form is just overkill.
For those cases where you just need to post few values, something like what
Dan describes, you could use the XMLHttp component (or netscape's verbatim
XMLHttpRequest) to achieve a "soft" postback. This won't cause any
flickering. And yes, you will need to write some javascript in order to
handle this. Its not hard at all but you will need to get handy with these
components, etc. ASP.NET 2.0 will include built-in support for these
soft-postback (called "Callbacks" in the current alpha release) that should
simplify the required javascript thus making it easier to use these
functionallity in your webapps.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

doesn't
know
 
Back
Top