473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Refresh Trigger

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
Nov 11 '08 #1
4 2786
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

Nov 12 '08 #2

"bruce barker" <no****@nospam.comwrote in message
news:O7*************@TK2MSFTNGP06.phx.gbl...
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?
Nov 12 '08 #3
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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#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/subs.../aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Peter" <cz****@nospam.nospam>
| References: <uT**************@TK2MSFTNGP02.phx.gbl>
<O7*************@TK2MSFTNGP06.phx.gbl>
| 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: <ul**************@TK2MSFTNGP05.phx.gbl>
| 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!TK2MSF TNGP05.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:79738
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| "bruce barker" <no****@nospam.comwrote in message
| news:O7*************@TK2MSFTNGP06.phx.gbl...
| 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?
|
|
|

Nov 13 '08 #4

"Allen Chen [MSFT]" <v-******@online.microsoft.comwrote in message
news:Lk**************@TK2MSFTNGHUB02.phx.gbl...
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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#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/subs.../aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
| From: "Peter" <cz****@nospam.nospam>
| References: <uT**************@TK2MSFTNGP02.phx.gbl>
<O7*************@TK2MSFTNGP06.phx.gbl>
| 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: <ul**************@TK2MSFTNGP05.phx.gbl>
| 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!TK2MSF TNGP05.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:79738
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| "bruce barker" <no****@nospam.comwrote in message
| news:O7*************@TK2MSFTNGP06.phx.gbl...
| 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!
Nov 13 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andrew Alger | last post by:
ok i have two forms. Customer.aspx and Parent_Searh.aspx. There is a button on Customer.aspx that when executed runs javascript code to open up parent_search as a popup. After the user searches...
1
by: Matt | last post by:
When we refresh the page (F5, or icon in browser), it will first trigger ONUNLOAD event and then trigger ONLOAD event. When we close the browser (X on right top icon), it will trigger ONUNLOAD...
4
by: Rob Koch | last post by:
What's the best way to refresh a usercontrol using a parameter? My usercontrol is just a DataList that retrieves data from SQL in association with a public propterty. I click on a LinkButton in...
1
by: francois | last post by:
I have a ASPX form with a dropdownlist that makes a post back (to the same page of course, just a normal asp.net postback) That page also has an auto refresh javascript as it needs to refresh its...
1
by: ppatel | last post by:
Problem I have a problem with web image button control click event. The click event does not get trigger until it has not been clicked once or page refresh occures(which is fine). When click...
3
by: SS | last post by:
Hi, I don't want to refresh a web page to query and display database. I want the page shows information immediately when database changes. What kind of technology or method would be able to...
4
by: midlothian | last post by:
Hello, I have conditional formatting set up on a subform based on a calculated value in the underlying query. For instance, if Sales are >$1000, the query displays "Yes," otherwise it displays...
1
by: ravitunk | last post by:
hello all.....Is there a way to refresh an ASP.net page from SQL Server 2000??????? or i also have an after insert trigger for a table.....Can i refresh ASP.net page from trigger?????
3
by: BD | last post by:
I'm doing some cross-platform development, under LUW 8.2 (Windows) for z/OS 8. I have some fairly complex queries which address some rather large tables. One query takes approximately 30...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.