Refresh Trigger

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?

Advertisements

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
>
>

Advertisements

"bruce barker" <> wrote in message
news:...
> 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?

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: .

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" <>
| References: <>
<>
| 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#>
| 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
|
|
| "bruce barker" <> wrote in message
| news:...
| > 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?
|
|
|

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!