Modifying Form Action Attribute - How?

M

Matt

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
 
B

Brock Allen

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.
 
M

Matt

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


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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top