Web Forms :: How To Detect Refresh In IE

Nov 23, 2010

When <F5> in Internet Explorer is pressed, my page is reset.

How can I detect <F5> press?

View 2 Replies


Similar Messages:

Web Forms :: How To Detect Page Refresh Or Reload Apart From Postback

Oct 23, 2013

I just want to know how to detect a page is refreshed or reloaded apart from Postback. Just clicking the reload button in the browser...

View 1 Replies

MVC :: Detect Page Refresh In MVC

Oct 5, 2010

I have been developing a quiz application in asp.net mvc. In this quiz user is give a list of topic to take quiz. On click of one of the topic the user is taken to new page. In the get part action of this page i have taken some parameters, generated questions for the quiz, register quiz for the user (save in db)and save the generated questions in db.

Now the problem is:

User see the page, if user hits the "submit" button after selecting the answer than it is ok but If user refresh the page. Then the get action is called again and new set of questions are generated and new quiz is registered to user.

How can i avoid this?

Is there any way to detect that the get action is called the second time or to detect page refresh in as.net mvc.

If you could suggest design changes that it is ok too? i just need to make sure if user refresh the page the question need not be generated again and new quiz should not be registered to user.

View 2 Replies

Forms Data Controls :: Report Viewer Refresh / Anyway To Call The Refresh Method From Codebehind?

Mar 3, 2010

I have a problem when I try to pass in paramaters for a report in my report viewer. I have set up the ObjectDataSource and set the paramaters for 3 text boxes that are on the page. The only way I have found to set the paramaters for the report is the user must fill in the paramaters and hit the refresh button on the Report Viewer toolbar ,but I would like to have the user click a asp.net button insted. Is there anyway to call the refresh method from codebehind?

View 1 Replies

Web Forms :: Make An Ifrom Refresh Without Having To Refresh The Whole Page?

Jan 18, 2010

1. Is there anyway to make an ifrom refresh without having to refresh the whole page?

2. My iframe just wont display when I run it. It just displays a grey screen with the file name in the middle.

<
iframe
runat="server"
id="IframeOne"
src="~/Test.aspx"></iframe>

View 3 Replies

Refresh Small Part Of The Webpage Without Refresh The Entire Page In C# ?

Mar 11, 2011

how we can refresh small part of the web page without refresh the entire page in C# ?

View 2 Replies

SQL Server :: Database Refresh Time / To Know When The Last Refresh Has Happend?

Jul 20, 2010

we have a sql server 2005...that has 70-80 databases and hundreds of tables....

It is supposed to refresh every night.... refresh is done by other vendor(3rd party).... we dont know what method(technology) they use to refresh the databases....

My question is .....

Is there a good way to know when the last refresh has happend...can we determine it from sys tables.....

the sql server is installed in window server 2003 box.... we have access to the box as well as the sql server.....

View 11 Replies

Forms Data Controls :: How To Refresh Page Without Going To Top Of Page When Refresh Is Done

Nov 3, 2010

I have a table on my page. I need to scroll down a little to get to that table. In that table i have som data that i edit and save to database. When the save is done i need to refresh the page( Response.Redirect(Request.RawUrl )) so it loads the new data to that table. When the refresh is done the page is on top again so that i need to scroll down again to see the table. This makes it very unusable for the user.

How can i refresh the page without it going back to top again? I tryed wrapping an updatepanel around the table but it didnt

View 1 Replies

Web Forms :: How To Detect Someone Navigating Away From A Page

Jan 8, 2010

How do I have a pop-up message come up that says "Are you sure you want to navigate way from this page? (OK) (Cancel)" when someone either clicks the back button or the close button?

View 2 Replies

Web Forms :: Detect Page Load Completion?

Jun 22, 2010

Detecting Page load Completion? How could we do this using jscript or jquery, would it be possible? Kindly give your views and ideas. I have an asp.net web page, which is huge and takes time to load. If the user clicks on any buttons on the page, before the page completes it's load, we get error messages. Since some of the hidden field values in the page, have value=0 because the page did not complete it's load. I hope I was clear with my question. Meanwhile I need to work on improving my code to process quick.
I do have an update panel, on my page.

View 1 Replies

Web Forms :: How To Detect And Prevent New Browser Instance

Aug 25, 2010

The web app in question provides a UI for editing a client (in the business sense, not the browser sense), identified by a ClientID. I store the ClientID in Session, which gets passed from page to page, along with a number of other pieces of data in Session. Works great.

The problem is that if the user opens a new browser window using Ctrl N or File->New Window (in IE), the new window comes up with the same page as the current page, with the same session info. Then if the user navigates to a different client in the 2nd window, the ClientID in session refers to the new client. If they go back to the original browser window and save, the original client gets saved using the 2nd ClientID, and all hell breaks loose, because now the data from the two jobs are intertwined.

I have enabled trace and verified that the new browser window uses the same SessionID as the original. If an entirely new instance of IE is opened, it has a different SessionID, so is not a problem. I have not yet investigated other browsers, such as Chrome or Firefox.

Is there any way to determine if a browser instance is opened for a web app which is already open in another window or tab? Or to prevent that from happening?

View 1 Replies

Web Forms :: Detect Width And Height Of .jpg Image?

