473,569 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

catch previous url

3 New Member
Hi
I want help on my project It has a table which visible on click and It has 2 button send, and cancle. Send button redirect second page and return with status "Y" in this ok after sending a message second table is visible which has Ok button. Now my Problem is that I want when button Ok is click url remove status "y" from IT.
How Is it Possible??????? ???????????/
Just to give example first url is
www.xyz.com?pro dId=20&colorID= 30&size=20 after redirect it come like this
www.xyz.com?pro dId=20&colorID= 30&size=20&Stat ys="Y"

I want when I click Ok it catch first URl.
Sep 30 '08 #1
4 1823
DrBunchman
979 Recognized Expert Contributor
You can't remove anything from the URL but you can redirect to the first URL which will have the same effect. Either use Javascript in the buttons onclick event or set the target of the form that contains the Ok button to the first URL.

Dr B
Sep 30 '08 #2
Ragni Srivastava
3 New Member
Hi
I have a program which redirect same url with status ' Y '
and display a message now my proble is That I want when user click Ok button it remove only 'Y' from Url For detail I give u a Example
suppose I have tow page
First page is like
http://bytes.com/forum/newthread.asp?do=newthread&f=151
its action on other page
http://bytes.com/forum/newthread.php...f=151&Status=Y
and It show a table which visible a table which has a button Ok
i want when use click button ok tabel visible property is hidden
I use to call javascript function

Expand|Select|Wrap|Line Numbers
  1. function  divHid()
  2. {
  3. document.getElementById('div1').style.visibility='Hidden';
  4. }
Its working Ok
but I want to catch First page url also because url is still
http://bytes.com/forum/newthread.php...f=151&Status=Y
like this
How to remove status=Y form URl or
catch first page url that is
http://bytes.com/forum/newthread.php?do=newthread&f=151

Plz guide me
u can mail me on my mail Id
(e-Mail address removed by DrBunchman)
Thanks and Redirect
Ragni
Oct 4 '08 #3
Ragni Srivastava
3 New Member
You can't remove anything from the URL but you can redirect to the first URL which will have the same effect. Either use Javascript in the buttons onclick event or set the target of the form that contains the Ok button to the first URL.

Dr B
thanks for reply but page is not redirect
i use javascript code
Expand|Select|Wrap|Line Numbers
  1. function  divHid()
  2. {
  3. document.getElementById('div1').style.visibility='Hidden';
  4. //    myUrl="purchase/productdetail_EMail.asp?cgmain=" & mprimarycatId & "%26cgsub=" & msubcatId & "%26prodid=" & mprodId
  5. //alert(purchase/productdetail_EMail.asp?cgmain="& mprimarycatId & "%26cgsub=" & msubcatId & "%26prodid=" & mprodId);
  6. //document.getElementById('div1').action=("purchase/productdetail_EMail.asp?cgmain="& mprimarycatId & "%26cgsub=" & msubcatId & "%26prodid=" & mprodId);
  7.  
  8. }
all comented line I use but not redirect page
I also use
<%Response.Redi rect (myUrl)%>
in Javascript function divHid()
but button stop working how to redirect that page
Oct 4 '08 #4
DrBunchman
979 Recognized Expert Contributor
Ragni,

Please don't double post your questions - it is against the rules laid out in the Posting Guidelines and I have merged your other thread on this topic with this one. Also please don't print your email address in your posts - it is for your own protection against spamming.

You can use a javascript redirect in your function if you wish to change the URL of the page like this:

Expand|Select|Wrap|Line Numbers
  1. window.location.href="http://www.whatever.com/";
However i'm not sure that is exactly what you want. Having the 'Y' in the querystring is triggering some kind of action on the page - is that correct? Why do you then want to remove it?

Dr B
Oct 4 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

10
30269
by: Gary.Hu | last post by:
I was trying to catch the Arithmetic exception, unsuccessfully. try{ int a = 0, b = 9; b = b / a; }catch(...){ cout << "arithmetic exception was catched!" << endl; } After ran the program, it quitted with core dumped. %test
37
2927
by: clintonG | last post by:
Has somebody written any guidelines regarding how to determine when try-catch blocks should be used and where their use would or could be considered superfluous? <%= Clinton Gallagher METROmilwaukee (sm) "A Regional Information Service" NET csgallagher AT metromilwaukee.com URL http://metromilwaukee.com/ URL...
13
3699
by: Benny | last post by:
Hi, I have something like this: try { // some code } catch // note - i am catching everything now {
23
3049
by: VB Programmer | last post by:
Variable scope doesn't make sense to me when it comes to Try Catch Finally. Example: In order to close/dispose a db connection you have to dim the connection outside of the Try Catch Finally block. But, I prefer to dim them "on the fly" only if needed (save as much resources as possible). A little further... I may wish to create a sqlcommand...
1
1367
by: Jason Zhou | last post by:
Hi, I have a question on how to get the previous url in custom error file. Here is what I am doing: If someone visit my website with a wrong file name or wrong directory name, IIS will automatically show error 404 page, this was setup by default in IIS web site properties/Custom Errors. I replaced that 404b.htm with my aspx file try to...
2
1763
by: Jason Zhou | last post by:
Hi, I have a question on how to get the previous url in custom error file. Here is what I am doing: If someone visit my website with a wrong file name or wrong directory name, IIS will automatically show error 404 page, this was setup by default in IIS web site properties/Custom Errors. I replaced that 404b.htm with my aspx file try to...
9
3361
by: Michael MacDonald | last post by:
Does someone have a good site I can visit or explain the use of Try" and Catch foe exception/error handling. What is the logic behind this command and maybe an example would be great!!!! Mike_Mac *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it!
32
6100
by: cj | last post by:
Another wish of mine. I wish there was a way in the Try Catch structure to say if there wasn't an error to do something. Like an else statement. Try Catch Else Finally. Also because I understand Finally runs whether an error was caught or not, I haven't found a use for finally yet.
3
3796
by: Michael C | last post by:
I'm writing an app on the PDA using C# with .net 1.1. It is all working well except in some cases a try catch is simply ignored and a totally different error is returned. I've got code like below to execute a command. I'm simulating loss of connection by stopping sqlserver during a transaction. The problem is I cannot trap the error and I get...
7
1639
by: junw2000 | last post by:
class A { public: A() { try { p = new int; //Other lines that may throw exception. }
0
7695
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...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8119
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...
1
7668
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5509
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...
0
5218
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...
0
3653
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...
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
936
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...

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.