473,289 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

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 1474
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: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.