473,467 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Modifying Form Action Attribute - How?

I have a client that requires a custom extension to all of the aspx pages. I have created an HttpHandler to receive the custom extension but where do I capture the response of the form with an action attribute to change the extension. For example a form is rendered to the browser with <form action="test.aspx"> how would I modify this in the rendering stage to change action to something like <form action="text.xxx">.

Thanks,

Matt
May 19 '06 #1
2 1477
The HtmlForm class has specific code for emitting the action, so it seems
you're out of luck unless you put a non-runat=server <form> tag.

-Brock
http://staff.develop.com/ballen

I have a client that requires a custom extension to all of the aspx
pages. I have created an HttpHandler to receive the custom extension
but where do I capture the response of the form with an action
attribute to change the extension. For example a form is rendered to
the browser with <form action="test.aspx"> how would I modify this in
the rendering stage to change action to something like <form
action="text.xxx">.

Thanks,

Matt

May 19 '06 #2
Brock,

I believe I found a way. I am just inheriting from the HtmlForm class and overriding the default action process with reflection.

Thanks,

Matt
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message news:b8************************@msnews.microsoft.c om...
The HtmlForm class has specific code for emitting the action, so it seems
you're out of luck unless you put a non-runat=server <form> tag.

-Brock
http://staff.develop.com/ballen

I have a client that requires a custom extension to all of the aspx
pages. I have created an HttpHandler to receive the custom extension
but where do I capture the response of the form with an action
attribute to change the extension. For example a form is rendered to
the browser with <form action="test.aspx"> how would I modify this in
the rendering stage to change action to something like <form
action="text.xxx">.

Thanks,

Matt

May 19 '06 #3

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

Similar topics

10
by: iam247 | last post by:
Hi In my prototype asp page (with no javascript and no password validation, I have a registration form with the following action: <form name="form" method="post" action="RegDetails.asp"> ...
2
by: belgie | last post by:
Whereas in Asp I could submit my form contents to any other Asp page, it appears that in Asp.NET the primary Asp form will only submit to itself. I have tried changing the Action attribute in the...
2
by: Dilip | last post by:
Hi Is there a way to modify the action attribute of a form just before the initial GET for that page renders the HTML? I have a case where I do a GET on a URL like so:...
4
by: wwwmike | last post by:
How can I overwrite the <FORM action=attribute? I can add new attributes with Dim xx As System.Web.UI.HtmlControls.HtmlForm xx = Page.FindControl("form1") xx.Attributes.Add("something",...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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...
0
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
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
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...
0
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...

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.