refresh

ASP.NET How can I disable re-sending of request to server on refresh?

Hi, I am developing a page whereby users can login and demo some pieces of functionality. I only want to allow the user to demo this once per day. A small example: I have a web page with 3 buttons (relating to 3 different scenarios). On page load, I look up the database and check if the current logged in user has run any one of the 3 ...

ASP.NET Detecting Page Refesh in Page_Init

Hello, I need to detect when a user refreshing the page in the Page_Init event to stop them from executing the same code twice. What's the way to do this in ASP.NET thanks ...

WPF Instantiate User control programmatically to render it as PNG

hey all, I want to instantiate a user control programmatically in a DLL to save it afterwards as PNG file. This is generally no problem with PngBitmapEncoder and RenderTargetBitmap. This are my questions: How do I instantiate the control? Simply with the new-operator? Do I have to instantiate it in an seperate thread? How do I force ...

Force Application refresh on back button

I have a web app which pulls in information via ajax after the page loads. When a user leaves the page, then hits the 'back' button in their browser, they see the page as it looked on initial load. What I need to have happen is have all javascript run as if they hit the 'refresh' button. I have tried setting the Cache-Control and Pragm...

C# refresh window while doing something else

Hi, following scenario. I have a datagridview and a progressbar, datagridview is being filled with some datas from active directory. Filling my datagridview takes about 3 minutes. Now, while my program is working everything is fine until I switch windows - like for example open web browser or anything else. When I swich back to my progr...

Forcing a JFrame to refresh

I have a UI built inside a JFrame. One of the buttons starts a long running call (still within the same java process), and during it's execution, the UI is frozen. I figured, to make it clear that things are still running, I can display a progress bar, perhaps in a popup, so that the user can be kept up-to-date as to what the program ...

How to map a global key to refresh?

Winamp has a neat feature. Global keys. That way I can change the playing song even if Winamp GUI doesn't have focus. I am looking for a similar solution to Firefox or Chrome. I use Eclipse to code PHP. It auto SSH's and saves to another machine (testing) I could use something like XRefresh with a mapped virtual drive but I cant instal...

jQuery: Refresh div after another jquery action??

Hi.. How do I refresh element (div, class whatever) after another jquery action? I have this action which is deleting a record from database and I need to refresh div which is fetching some other data from database as well... Well here's code: $(function() { $(".delete").click(function() { var commentContainer = $(this).p...

.NET Windows Forms Refresh Control

I have a simple program which loops through a resultset when a button is pressed and performs actions against this resultset (stored in a DataTable). During the loop I update the text of a RichTextBox, 2 labels, and a ToolStripStatusLabel. These are not refreshing during the loop so after each item is processed in the loop I do a this.Re...

Why is the dom out of sync after jquery ajax call and refresh?

I have table that uses inline editing with ajax to modify the fields. The table is sorted by last name. If I change a last name so the row order is changed and then do a page refresh, the table is reordered but the field I changed still has the previous value in the dom. The input field does have the correct value in the html but the ...

python refresh/reload

This is a very basic question - but I haven't been able to find an answer by searching online. I am using python to control ArcGIS, and I have a simple python script, that calls some pre-written code. However, when I make a change to the pre-written code, it does not appear to result in any change. I import this module, and have tried ...

my layout breaks in IE7 and javascript page reloads make the screen blink

My layout breaks if I change the window size in IE7/AOL, so I added a simple javascript function that fires on window.onresize, but no matter how I change the location I get problems. It was suggested I post a link and here it is: link text I already use PHP to detect browser and include an IE7-only inline stylesheet (and for mobile b...

VB.NET Browser Auto Refresh

Hi, I want to make a program in Visual Studio 2008 in Visual Basic. It involves a web browser and I want to make it auto refresh and allow people to choose the time period in which they want to auto refresh. It won't take user input but I have checkboxes that are preset. I think this may be possible using a timer and the WebBrowser1.Ref...

Force a page refresh using Javascript in Firefox

Hi All, I have a simple request to refresh a page using a Javascript code below: function tb_closeRefresh() { window.location.reload(true); } This works fine in IE but Firefox just gets the cached version and needs the user to press F5 to get the latest version of the page. I have added the meta tag: <meta http-equiv="Pragma" c...

Re-populate complex javascript objects from JSON

Say I have a web form that consists of a input text field, an Add button, and a Submit button. A user can add text to a div by typing some input and clicking Add, which will dynamically (using javascript) append the div with whatever they typed. Also during Add, I'm storing the text in a javascript object. After adding one or more ite...

Onclick refresh in div using Wordpress Loop

I'm sure this is simple, but I'm a noob, so I'm not sure how to achieve this... Basically, I have 3 separate divs with 3 separate WP loops. I want to create a script to assign certain the "next post" & "previous post" links to refresh within the div, while the other links would behave normally. This would be easier with a normal site, bu...

C# - how do I refresh DataGridView after removing rows

Hello, In my code I need to remove rows from the DataGridView after a recurring interval, and so I call the following function when a timer expires: private void removeRows(DataGridView dgv) { foreach (DataGridViewRow row in dgv.Rows) { // if some condition holds dgv.Remove(row); } dgv.R...

IE8 - Flash Issues

Has anyone ever encountered an issue like this with Flash[as3] in IE8? I've noticed that when I first view my swf with IE8, that it all works and looks proper. However when I click refresh, a few items that use the stage.stageWidth and stage.stageHeight properties fail to function as they should. This only happens on IE, been tested...

iPhone Key-Value Observer: observer not registering in UITableViewController

Hi Fellow iPhone Developers, I am an experienced software engineer but new to the iPhone platform. I have successfully implemented sub-classed view controllers and can push and pop parent/child views on the view controller stack. However, I have struck trouble while trying to update a view controller when an object is edited in a child ...

Refresh an elements style in Javascript

I have a table which the rows are loaded dynamically from a recordset. I also have used Javascript so that when a checkbox (not in the table) is checked it hides all the rows when column x = y, but I have a vertical border (really just a background image positioned to the right)which fades on the last row of the table using the CSS .sort...