473,503 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Intercept HTML Hyperlinks on Render

I'm updating an existing project to send data between pages using
Server.Transfer (HTTPContext) instead of response.redirect and
querystring parameters. All of my web user controls inherit from a
custom base class so I'd like to modify that base class to capture all
<a href=... HTML tags before rendering.

I want to modify the value of the href attribute to run a javascript
function on the page. The javascript function will parse the
querystring parameters and post them back to the server which will
then add the name/value pairs to the current Context and then call
server.transfer

Laziness is my motivation. We are adding some features that use info
which should not be passed in querystring parameters. If I could make
this work, I could convert all of my web user controls to
server.transfer without having to manually change each one.

Is this possible? Is this recommended? Can anyone point me in the
right direction?

Thanks,

-E

Sep 24 '07 #1
0 1181

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

Similar topics

1
4126
by: zoltix | last post by:
Hi, I am beginner in JavaScript. I would like to intercept all click events on my document. I use this function for that document.onmousedown=click;. It works well. But I would like to...
3
1513
by: mca | last post by:
Hi everyone, I'm new to asp.net and i have a question about separating the html code from the programming code. i have an unknown numbers of entries in my table. I want to make a hyperlink...
6
2771
by: Adam Smith | last post by:
Not sure if this is the best place for this but here goes... I'm trying to create a dynamic newsletter generator. There will be several controls to select from to generate the layout of the...
2
2131
by: rpale | last post by:
We want to create server-side code that will retrieve the user requested pages, then manipulate the content of those pages just before being sent back to the user. We tried the following: ...
1
973
by: tzake | last post by:
Dear Helper, I would like to write some text retrieved from a database of a web form. However, if this text contains links to web sites or e-mail addresses I would like to render them as...
5
1463
by: LP | last post by:
Hi, After html of .aspx page has been generated, but before it has been sent to a client, I want to interecept it, and slightly modify it. I can't find anyway to get html of a page. How can I do...
2
1491
by: KatB | last post by:
Hoping I can explain what I need... I have a web control within an aspx page. I need to store, edit and retrieve tagged HTML in the DB (which I can do), then render that HTML in a control (label...
6
2854
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server...
0
960
by: Maciek | last post by:
Hi all, I was wondering what is the best way to render some HTML (text + styles + hyperlinks) with code. I have a Table WebControl and I add a TableCell and TableRow to it. Now, I would like to...
0
7201
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
7083
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...
1
6988
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
5578
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
5011
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
3166
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...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
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
734
muto222
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.