By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 971 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

PostBack + usercontrol

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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" <pr****@hotmail.com> wrote in message
news:b2*************************@posting.google.co m...
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

Nov 18 '05 #2

P: n/a
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

"Marina" <so*****@nospam.com> wrote in message
news:eB**************@TK2MSFTNGP12.phx.gbl...
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" <pr****@hotmail.com> wrote in message
news:b2*************************@posting.google.co m...
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


Nov 18 '05 #3

P: n/a
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?

--
================================================== ===
* 梦幻如真!   *
* 我很真诚,但我生活在谎言之中。   *
*   *
* 我抛弃了所有的忧伤与疑虑,去追逐那无家的潮水, *
* 终于找到了一个爱我的女人,从此失去了自由!   *
*[csharp] 斑竹 汤建军    *
================================================== ===
"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPAM.com> 写入消息
news:uc**************@tk2msftngp13.phx.gbl...
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

"Marina" <so*****@nospam.com> wrote in message
news:eB**************@TK2MSFTNGP12.phx.gbl...
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" <pr****@hotmail.com> wrote in message
news:b2*************************@posting.google.co m...
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



Nov 18 '05 #4

P: n/a
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

"汤建军" <ta******@hotmail.com> wrote in message
news:Om*************@tk2msftngp13.phx.gbl...
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?

--
================================================== ===
* 梦幻如真!   *
* 我很真诚,但我生活在谎言之中。   *
*   *
* 我抛弃了所有的忧伤与疑虑,去追逐那无家的潮水, *
* 终于找到了一个爱我的女人,从此失去了自由!   *
*[csharp] 斑竹 汤建军    *
================================================== ===
"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPAM.com> 写入消息
news:uc**************@tk2msftngp13.phx.gbl...
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
"Marina" <so*****@nospam.com> wrote in message
news:eB**************@TK2MSFTNGP12.phx.gbl...
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" <pr****@hotmail.com> wrote in message
news:b2*************************@posting.google.co m...
> 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



Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.