Refresh Trigger

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

ASP.NET 3.5

I have a web page and this web page has a DataList, when user hovers the
mouse over a picture in the datalist a popup appers, this popup is a User
Control and it has a cancel button. After the user clicks on the cancel
button I want the DataList to refresh its self. How can I do that - how can
I tell the DataList or the parent web page to refresh it's self from the
Popup / User Control?


Thank You


Peter
 
this need to be done in javascript. you can call routine in the
window.opener to do a postback.

a better design would be to use a floating div instead of a new window.
then list could be updated with a simple postback.

-- bruce (sqlwork.com)
 
bruce barker said:
this need to be done in javascript. you can call routine in the
window.opener to do a postback.

a better design would be to use a floating div instead of a new window.
then list could be updated with a simple postback.

-- bruce (sqlwork.com)


I've tried window.location.reload();
which works, but it refreshes the entire window and I would like to refresh
only the UpdatePanel where the DataList resides?

Is there a way to do that?
 
Hi Peter,

To refresh the UpdatePanel we need to get the UpdatePanel client id first.
You can view source of the page at client side to find it. Then we can
call this function in JavaScript to refresh the UpdatePanel:

__doPostBack("UpdatePanel_ClientID","args here. You can pass any strings");


Please have a try and let me know if it works.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Peter" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: Re: Refresh Trigger
| Date: Wed, 12 Nov 2008 09:59:26 -0600
| Lines: 35
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
| X-RFC2646: Format=Flowed; Response
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
| Message-ID: <ulaXk#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: CPE-72-129-145-58.new.res.rr.com 72.129.145.58
| Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:79738
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| | > this need to be done in javascript. you can call routine in the
| > window.opener to do a postback.
| >
| > a better design would be to use a floating div instead of a new window.
| > then list could be updated with a simple postback.
| >
| > -- bruce (sqlwork.com)
| >
| > Peter wrote:
| >> ASP.NET 3.5
| >>
| >> I have a web page and this web page has a DataList, when user hovers
the
| >> mouse over a picture in the datalist a popup appers, this popup is a
User
| >> Control and it has a cancel button. After the user clicks on the
cancel
| >> button I want the DataList to refresh its self. How can I do that -
how
| >> can I tell the DataList or the parent web page to refresh it's self
from
| >> the Popup / User Control?
| >>
| >>
| >> Thank You
| >>
| >>
| >> Peter
|
|
| I've tried window.location.reload();
| which works, but it refreshes the entire window and I would like to
refresh
| only the UpdatePanel where the DataList resides?
|
| Is there a way to do that?
|
|
|
 
Allen Chen said:
Hi Peter,

To refresh the UpdatePanel we need to get the UpdatePanel client id first.
You can view source of the page at client side to find it. Then we can
call this function in JavaScript to refresh the UpdatePanel:

__doPostBack("UpdatePanel_ClientID","args here. You can pass any
strings");


Please have a try and let me know if it works.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support
Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
| From: "Peter" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: Re: Refresh Trigger
| Date: Wed, 12 Nov 2008 09:59:26 -0600
| Lines: 35
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
| X-RFC2646: Format=Flowed; Response
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
| Message-ID: <ulaXk#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: CPE-72-129-145-58.new.res.rr.com 72.129.145.58
| Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:79738
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| | > this need to be done in javascript. you can call routine in the
| > window.opener to do a postback.
| >
| > a better design would be to use a floating div instead of a new
window.
| > then list could be updated with a simple postback.
| >
| > -- bruce (sqlwork.com)
| >
| > Peter wrote:
| >> ASP.NET 3.5
| >>
| >> I have a web page and this web page has a DataList, when user hovers
the
| >> mouse over a picture in the datalist a popup appers, this popup is a
User
| >> Control and it has a cancel button. After the user clicks on the
cancel
| >> button I want the DataList to refresh its self. How can I do that -
how
| >> can I tell the DataList or the parent web page to refresh it's self
from
| >> the Popup / User Control?
| >>
| >>
| >> Thank You
| >>
| >>
| >> Peter
|
|
| I've tried window.location.reload();
| which works, but it refreshes the entire window and I would like to
refresh
| only the UpdatePanel where the DataList resides?
|
| Is there a way to do that?
|
|
|

Thank You !

That works!
 
Back
Top