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

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

checkbox clears after page refresh

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

I'm using a ListView and in both the ItemTemplate and EditItemTemplate I have, amongst other controls, an AsyncFileUpload inside a ModalPopupExtender and a RadioButtonList further down the page. The file upload process works great, but after uploading an image file and inserting it in the page, if you happen to refresh the page at that point, both the buttons of the RadioButtonList clear and one of my validation check for the RBL kicks in and an error message is, of course, displayed.

I have an UpdatePanel around the RadioButtonList, which is confusing because I thought that the purpose of AJAX was to shield the affected control from a refresh that occurs on the rest of the page.

One thing I tried unsuccessfully was to fill the RBL control again. I tried it after many different events (PageLoad, PageLoadCompleted, Databound, etc.), but none of those worked. I would appreciate suggestions on how to solve this problem.

Actually, the RBL and DDL controls have been a real pain to deal with in .Net 3.5. Are they any better in 4.0?

View Complete Post

More Related Resource Links

Partial Views and Popups...After clicking on Close need to refresh the page....


Hi All,


I amusing the PopUp example as suggestedin the above forum link.....

But now i want to Refresh the page after clicking on Close(x) ...

So please help me....

Please advice...

Thanks in advance...



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

close pop up and refresh main page after popup close

I am working on a application in which When user clicks on a button  he should be redirected to facebook login page and after successfull login he shud be reirected back to my page. It all is working fine but now I have to do like thiswhen user click on the Button the the facebookbacklogin page shud be opened in popUp and when login is done successfully the popup window shud be closed and the main page shud be refreshed. anf If user is already login the popup window shud not be opened.How can i do this..How can I KNow that a popup window is opened and how can I close that??How to refresh when popup window is closed.I ahve to do like on this site..http://blippy.com/

Page Refresh Issue

Hi All,   My web application is on .NET 1.1 using C#. Page is not getting loaded properly, need to refresh page couple of times then the desired functionality works. Let me how to resolve this problem. Was trying to refresh with javascript but not able to write javascript it was getting into loop, page was continuously refreshing.   Let me what coluld be the reason for page not getting worked as expected, only works when page is refreshed. Let me know what what could be the issue, is it server issue where the application is. One more thing application works fine on my local machine when deployed to other TEST envrionment, it does not work.   Please help me on this.   Thanks Abdul 

Refresh Label on web page without postback

Hi , In my web page i got a button and when this button is clicked it will display message on the label. Example : label text changed from "Start" to "Processing to "Completed". Therefore I want to refresh the label text on my web page so from user site they are able to see the text on Label is changing.. Thanks Linoo  

Refresh Label on web page without postback

Hi , In my web page i got a button and when this button is clicked it will display message on the label. Example : label text changed from "Start" to "Processing to "Completed". Therefore I want to refresh the label text on my web page so from user site they are able to see the text on Label is changing.. Thanks LeNoo

Calendar.aspx page Refresh only Once + Java Script

Hi Experts, Following script works perfect (refresh only once after 5 seconds and stops but for some reason if somebody clicks next month then it keeps refreshing for 5 seconds. Can you please put the following code in your calendar.aspx page and check if you can get rid of the continuous refresh if somebody selects next month otherwise it works fine. Please provide the updated script <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Refresh test</title> <script type="text/javascript">   window.onload=function(){     url = window.location.href;     qIndex = url.indexOf("?");     if( qIndex != -1 ){       getData = url.substr(qIndex+1, url.length-1);       if(getData != "refreshed=1"){         refresh();       } else {         myDiv = document.getElementById('content');         myDiv.innerHTML = "This is the second and final time the page loaded.";       }    

Page refresh after pop-up

I am trying to set a page to refresh after adding some data to it's underlying database. However, I am also notifying the user that the insertion has been made via a popup window, which is generated by the following code: private void addedPopup() { String strPop = "<script language='javascript'> alert('" + selectedAdNums.Count() + " student(s) added.') </script>"; selectedAdNums.Clear(); ClientScript.RegisterClientScriptBlock(strPop.GetType(), "Pop", strPop); }I have tried using Response.Redirect(<pagename>) before and after calling the addedPopup, but both prevent the popup. I also tried using a flag for whether the page needs refreshing or not, checking this flag in the Page_Load method, but due to the page lifecycle this obviously doesn't work.How can I force a page refresh after the popup? The refresh is to update a lists and clear selections.

Refresh certain part of page

Hey Guys. I'm writing an ASP.NET site and I was told to add a graph to one of the pages. The graph must use a third-side DOJO class to draw the graph. I'm having some problem with it. The graph tag looks something like this : <div class="graph" type="dojo.special.graph" datasource="myModel"> where the datasource for that graph is: <div class="Data" type="dojo.special.Datasource" url="myDB.json" id="MyModel">   So, this graph is fueled using the JSON file. The problem is when I want to change the JSON file to another, lets say, insead of "myDB.json" to "myASP_DB.json" problem is that when I change it (using Java Script code...something along  MyModel.url="myASP_DB.json") the graph won't refresh itself, though it's datasource does. I do understand where the problem lays - the tag is created once on pageload, so does the graph, and than it doesn't change (although the model does). What I'm trying to achieve here is that after I will change the url attribute of  "MyModel", the graph tag will refresh itself, thus causing the graph to update. How do you think I might achieve this? and am I assuming correctly that refreshing it will cause the graph to update? Thanks a lot

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

How to Refresh Page with Coding in code file ?

How to Refresh Page with Coding in code file ?

Refresh asp.net iframe in different page

Hi  I am having two aspx page in my asp.net project, When I click on a button in one aspx page I open the window i.e other aspx page and i pass iframe value to that aspx page. That iframe will show that url in it. Now when I again click on another button in first page I don't want to open popup window again for opeing that url, and I want to update the url of iframe of popup page. Is there any way to do it?  

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

how to call a event another page & refresh other page jquery

!) i have two page a with event   Bu_DocSearch_Click (object sender, System.EventArgs e)  i require it call another page and reftesh automatically protected void Bu_DocSearch_Click (object sender, System.EventArgs e){            //+" order by a.ID";            string sql="";            string S_SubjectContain=CCUtility.ToSQL((Utility.GetParam("txt_SubjectContain")+"%"),FieldTypes.Text);;            string Find=" and a.Subject Like "+S_SubjectContain;            //string Find=" and a.Subject ='"+S_SubjectContain+"%'";                                ArrayList SelectedChkBox =new ArrayList();                SelectedChkBox =Utility.CheckboxSelected(CheckBoxBind);                    string Inclause="";            for(int i=0;i<SelectedChkBox.Count;i++){ 
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