473,804 Members | 3,353 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

hit IE back button

Hi there,

I am having a problem with my asp.net web pages. If user hit BACK button on
IE and then click some other web controls on the web page. the page goes to
blank page. Anyone has the solution for this?

Alan
Nov 19 '05 #1
4 1450
You'll need to dig into it more and give us more specifics to replicate.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Alan Wang" wrote:
Hi there,

I am having a problem with my asp.net web pages. If user hit BACK button on
IE and then click some other web controls on the web page. the page goes to
blank page. Anyone has the solution for this?

Alan

Nov 19 '05 #2
Following is the error message when user hit BACK button on IE and then
click other web controls on the web page

Object reference not set to an instance of an object.HobokenN J at
HobokenNJ.vdata .totalAD.perfec tAD.Utility.Rec ordError(Except ion eError,
EventLogEntryTy pe enumType) in
C:\Inetpub\wwwr oot\HobokenNJ\c omponents\Utili ty.vb:line 87
at HobokenNJ.Get_P rice.btnCalcula te_Click(Object sender, EventArgs e) in
C:\Inetpub\wwwr oot\HobokenNJ\G et_Price.aspx.v b:line 417
at System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e)
at
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
eventArgument)
at System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
at System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
at System.Web.UI.P age.ProcessRequ estMain()

But if user doesn't hit BACK button and the page works fine. At the same
time I checked error "Object reference not set to an instance of an object"
I did create a object. I don't know what's going on.

Alan
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:4C******** *************** ***********@mic rosoft.com...
You'll need to dig into it more and give us more specifics to replicate.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Alan Wang" wrote:
Hi there,

I am having a problem with my asp.net web pages. If user hit BACK button
on
IE and then click some other web controls on the web page. the page goes
to
blank page. Anyone has the solution for this?

Alan

Nov 19 '05 #3
What is the code around line 87 of utility.vb and 417 of get_price.aspx?

I guess that when navigating along a normal flow your page is getting
certain data, but when going "back|" it isn't so some error is happening.
Can't you just step through your code line by line to see what is happening
when you go "back" and how it differs from normal?

"Alan Wang" <wa**@vdata.com > wrote in message
news:u4******** *****@TK2MSFTNG P14.phx.gbl...
Following is the error message when user hit BACK button on IE and then
click other web controls on the web page

Object reference not set to an instance of an object.HobokenN J at
HobokenNJ.vdata .totalAD.perfec tAD.Utility.Rec ordError(Except ion eError,
EventLogEntryTy pe enumType) in
C:\Inetpub\wwwr oot\HobokenNJ\c omponents\Utili ty.vb:line 87
at HobokenNJ.Get_P rice.btnCalcula te_Click(Object sender, EventArgs e) in C:\Inetpub\wwwr oot\HobokenNJ\G et_Price.aspx.v b:line 417
at System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e)
at
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o
stBackEvent(Str ing eventArgument)
at System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
at System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
at System.Web.UI.P age.ProcessRequ estMain()

But if user doesn't hit BACK button and the page works fine. At the same
time I checked error "Object reference not set to an instance of an object" I did create a object. I don't know what's going on.

Alan
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:4C******** *************** ***********@mic rosoft.com...
You'll need to dig into it more and give us more specifics to replicate.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Alan Wang" wrote:
Hi there,

I am having a problem with my asp.net web pages. If user hit BACK button on
IE and then click some other web controls on the web page. the page goes to
blank page. Anyone has the solution for this?

Alan


Nov 19 '05 #4
>>417 of get_price.aspx
myUtility.Recor dError(ex, Diagnostics.Eve ntLogEntryType. Error)

and myUntility define as:

Dim myUtility As vdata.totalAD.p erfectAD.Utilit y = New
vdata.totalAD.p erfectAD.Utilit y
line 87 of utility.vb
Blank line(wired)

Alan

"Aidy" <so***@noemail. zzz> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
What is the code around line 87 of utility.vb and 417 of get_price.aspx?

I guess that when navigating along a normal flow your page is getting
certain data, but when going "back|" it isn't so some error is happening.
Can't you just step through your code line by line to see what is
happening
when you go "back" and how it differs from normal?

"Alan Wang" <wa**@vdata.com > wrote in message
news:u4******** *****@TK2MSFTNG P14.phx.gbl...
Following is the error message when user hit BACK button on IE and then
click other web controls on the web page

