.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Problems refreshing parent page

Posted By:      Posted Date: October 13, 2010    Points: 0   Category :ASP.Net


I have a parent page which open a client page with window.open. In this client page I add a data entry. After that I want to refresh the parent page because there is ja list of entrys int the master page. This is the code:

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "RefreshParent", ";window.opener.document.forms(0).submit();", true);

The parent page refreshes but only the content and not the master. My data list is in an updatepanel of the master page.

View Complete Post

More Related Resource Links

Refreshing thumbnail image on parent page on body unload of popup window


Hi, I am facing a problem in refreshing the thumnail image on parent page after body unload method of popup is called.

Below is th JS function I am calling on body unload of popup. Please note that parent window is refreshing but image thumbnail still shows old image. After I refresh the page for second time I see the new thumbnail.

Thannks & Regards

  function refreshParent() {





Refresh Parent Page


i having a grid and in a grid i have a template feild column called Edit Comment's

as soon as user click on edit comment's a pop up window gets open and user can add the following comment's

and click ok to save

now on my OK Button i have implemented my code to close down the Pop up

but only this is that the changes which are being made are not being displayed untill i referesh the browser

so is there a way where i can refresh my parent page from child popup page

thank you

AutoPostback in Repeater in UpdatePanel is refreshing the page

Here's quite a weird problem:I've got a TextBox with AutoPostBack="true" and OnTextChanged property set.The textbox is located inside a Repeater, which in turn is located inside an UpdatePanel.Problem is - whenever the TextBox postsback, the whole page gets reloaded, instead of the UpdatePanel only.Here's how the thing looks:<asp:UpdatePanel runat="server"> <ContentTemplate> <asp:Repeater ID="itemsRepeater" runat="server"> <HeaderTemplate> <ul class="lstProducts"> </HeaderTemplate> <ItemTemplate> <li> <asp:TextBox AutoPostBack="true" OnTextChanged="whatever_Click" runat="server" /> </li> </ItemTemplate> <FooterTemplate> </ul> </FooterTemplate> </asp:Repeater> </div> </ContentTemplate> </asp:UpdatePanel> Interesting thing is, if I take the TextBox out of the repeater, it refreshes only the UpdatePanel.So is if I put a Button inside the repeater - only the UpdatePanel gets refreshed.But whenver I place an AutoPostBack-ing control inside the Repeater, the whole page gets refreshed.Any help would be welcomed,Thanks<asp:UpdatePanel runat="server">             &

Problems passing parameters to SSRS report from ASP.Net web page

I have a web page that displays some data.   When they click a submit button, I want to run a report.  But I would like to pass the start year/month and end year/month values that the user already entered on the web page to the report.  Here is what my url looks like when the report is displayed: http://xyzserver/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fDevicesAllNew&rs:Command=Render&StartYYMM=201007&EndYYMM=201008 But my report displays the 2 textboxes for my StartYYMM and EndYYMM parameters as empty.  What am I doing wrong?  I did a google search and I saw something about using ReportServer instead of ReportManager.  I notice at the top of the browser when I run my report, it reads "Report Manager - Windows Internet Explorer".  Is this correct? Bob     Bob

Page should not be Refreshing

Hi I have a dropDownList on a page that I need to refresh with new database entries whenever new content is added to my DB. Basically, I have a list of usernames in one dropdown, and when I add a new username to the database I want this to be reflected in the dropdown without refreshing the whole page i.e. on the fly. I have  used update panel but partial postback is occuring but i want page should not refreshing at all I hope someone can help, I have looked around and not found any solutions. Thanks in advance.

How to Access Parent Page (.aspx) control (IDs) from its child User Control (.ascx)

I have a parent .aspx page that has a asp:panel control in it, and this parent .aspx is also referencing a user control that I registered in that .aspx. Lets just call it usercontrolA.ascx for this post.The user control has a radiobuttonlist itself.Based on a selection from the radiotbuttonlist in the user control, I want to be able to hide the asp:panel in my .aspx (parent) but unfortunately I cant' get it to work:parentPanel.visible = true;  <<< I trried this in usercontrolA.ascx.csBut the user control doesn't know about the panel in the parent .aspxSo do I need to expose that somehow from the parent so that I can access it from the code behind of the child .ascx?  How?

DataEntry: Refreshing Page re-enters same data again.

Hi,I have a simple page, 2 textboxes & 1 button, wherein when button is clicked the values in both textboxes are added to a database table. code works however, when button is clicked the values are still in the textboxes. I created txt1.text = vbnullstring & txt2.text = vbnullstring after Myconnection.Close() just to delete the values in the textboxes.but when I try to refresh my page, The values are still added to my table. I could redirect to a new page after a successful entry but, I just what to add a label saying "New Entry Added", clear the textboxes and waits for a new entry.How do i do this?Regards,

My Grid is not refreshing like it should. It only refreshes through a hard refresh of the page (F5)

Here is the code. I have Javascript in there that runs after the save button on the ExtJS popup is clicked, that is supposed to  refresh the grid to show the uploaded files, but the grid will SOMETIMES show nothing, and sometimes show the files. It ALWAYS shows  the files after a hard refresh of the page (F5). Why is it doing this? <br/> <br/> <%@ Page Language="VB" Inherits="Web.BaseView(Of Lending.Controllers.Workspace.DocumentUploadData)" %> <%@ Import Namespace="WebControls.Forms" %> <%@ Import Namespace="WebControls.Grids" %> <script runat="server"> </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <script language="javascript" type="text/javascript">         function RefreshGrid(result, data) {             if (data.responseText.length > 0) {                 var obj = eval('(' + data.responseText + ')');                 if (obj.Result == false) {                     Global.alertError(obj.UserM

Problems with FileUpload _only_ on a second page of wizard

 Hi, I have a wizard wrapped in UpdatePanel.  Second page of the wizard contains FileUpload.  I have a button on the page that causes a full post-back.  The weird thing is that the first post back triggered by the button results in empty FileName of FileUpload on the server side (HasFile is false).  The second and following clicks on the same button work as expected (i.e. FileUpload contains a valid FileName). Also, if I move the FileUpload control to the first wizard page then everything works fine. Could someone please let me know what might be causing this strange behaviour? Thanks. Sample code: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestAjax.aspx.cs" Inherits="TestAjax" %><%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title></head><body>    <form id="form1" runat="server">    <div>          <asp:ToolkitScriptManager ID=&qu

refreshing (reloading) the self page when it opens the popup window

silbut = e.Item.FindControl("button4")         silbut.Attributes.Add("onclick", "window.open('firmaus.aspx?i=" + rrid.Text + "&s=" + Session("firma").ToString + "')") Hi all,I add an attribute on data bound event to the datalist with following codein studentlist.aspx page :deletebutton = e.Item.FindControl("button4")deletebutton.Attributes.Add("onclick", "window.open('studentus.aspx?i=" + rrid.Text + "&s=" + Session("studid").ToString + "')")but i want deletebutton to refresh parent page (studentlist.aspx) when i click it, with openning the page (studentus.aspx...)how can i add this attribute?thanks for helps.

Refresh Parent Page List after Edit Item Modal Dialog Save/Close

I am calling the Edit Item URL (EditForm.aspx?ID=x&IsDlg=1) via javascript code to bring up the Edit Item Modal Dialog. This works fine and dandy. But what callbackfunction should I invoke after the Save so that the parent list is refreshed? Is there a better way to do it than call reload on the entire parent frame? It almost looks like there should be a way to refresh just the list. Any help appreciated. Thanks, Jake.

Refresh aspx parent Page after closing pop up window

Hello I have a problem with  Refeshing Parant Page  After Closing POPUP. Actually case is i opened POPup.aspx(aspx-Page) on another Profile.aspx page, and i want refresh Profile.aspx after closing   PopUp.aspx. I aleady use this thing but it didnt work..1)window.opener.location.reload();2)window.parent.refresh() 3)window.parent.reload()any one have idea abt this .. plz help me 4 this..

Refresh parent page in iframe

Hi all, can I refresh a parent page by his inside iframe?

problems with page refresh

Ok here is the situation.I have an aspx page that 'ticks' using an ASP timer. In the code behind i have told the page that 'ontick' to redirect back to itself but with a different querystring value.The querystring values represent a base for the information (It is a sales page displaying monthly, quarterly and yearly values).The problem I have is that my backend code produces 2 graphs saved as BMP files. The problem I have is that these bmps do not update when the page ticks.All of the information does, but the images don't. I have so far attempted the following to try and irradicate the problemredirecting to another page, and then redirecting back immediately;using Response.Cache.SetCacheability(HttpCacheability.NoCache) in various (and multiple) placesusing html meta to stop caching.All has currently failed as the pictures do not update. I have tested the actual files themselves and they are updating. So it appears that the page is showing cached data rather than the new image.Any help to get my images to update will be greatly appreciated.Kind Regards

Problems with Master Page and content window

I have a master page whose primary function is to allow a user to search for a Credit Union.  They can either search by ID # or search by name.  With processing this page it will set session variables which in turn I would hope would be passed along to the content window. Within the content window I am displaying the information that will be needed on that particutlar page, if no record is found then it will allow them to add.  I also need it to clear the fields in the content window if they go from one record with data to one without.  Now if a user types in the ID#, then it doesn't seem to have any problems populating the content window.  The problem comes when they try and search by name.  If more then one record is returned then it will populate a listbox.  Which then I would like a user to select the name they are searching for and then populate the search boxes as well as process the content window. The problem I seem to be facing is the Page Load on the content window.  Session variables don't seem to be set in time for the content window to have the variable available to it. Hopefully you can help me out.Masterpage.master.vb Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'ResetValues() Me._txtCUName.Attributes.Add("onchange", "if(document

I want to open a web page (.aspx page,child window from parent window) without titlebar how can we d


Hi All,

i have some special requirement like , i want to open a web page (child page) without a title bar for this i am following the below approach but it is not working, to open child window from parent window i am calling this javascript function to the of href of anchor tag...

function OpenChildWindow()

but the child window is opened with titlebar, but i don`t want any titlebar.

the titlebar property i was used in the above method is not working why?

how can we do this, can anybody help me...


Burepalli V S Rao.

Dynamic Textbox List Control - problems refreshing


Ive been stuck on this one for a month:

So I have a custom control that has a list of textboxes, and a button that will dynamically add a new textbox to the list.

 So I have an addTextbox() function, that will do something like

TextbBox t = new TextBox()

 then I add it to the page.  So adding a new textbox works fine, but I have values that I want to put into each textbox and upon each page load, the values get replaced.  What I need to do is get the textboxes from the viewstate so I can use their values for other textboxes, but since they are created anonymously, im not sure how I can do that.  I tried to get the unique name and put all of them into an arraylist, then upon the next page load, load the names from the list, but the unique name isnt unique.  Thanks

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend