473,657 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getting variables from Html pages

Hello all,

I have this idea that might not work, our website is built by someone else
and is a CMS website. There is a page with links to other websites and at the
moment I have created a file for each link, the file is just a .html file
that redirects to the actual website. My links on the page are directed to
the relevant file then my webstats tell me how many times each file has been
loaded, and therfore how many click throughs each link gets.

Eg: href=http://links.website.c om/microsoft.html> Visit Microsoft then
microsoft.html is just a file that redirects to microsoft.com.

The problem with this method is that every time a new link is added, I have
to create a new file.

Is there a way to create an Asp.net page that I can send info to and then
the asp.net page record it and forward to the info, for example:

href=http://links.website.c om/www.microsoft.c om then the asp.net page would
take the www.microsoft.com bit and record it in a database, then forward to
that site. Therefore I would not need to create pages or re write pages, asp
would just say record whatever is sent then forward to it.

Am I making sense? Or is there a better way to record where people go from a
website that is basic html?

Thanks
James
Nov 16 '07 #1
2 1048
Is there a way to create an Asp.net page that I can send info to and then
the asp.net page record it and forward to the info, for example:

href=http://links.website.c om/www.microsoft.c om then the asp.net page
would
take the www.microsoft.com bit and record it in a database, then forward
to
that site. Therefore I would not need to create pages or re write pages,
asp
would just say record whatever is sent then forward to it.
How about:

href=http://links.website.c om/Redir.aspx?url= http://www.microsoft.c om

Then just pick up Request.QuerySt ring["url"] in the Page_Load event and do
whatever.

Nov 16 '07 #2
Brilliant

Just what I needed thanks.

James

P.s I needed to change the [] to () in my code

"Scott Roberts" wrote:
>
Is there a way to create an Asp.net page that I can send info to and then
the asp.net page record it and forward to the info, for example:

href=http://links.website.c om/www.microsoft.c om then the asp.net page
would
take the www.microsoft.com bit and record it in a database, then forward
to
that site. Therefore I would not need to create pages or re write pages,
asp
would just say record whatever is sent then forward to it.

How about:

href=http://links.website.c om/Redir.aspx?url= http://www.microsoft.c om

Then just pick up Request.QuerySt ring["url"] in the Page_Load event and do
whatever.

Nov 16 '07 #3

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

Similar topics

5
2006
by: Martien van Wanrooij | last post by:
Some time ago I already posted a question about a site that consists of several pages where the visitor, on every page can answer one or two questions in order to fill out an intake for for an investment advice. So in the page question1.php = a form "action = question2.php" and in question2.php the variables (results of the form) are registered to the session. What I still didn't succeed to is the following: let us say the customer is...
4
2297
by: Rahul Chatterjee | last post by:
Hello All I have 2 websites both using different style sheets (.css). The stylesheets are stored in a session variable and get set at the time the site gets invoked. What is happening is something like this. I bring up the first site and navigate around. Everything is okay. The stylesheets are correct and so on and so forth. When I click on a link to go to the other site from the first site (I create a new instance of the browser),...
12
2572
by: jyu.james | last post by:
I'm trying to detect reads of uninitialized global variables (that are declared in one file, and used in another as an extern). I know that ANSI C initializes all global variables to 0, however, I do not want to rely on this for initialization. Instead, I want to explicity initialize all variables myself. I've looked at tools like Compuware BoundsChecker, which does an amazing job in detecting uninitialized variables, but doesn't...
0
1190
by: ani | last post by:
I have few multiple choice questions that are paginated. The button that takes the user to the next page is a hyperlink on a image. I am using standard <a href ><image> tag .My aspx page contains a datalist control and I am calling a function in between the <td> tags in the Itemtemplate. The function basically loops associates the answer choices to each question in a page. The anwer choices are radio buttons , so the function returns a...
6
3859
by: Roman | last post by:
Which is better when passing values between forms?
9
3962
by: Good Man | last post by:
Hi This is sort of a weird question, perhaps a bit off-topic... I am on the 'edit' screen of a web form, and I have a bunch of variables coming from a database that need to be placed into the form. In the past, I have been using PHP to pre-populate each field, something like <input type="text" id="firstName" value="<?= $first_name ?>" />
6
1850
by: christopher.j.just | last post by:
I need to set the information being passed through the fields (23 of them) in the form into a session. Where do I start? Thanks, Chris
0
2284
by: tharika_c | last post by:
Hi, We have a simple ASP.NET web application where one of the Session variables, called Session("SSO_ID") gets created and assigned a value (equal to the HTTP_HRID request variable value), inside the Session_Start event of the global.asax.vb file, since this variable is accessed by almost all the pages in the project. Besides this variable, there are other session variables which are set in the various aspx pages, as needed.
29
4071
by: Chris Riesbeck | last post by:
I have an image with a class and the class defines a clip rectangle. In Firefox 2 and 3, and Opera 9, I can access the rectangle with document.defaultView.getComputedStyle(). But that doesn't seem to work in Safari for Windows 3, nor when I use image.currentStyle.clip in IE 7. Is there a way to do this in those browsers? Am I doing something stupid?
0
8411
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
8323
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8739
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...
1
8513
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8613
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
4173
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...
1
2740
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
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
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.