Object reference not set to an instance of an object.HobokenN J at
HobokenNJ.vdata .totalAD.perfec tAD.Utility.Rec ordError(Except ion eError,
EventLogEntryTy pe enumType) in
C:\Inetpub\wwwr oot\HobokenNJ\c omponents\Utili ty.vb:line 87
at HobokenNJ.Get_P rice.btnCalcula te_Click(Object sender, EventArgs e)

in
C:\Inetpub\wwwr oot\HobokenNJ\G et_Price.aspx.v b:line 417
at System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e)
at

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o
stBackEvent(Str ing
eventArgument)
at System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
at System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
at System.Web.UI.P age.ProcessRequ estMain()

But if user doesn't hit BACK button and the page works fine. At the same
time I checked error "Object reference not set to an instance of an

object"
I did create a object. I don't know what's going on.

Alan
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:4C******** *************** ***********@mic rosoft.com...
> You'll need to dig into it more and give us more specifics to
> replicate.
>
> --
> Curt Christianson
> site: http://www.darkfalz.com
> blog: http://blog.darkfalz.com
>
>
>
> "Alan Wang" wrote:
>
>> Hi there,
>>
>> I am having a problem with my asp.net web pages. If user hit BACK

button >> on
>> IE and then click some other web controls on the web page. the page goes >> to
>> blank page. Anyone has the solution for this?
>>
>> Alan
>>
>>
>>



Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
7596
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. 2. When anybody click on those links, it will open a new windown.
1
4287
by: Peter D. Dunlap | last post by:
Hello, I realize that this may not be the best place to ask this question, through the application is asp.net. I also realize that questions about disabling the back button are generally met with derision, so let me explain: (1) The site is actually a web-based application, not a "web site" per say, and is not accessable by the public. It is an application used internally by the company I work for, though it accessed by employees
4
7650
by: Hypo | last post by:
I added a 'Back' button to my page, and wrote 'OnClick' code something like this: Response.Write("<script>history.go(-" + iDepthIndex.ToString() + ");</script>"); But, it dosnt work! Effect is that browser navigates to desired page as expected and go back from where it started! But, the 'Back' button on browser works normaly. I dont get it!!??
8
2589
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and courses are populated. When course is selected, lists of occurrences, groups and
6
10700
by: Mark | last post by:
I have two dropdown lists. Both have autopostback set to true. In both dropdowns, when you select an item from the list, it redirects to the Value property of the dropdown. Nothing fancy. Let's say you select 1 of the items, and are properly redirected. You press the back button. I have three servers providing two different functionalities: 1. After pressing the back button, the item you selected in the dropdown is still selected.
29
4081
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. The submit button posts the page back to the server. The button code detects an entry error and sends the page back to the user. This all works. However, if the user presses the Back button at this point, we go back and all the form values are...
6
1949
by: tshad | last post by:
I am trying to set up a Javascript popup box that has a way of sending back a message to asp.net on how to process some data. At the moment I am just doing: myNextButton.Attributes.Add("onclick", "return confirm('Are you sure you want finish this test?');") to attach a popup box to a button. The problem is that the buttons only say OK and Cancel. OK will take me to the event tied to the button and Cancel,
5
2399
by: Tom wilson | last post by:
I'm developing an application that is a benefits enrolment website. The benefits can be of any type in any order as stored in a SQL server. On each page is a Back and Next button. At a certain point in the initialization of the app, I determine a navigational structure; what benefit is first, second, etc., therefore, which page to display first, second and so on. In session memory I store an array of page URL's and a single value...
7
2489
by: Sridhar | last post by:
Hi, I have a question regarding the Page_Load method and Back Button of Internet explorer. I have created a webform. In that webform I have several Text Boxes. Also I have two buttons. When I click on button1, it populates the text boxes with person1 details. When I click on button2, it populates the text box with person2 details and redirects to webform2. In webform2 if I click on Back Button of Internet Explorer it should display...
5
3010
by: ns21 | last post by:
How can the browser back button be disabled If the form is submitting information to other pages or submitting to itself or using redirections. I tried the tweaks like history.forward(1) in each page to prevent user to navigate back but its not very effective. The server side scripting is done using ASP. you may ask that why at first place I want to disable the browser back
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10087
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9166
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7631
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.