changing the action of web form

Z

z f

Hi,

i have vb.net asp.net web application.
i use a <form runat=server> tag
i need to change the action attribute of the form to submit to other page
(actually it's the same page but i need to add a folder prefix, because the
whole page have a <base href=> that points all url to other folder, so i
need to tell the form action to be at the form's folder specifically.
but even when i change the action attribute in the ASPX code or in code
behind,
the framework allways change it back to the default value.
what should i do?

TIA, z.
 
S

Shiva

I have not tried this but you might want to a look:
http://www.codeproject.com/aspnet/jsnopostback.asp

Hi,

i have vb.net asp.net web application.
i use a <form runat=server> tag
i need to change the action attribute of the form to submit to other page
(actually it's the same page but i need to add a folder prefix, because the
whole page have a <base href=> that points all url to other folder, so i
need to tell the form action to be at the form's folder specifically.
but even when i change the action attribute in the ASPX code or in code
behind,
the framework allways change it back to the default value.
what should i do?

TIA, z.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top