473,480 Members | 1,850 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to resolve links?

If I have the code below and I want to check the link:
http://abc.com/test_formRelative.cfm?DoProcess=1

How can that be done? The form link is relative and I'll need to somehow
build the link. Also consider the relative path may look like this:
../test_formRelative.cfm?DoProcess=1
.../test_formRelative.cfm?DoProcess=1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<base href="http://abc.com">
<body>
Please submit the following form.
<form action="test_formRelative.cfm?DoProcess=1" method="post">
<input type="text" name="name" value="myself">
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>

Thanks,
Brett
Nov 21 '05 #1
1 1053
"Brett" <no@spam.com> schrieb:
If I have the code below and I want to check the link:
http://abc.com/test_formRelative.cfm?DoProcess=1

How can that be done? The form link is relative and I'll need to somehow
build the link. Also consider the relative path may look like this:
./test_formRelative.cfm?DoProcess=1
../test_formRelative.cfm?DoProcess=1


\\\
Dim s1 As String = "http://www.example.org/shop/cart/"
Dim s2 As String = "./../buy/?id=123"
Dim u As New Uri(New Uri(s1), s2)
MsgBox(u.AbsoluteUri)
///

BTW: Be careful with sample URLs. For example, the domain abc.com does
exist...

RFC 2606 - Reserved Top Level DNS Names
<URL:http://www.faqs.org/rfcs/rfc2606.html>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2

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

Similar topics

2
25813
by: Sheela | last post by:
I am trying to access the tables of a remote database(db2) from db1 database. I am getting the following error: ORA-12154: TNS:could not resolve service name I tried tnsping the db2 service_name...
2
7235
by: asanford | last post by:
We use StackWalk(StackWalk64) from dbghelp.dll to walk our callstacksas needed, using the various Sym* methods (SymGetSymFromAddr, SymGetLineFromAddr) to resolve source file, function name, and...
2
1656
by: kpg | last post by:
Hola, How can I determine the url to a page while in the page_load event? I need to set up some links to files located in a folder on the server but I don't know what sever I'm currently...
7
2158
by: vasudev.v | last post by:
Hi All, I have one program, it links to two libraries. There is a variable with a same name in two different libraries. Compiler gives multiple declaration of same variable error. Please let...
7
2135
by: kvnsdr | last post by:
I can type an IP address and receive Internet domain name and my workstation name however no other IPs of computers on our internal network will resolve to a thier machine name only to the same IP...
4
10876
by: python | last post by:
at line "for j in linkReturned:" , raise an error: File "C:\pythonProgram\test.py", line 308, in main for j in linkReturned: TypeError: iteration over non-sequence how can I get a list from the...
8
25562
by: CJM | last post by:
I have a working web application (ASP) which links to an Oracle 10g DB via OO4O. I'm trying to port it to either of two test servers, but in fact, I can't get it to work with either - 'Unable to...
1
4605
by: vsp15584 | last post by:
Hii..i use the coding as below :- import java.applet.applet; import java.awt.*; import com.sun.j3d.utils.applet.mainframe; import com.sun.j3d.utils.universe.*; import...
4
6461
by: =?Utf-8?B?SnVhbiBEZW50?= | last post by:
Hi, I am getting the following in a VC++ EXE (using VS2005) that links several C++ DLLs and uses MFC and ATL, when I try to start it under the debugger: ------- 'Exactus.UX.Studio.v1.exe':...
3
3156
by: Sindhu Rani | last post by:
i hav created 3 classes in 3 different files. am gettin an error durin compilation. wat shud i do??? C:\s\source>javac -d ..\classes devtestdrive.java devtestdrive.java:5: cannot resolve symbol...
0
7041
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,...
0
7044
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7084
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...
1
6739
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...
0
5337
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,...
1
4779
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...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
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 ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.