Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










Web Forms :: How To Disable Backspace To Previous Page


I feel like I'm really close but yet so far away with this.  I have a form and when the user hits the backspace button when focused on the web browser I don't want it to go to the previous web page -- but I still need the backspace button to work in textboxes in the form.

I have a javascript function that appeared to work just fine:

[code]...

but after looking at it closer, the backspace button does not work in multiline textboxes (regular textboxes it does).  Anyone know what I might be missing in the javascript function above?


View 6 Replies (Posted: Oct 27, 2009 05:48 PM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
AJAX :: Hitting Backspace With Constant Contact Causes Previous Page To Load?
I was just typing on an old site of mine that requires the constant contact method that uses threading and an update panel to prevent users from being logged out since despite setting the timeout period in web.config to what mathematically should be millions of minutes people still seem to get logged out after like 5 minutes. I tried the web service method, but it was ineffective.

The constant contact with an update panel accomplishes its primary objective well, however when a user clicks on their keyboards back button at the wrong time they get redirected to the previous page and if they click the forward button in their browser the page contains none of their typed data.

Is there a way to override whatever causes the backspace button to do this?

Posted: May 14, 2010 11:02 AM

View 2 Replies!   View Related
Web Forms :: Disable Delete And Backspace Key When Press It
How to disable delete and backspace keys when i press it using javascript.

I done using Ascii values.But its not working

this is the code

[code]....

Posted: Dec 07, 2007 06:06 PM

View 5 Replies!   View Related
Web Forms :: How To Disable Browser Button Shortcut Backspace
I wanted to disable browser backbutton shortcut(Backspace) to fire browser

back button evbt.

so how can i disable browser back button shortcut Backspace?

Posted: Dec 21, 2010 11:36 AM

View 2 Replies!   View Related
Web Forms :: How To Disable Dropdown List Value In The Current Form That Was Selected In The Previous Page
I am having 2 web formsand will have a drop down list on those web forms. If i select a value from drop down and click on ok i will get tranfer to next page. In that page i will have a drop down with the same values in the previous form . What i need is i would like to disable the selected value in the previos form and would like to display the remaining normal.

Posted: Aug 27, 2010 10:53 AM

View 3 Replies!   View Related
Web Forms :: Disable Back Button - Unable To Reach Previous Page After Logout?
disable back button on my asp.net application. I Should not be able to go back to my previous page after I logout.

Posted: Aug 20, 2010 05:12 PM

View 2 Replies!   View Related
Vb.net - Disable / Deny Going Back To Previous Page?
On my current project I want to deny going back once my customers hit submit button and redirected to the final page. How can I deny from going back to previous page or some mechanism to expire the page if the back button is clicked. I tried this code and it didn't work

page.response.cache.setcacheability(httpcacheability.nocache)

Posted: 2 days ago

View 1 Replies!   View Related
C# - How To Disable Dropdown List Value In The Current Form That Was Selected In The Previous Page
I am having 2 web formsand will have a drop down list on those web forms. If i select a value from drop down and click on ok i will get tranfer to next page. In that page i will have a drop down with the same values in the previous form . What i need is i would like to disable the selected value in the previos form and would like to display the remaining normal

Posted: Aug 27 10 at 10:42

View 2 Replies!   View Related
Forms Data Controls :: When Use The Previous Button To Navigate Back To The Previous Step The Page Reloads But At The Bottom Of The Page?
I'm using a wizard control with 4 steps, when I use the previous button to navigate back to the previous step the page reloads but at the bottom of the page.Instead of showning the whole of the page, the user views the footer of the site and the previous button and next button.I'm sure there is a very simple answer to this but I just can't figure out how to get the page to reload to the top.

Posted: Aug 02, 2010 09:56 AM

View 8 Replies!   View Related
Javascript - How To Go Back To Previous Page While Retaining The Previous Page Data
I am having problem while using onclick="javascript:history.back();" with Aspnet. In the first page i filled some data and click search button it show some results, i click on particular result for its details which navigate to the 2nd page but when i click on custom back button it refresh the page and all data set to initial values,when i use onclick="javascript:history.back();" I get nothing but the page displays "webpage has expired."

Posted: Jan 5 at 6:09

View 1 Replies!   View Related
Read Only Textbox - Backspace Key Causes Page Back
I'm looking for a simple solution to disable the IE functionality of the backspace key behaving like a back button. I have textboxes that are dynamically set to read only depending on certain criteria. If the user hits the backspace key when focus is on a read only textbox it navigates back a page. I would like to disable this functionality.

Posted: Apr 23, 2010 03:30 PM

View 6 Replies!   View Related
When User Back Any Previous Tab(page) The Will Be Show The Previous Data Without Loading 2nd Time?
I am developing a web application in ASP.NET3.5 with C#. I also using Telerik RadAjax Control. When user click the menu then open the page with a new tab(Like web Browser).I want to create, when user back any previous tab(page) the will be show the previous data without loading 2nd time( like browser tab). Is it Possible ?

Posted: Jul 26 10 at 10:26

View 2 Replies!   View Related
Security :: Call Login Page By Clicking Backspace Button
I have design small application i kept login and home pages. when i loged in it will redirected to home page. When i click on backspace it is comming to login page. it shouldnt come like that. Like gmail or hotmail. when we login and enter into mail when we press backspace it will not come to login page.

Posted: Feb 09, 2011 03:12 PM

View 3 Replies!   View Related
How To Disable The Previous Or Next Button On A Pager Template When There Is No Data
I have a pager template in a formview which shows the Prev, Next button and the number of pages. I want to make the Prev or the Next button disable when there are no more pages to go. Like, if it is the first page, then the Prev button will be disabled. 

<PagerSettings
Mode="NextPreviousFirstLast"
/>[code]......

Posted: Oct 04, 2010 01:53 PM

View 5 Replies!   View Related
C# - Disable Browser From Saving Previous Data Of TextBox In .net
My problem is that I have a TextBox with AutoComplete Extender and It's works but The browser save the text that i have Entered before so when i start writing to My text Box I have Two lists appear , one from the browser and one from the autocomplete

I want to disable the browser list and keep the autocomplete list only.

Posted: Oct 5 10 at 12:19

View 4 Replies!   View Related
AJAX :: Disable Previous Date And Validation Calender Extender
I want to make sure user does not select a date earlier than today and also validate any validator i am using this code:

[code]....

Posted: May 24, 2010 07:26 AM

View 1 Replies!   View Related
VS 2005 Disable Browser Back Button Or Prevent Previous Pages From Being Accessed?
I’m using visual studio 2005 and VB

I am working on a web site that will be a testing website. On the first page (frmSelectTest.aspx) the user will enter his username, password, select a test to take then click a button and a new page(frmTakeTest.aspx) will open with the test questions. After taking the test the user will click a button to grade the test and he will automatically be taken to another page (viewResults.aspx) where he can view the results of the test. After viewing his test results there will be a link that will take him to another part of the website.

I don’t want the user to be able to use their browser back button to go back to the first page (frmSelectTest.aspx) from the test page (frmTakeTest.aspx) or be able to use the browser’s back button to go back to the test page(frmTakeTest.aspx) or back to the select a test page (frmSelectTest.aspx). I haven’t been able to figure out how to disable the browser back button and prevent the user from returning to previous pages.

I can user Server.Transfer which seems to disable the browser back button but it doesn’t work consistently, sometimes it works and sometime it doesn’t. I have searched the internet and found several examples but I couldn’t get any of them to work.

Some things I’ve tried in the page load event but can’t get to work

Code:

Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(DateTime.Now //or a date much earlier than current time
I’ve also tried:

Code:

Response.Buffer = true
Response.Expires = 0
Response.ExpiresAbsolute = DateTime.Now.AddDays( -1 )
Response.CacheControl = "no-cache"

I haven’t been able to get any of the examples to work. I know disabling the browser back button or preventing previous pages from being access is a common thing.

Posted: Jun 27th, 2009, 04:35 PM

View 2 Replies!   View Related
Forms Data Controls :: Create Query In New Page Using Previous Page Control Value?
How can I build a query in a new page using the value from a prevous pages control's value. I can transfer the value to the new page, I just don't know how to use the passed value to build a query. I want to populate a data grid filtering with values obtained from the proveous page.

Posted: Nov 26, 2010 01:28 PM

View 3 Replies!   View Related
Forms Data Controls :: Pageddatasource Go To Previous Page If Current Page Is Empty?
I am using Pageddatasource to do customised paging on my repeater, i have a button which allows a user to remove items, my problem is that if the user deletes an item and they are on the last page, after deleting it stays on the same page even though that page is empty, when in fact the correct thing to do would be to go to the previous page, how do i do this. This is what my code currently looks like;

[Code]....

Posted: Nov 09, 2009 08:24 PM

View 6 Replies!   View Related
Web Forms :: Page Back Option And Edit Content Of That Previous Page
i am having three pages.first of all i fill register page it will redirected to next page .again i will fill this pageto move to next page. in this time  i want to go back to previous page and want to edit content of that prevoius page.in this time i got one problem like"Violation of PRIMARY KEY constraint 'PK_Skills'. Cannot insert duplicate key in object 'dbo.Skills'. The statement has been terminated." how can i solve this problem.i am not having any primary key in my database.

Posted: May 13, 2010 06:45 AM

View 6 Replies!   View Related
Forms Data Controls :: Creating A Grid Page As A Result Of Selection Of Parameters On The Previous Page?
i am creating a grid page for a first time.

I looked on some tuitorials also but i still have few confusions.

I have a few parameters on page A. After the selection of those parameters, i should pass to the new page which should have a list of fleet items. There will be few columns and at the right most, i want a tickbox whether to select that item or not.

As a default, i want each checkbox be checked but if user wants to uncheck it, they should be able to do it.

Posted: May 21, 2010 12:13 AM

View 6 Replies!   View Related
Web Forms :: Accessing Previous Page Controls On Current Page?
I want to access controls (textbox and HTML hidden fields) from current page to do some transactions in my database.

Posted: Feb 23, 2010 03:29 PM

View 3 Replies!   View Related
Web Forms :: How To Check If The Previous Page Is A Specific Page
I have a form validation page where the user confirms thier order. It depends on the prvious page being the specific form and uses Page.PreviousPage.FindControl to get its values. How can I check if the previous page is indeed the form that needed to be filled out?

Posted: Dec 22, 2009 04:10 PM

View 2 Replies!   View Related
Web Forms :: How To Get Previous Page Value
my login page contains username and password field. when the user name is correct then the page will be redirected to Default.aspx page...for that i am using Response.redirect("Default.aspx") page is redirecting correctly. but wat the pbm is the username should be displayed in Default.aspx page after redirecting.....for displaying it i am using

Label4.Text = CType(PreviousPage.FindControl("TextBox1"), TextBox).Text in Default.aspx.....

but the vale of TextBox1 in login.aspx page is not displaying in Default.aspx page.

Posted: Sep 19, 2010 03:44 AM

View 2 Replies!   View Related
Web Forms :: How To Get The Previous Page Name
i am getting previous page name from

Request.UrlReferrer.ToString()

but not able find name how can i do this

Posted: Apr 12, 2010 05:47 AM

View 5 Replies!   View Related
Web Forms :: Getting URL From Previous Page?
I want to create an if statement :

If ( previousPage URL is "page1.aspx")

{do something;}

How can I previousPageUR?

Posted: Oct 31, 2009 12:18 PM

View 6 Replies!   View Related
Web Forms :: Get The Name / Url Of Previous Page
I am trying to get the previous page name of my application like if i am redirecting from default1.aspx to default2.aspx then i need the name default1.aspx as my previous page.

i tried it with Page.Request.UrlReferrer , page.previouspage.AppRelativeVirtualPath and other several ways available on the net but i am not getting the value of my previous page 

Note:

this problem is coming when i am running my application in IE, if i run the same in Mozilla then it gets the name of previous page.

Posted: Jan 31, 2011 09:00 AM

View 4 Replies!   View Related
Web Forms :: How To Track The Previous Page
I am redirecting from  A.aspx to C.aspx and B.aspx to C.aspx.In C.aspx i have a button "Back Page". I am implementing as below.If there is a better way pls let me know.

In A.aspx and B.aspx before redirecting to C.aspx,saving the LastPageURL in session

Dim lastPage as string = Request.UrlReferrer.AbsolutePath
Dim sArray() as string = lastPage.split("/")
lastPage = sArray(Array.Length-1)
Session("LastURL") = lastpage
On click of Button "Back Page" in C.aspx
Response.Redirect(Session("LastURL"),True)

Posted: Jul 13, 2010 04:22 AM

View 9 Replies!   View Related
Web Forms :: How To Move To Previous Page
How can I move to the previous page.

Posted: Mar 05, 2007 04:51 PM

View 3 Replies!   View Related
Web Forms :: Prevent To Go Previous Page
i am doing an quiz appliction in asp.net with the update panel and timer control(java script)

when the user click the next button the next question will come and timer is also working perfectly

the problem is when the user answer more than 1 question and click back button then first question is appearing and the timer is reset

wat i want is when the user click the browser's back button it should not do anything....

remember i am using timer(javascript) and update panel

Posted: Sep 01, 2009 09:54 AM

View 3 Replies!   View Related
Web Forms :: How To Expire The Previous Page
I have Form which is inserting data into database. After inserting always i am redirecting to the another page. But some time user hit back button and go to the same page which will ask for RETRY. If he/she press the RETRY button duplicate data will be inserted.

How i can complately expire the all form data so even if he hit back button the page will load complately fresh.

Posted: Dec 05, 2010 02:10 PM

View 2 Replies!   View Related
Web Forms :: How To Check Previous Page
how to check what the previous page was when a new page is loaded in the Page_Load event?For ex., If (previous page = "url") //do thisI'm not sure of the current syntax for this type of check.

Posted: Feb 18, 2011 04:06 AM

View 2 Replies!   View Related
Web Forms :: How To Refer A DDL From A Previous Aspx Page
i have couple of aspx pages, both have drop down lists (DDLs) in them. A user first goes to Page1.aspx and choose a value from the DDL-1 and click on Submit button. He is then taken to the Page2.aspx which again has a DDL-2. What I want is to populate the
DDL-2 based on what was chosen in DDL-1. I am not able to figure out how to access something that was chosen on a previous page. I believe I need to create a reference to the previous page? Please help me out with this.

Posted: Apr 15, 2010 08:30 PM

View 7 Replies!   View Related
Web Forms :: Retrieving A Variable From A Previous Page
I'm looking to have a search page where a user will select an item from a listview, then then taken to another page that wil display data based on their original selection.

A user will type in a string and be presented with a list of usernames that are like that string, when they select a user name who's profile they would like to view I would like the page that they're taken to, to be that users profile.

How would I transfer the variable from the search page to the profile page, and when I work on the profile page, how can I access that variable?

Posted: Aug 21, 2010 01:38 PM

View 4 Replies!   View Related
Web Forms :: Autofill Fields From Previous Page?
 I'm tryin to autofill fields from the previous pages DDL. I believe i have to parse somehow.

Posted: Feb 11, 2010 08:55 PM

View 7 Replies!   View Related
Web Forms :: Clear Previous Page's Data?
after adding items in cart.aspx...n by clicking on "FINALE PURCHASE" button control goes to the card.aspx

--->click method of cart.aspx

[Code]....

card.aspx

by clicking on submit in card.aspx

[Code]....

Posted: Oct 21, 2009 07:04 PM

View 5 Replies!   View Related
Web Forms :: Accessing Previous Content Page Control?
Inside Page2.aspx file I'm trying to access Textbox1 control which is defined in Page1.aspx file but it gives error because it cannot find the control. The statement PreviousPage.FindControl("TextBox1") works only if Page1.aspx file is not tied to a master page. How can I find the control when both Page1.aspx and Page2.aspx files are part of the master page as shown below?

Page1.aspx file:

[Code]....

Page2.aspx.cs file:

[Code]....

Posted: Jan 04, 2011 02:34 PM

View 14 Replies!   View Related
Web Forms :: Retain The Previous Selection When A Page Is Reopened
 I have a parameter page which contains a hyperlink. This hyperlink opens a new window when clicked. I am passing the value of the selection made in the listbox in the new window to the previous page via session. Now, once, i again click the hyperlink in that session, i want to show the previous selection made on that hyperlink page.

Posted: Apr 18, 2010 11:00 PM

View 12 Replies!   View Related
Web Forms :: Call Previous Page Control From A Class?
I am trying to open a modalpop of previous page from a class, but i am unable to find that control

[Code]....

Posted: Jan 29, 2010 06:24 PM

View 5 Replies!   View Related
Web Forms :: Restrict The User From Going To The Previous Page After Logging Out?
What is the best way to restrict the  user from going to the previous page after logging out?

Posted: Sep 01, 2010 08:32 AM

View 2 Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved