473,378 Members | 1,309 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,378 software developers and data experts.

changing the action of web form

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.
Nov 19 '05 #1
2 1720
I have not tried this but you might want to a look:
http://www.codeproject.com/aspnet/jsnopostback.asp

"z f" <zi**@info-scope.co.il> wrote in message
news:u6**************@TK2MSFTNGP09.phx.gbl...
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.

Nov 19 '05 #2
Remove the <base href="..."> tag.

S. L.

"z f" <zi**@info-scope.co.il> wrote in message
news:u6**************@TK2MSFTNGP09.phx.gbl...
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.

Nov 19 '05 #3

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

Similar topics

1
by: Bryan Avery | last post by:
I am posting XML to a ASP web page, but it is not picking up the pure XML messages, why not? We have to use ENCTYPE="text/plain", otherwise the XML code is changed by Microsoft. Here is the...
3
by: jeff | last post by:
Hello, I have a form that submits it's values to a pop-up window. I've simplied the code: <form name="formname" action="action.php" target="windowName" method="post" onsubmit="window.open('',...
2
by: Claire Osborne | last post by:
I have made a form at http://www.lcuk.org/cleanair/form.htm In the Financial Information section there is a question "How do you wish to pay?" If the user selects "invoice" then when the user...
8
by: horos | last post by:
hey all, Ok, a related question to my previous one on data dumpers for postscript. In the process of putting a form together, I'm using a lot of placeholder variables that I really don't care...
1
by: Aaron | last post by:
Is it possible to change the location a form posts to (the form has runat=server)? Instead of: action="sample.aspx?sessid=xxx&cmd=yyyy" I want: action="sample.aspx?sessid=xxxx" Can this be...
0
by: ego | last post by:
When designing a form I had insert a few objects near the left border of the form , But when changing to the Form view, the size of the form is changing , All my objects (Labels, TextBox, etc..)...
8
by: josephman1988 | last post by:
What i want to do, is have content on a homepage, which can be edited via a form on a restricted page. E.G. I have news on home page, when i go to a restricted page (e.g. mysite.co.uk/admin) i...
25
by: william.hooper | last post by:
here is my form: <html> <head></head> <body> <FORM ACTION="code.php" method="post"> <INPUT TYPE=SUBMIT NAME="arty.jpg" VALUE="Action"> </FORM>
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.