Jun 25, 2010

I have an image on this path that I first check if it exists. If it exists I wonder what the method is to get width and height of this image ?

[Code]....

View 6 Replies

Web Forms :: How To Detect The Current Page From MasterPage

Apr 10, 2010

My masterpage for my website has the Login control which sits right on my main nav bar. The problem I have is that I'm currently not detecting the current page hence not setting the ReturnUrl parameter. So when the user clicks login and goes through the login process, he/she is sent back to the home page.

How can I set the ReturnUrl while still keeping the Login control in the master page?

View 1 Replies

Web Forms :: Detect Clicks On Calendar Dates

Nov 11, 2010

I am in a process of creating an advanced calendar for our time management system. One of the requirenments is to change the color of the dates when clicked by the user on the calendar. My pattern should go this way. One click on a date - Set the date cell border to "Yellow". Two clicks on a date - Set the date cell border to "Green". Three clicks on a date - Deselects it. I really have no idea how to implement this. Right now i can just get the dates selected in selecteddates collection but it does not dedect the clicks on the date. little background - The calendar is displayed as a popup and users currently can select multiple dates form the calendar. Once done they click on a save button to get the count of total dates selected. All the Yellow dates will be counted as 1/2 day.

View 1 Replies

Web Forms :: How To Detect The IP Position Of Website User

Sep 20, 2010

how to detect the IP position of my website user ?

View 12 Replies

Web Forms :: Page Detect The Resolution Of The Screen Then Run

Mar 30, 2010

I designed my page (Using ASP .net C#) in 1024*768. if resolution of the screen decresed(ex 800*600) then vertical and horizental scroll bar appear. And if resolution of the screen incresed then right side of the screen is become blank. i want whatever the screen resolution is there my page is run fine after detecting the resolution of the screen and then run.

View 4 Replies

Web Forms :: How To Detect Which Control Caused A Postback

Dec 16, 2010

Is there a way to determine which control on a page caused a post back? I need to be able to make the determination since the _DataBound event of a FormView that I'm working with needs function differently based on which control caused the postback.

View 1 Replies

Web Forms :: Detect Text File During Uplaod?

Feb 14, 2011

on my website I have file uploading (only text files). How to detect correct file type?

Reading first 8 bytes doesn't works here because there are text files.

View 8 Replies

Forms Data Controls :: Detect Last Row In 'onrowdatabound'?

Jun 15, 2010

I've got a problem with my onrowdatabound function. The situation is like this:

protected
void gvSQL_RowDataBound(Object sender,
GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
switch (Session["Filter"].ToString())
{
case "NonZero":
if (e.Row.Cells[9].Text == "0")
{
e.Row.Visible = false;
}
break;
}
}
}

At the end I need to kill the Session, so my plan is to detect if it reaches the last row. Then I can kill it. Does anyone know how to do this? Or is there someone that knows a better to fix this?

View 6 Replies

Web Forms :: Detect Dates Missing In Textbox?

Jul 27, 2010

i got text in a textbox with text that is inserted like [ 2010/07/27,2010/07/28,2010/07/29,2010/07/31] then on the textchange event of the textbox when the text is inserted it needs to detect if there is any date missing and if so then it needs to bring up a JavaScript alert(Java Alert i will do on my own)

View 10 Replies

Web Forms ::detect Mobile Phone Model No From Asp.net?

Jul 23, 2010

Can I detect the Name/model no of the mobile phones,which are browsing my asp.net website from C# code behind?I need to show welcome message,addressing their model numbers and redirect to appropriate pages.

View 4 Replies

Web Forms :: How To Detect Mouse Move Outside Of Browser Tab

May 15, 2013

I have a small application in asp.net with c#.

This application motto is find out the mouse move the out side of the application[nothing but mouse must be with in our application browser tab only. not move to other tabs. if its happens out side application it must close].

View 1 Replies

Web Forms :: How To Detect Whether User Is Online Or Offline

Nov 25, 2013

I am working on a web project, and here i want to display a label which will display how many user is online and open this site. What can i do

View 1 Replies

Forms Data Controls :: Detect Last Page In ListView?

Dec 28, 2010

is there any simple way to detect that I'm on the last page of my ListView? I need this because I want to fill empty space below my ListView with a panel if number of rows is smaller then 15 (Rows per Page)

For example (logically): If MyListView = LastPage....Panel.Enabled=True

View 6 Replies

Web Forms :: Detect A Pages !IsPostBack In Its User Control?

Aug 4, 2010

I have a page that uses a user control, I have to detect the pages !IsPostBack in the User Control and do some operation

In the User controls page Load method I tried using the following variations to detect the first load

!Page.IsPostBack
!Page.IsCallback
!this.IsPostBack
!this.IsCallback
!this.Parent.Page.IsPostBack
!this.Parent.Page.IsCallback

None of these worked, they all fail to detect the parent pages 1st load in the usercontrols page load method

I also tried using

if (Request.UrlReferrer.AbsolutePath.ToString() != "/PreviosPage.aspx")

This worked for Fire Fox and Chrome but not IE (IE has issues with Request.UrlReferrer, it throws a null exception)

So I cant use this approach as well.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved