473,404 Members | 2,213 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,404 software developers and data experts.

the first disappointing thing I find in ASP.NET

I canīt believe thath with ASP.NET we loose the ability to make POST
requests to another webforms in another application...

I say this because of my last question "Redirect by POST method to another
applications" , which had two answers, but none of them so simple like in
the old ASP:

<form name="form2" method="post"
action="http://anotherServer/anotherApp/anotherForm.aspx">
<input name="user" type="text" id="user"/>
<input name="password" type="password" id="password" />
</form>

Any opinions?
Mar 21 '07 #1
10 1369
As a general rule for this or any other forum, you need to say "I"m using
1.1" or "I'm using 2.0".

This situation has been addressed in Asp.Net 2.0.

Are you using 1.1 or 2.0?


"gustav" <gu*****@webserver.com.arwrote in message
news:uW*************@TK2MSFTNGP03.phx.gbl...
I canīt believe thath with ASP.NET we loose the ability to make POST
requests to another webforms in another application...

I say this because of my last question "Redirect by POST method to another
applications" , which had two answers, but none of them so simple like in
the old ASP:

<form name="form2" method="post"
action="http://anotherServer/anotherApp/anotherForm.aspx">
<input name="user" type="text" id="user"/>
<input name="password" type="password" id="password" />
</form>

Any opinions?


Mar 21 '07 #2
http://www.codeproject.com/aspnet/PostToAnotherPage.asp

"gustav" <gu*****@webserver.com.arwrote in message
news:uW*************@TK2MSFTNGP03.phx.gbl...
I canīt believe thath with ASP.NET we loose the ability to make POST
requests to another webforms in another application...

I say this because of my last question "Redirect by POST method to another
applications" , which had two answers, but none of them so simple like in
the old ASP:

<form name="form2" method="post"
action="http://anotherServer/anotherApp/anotherForm.aspx">
<input name="user" type="text" id="user"/>
<input name="password" type="password" id="password" />
</form>

Any opinions?


Mar 21 '07 #3
PS
I'd change careers before going back to ASP.

I know I (like we all did) thought it was cool in 1997, but man, its like
pulling teeth even looking at it with Asp.Net 2.0 in existence.

...


"gustav" <gu*****@webserver.com.arwrote in message
news:uW*************@TK2MSFTNGP03.phx.gbl...
I canīt believe thath with ASP.NET we loose the ability to make POST
requests to another webforms in another application...

I say this because of my last question "Redirect by POST method to another
applications" , which had two answers, but none of them so simple like in
the old ASP:

<form name="form2" method="post"
action="http://anotherServer/anotherApp/anotherForm.aspx">
<input name="user" type="text" id="user"/>
<input name="password" type="password" id="password" />
</form>

Any opinions?


Mar 21 '07 #4
using 1.1, cantīt migrate to 2.0 yet ( in my first message it said ASP.NET
1.1)

"sloan" <sl***@ipass.netescribió en el mensaje
news:%2******************@TK2MSFTNGP05.phx.gbl...
As a general rule for this or any other forum, you need to say "I"m using
1.1" or "I'm using 2.0".

This situation has been addressed in Asp.Net 2.0.

Are you using 1.1 or 2.0?


"gustav" <gu*****@webserver.com.arwrote in message
news:uW*************@TK2MSFTNGP03.phx.gbl...
>I canīt believe thath with ASP.NET we loose the ability to make POST
requests to another webforms in another application...

I say this because of my last question "Redirect by POST method to
another
applications" , which had two answers, but none of them so simple like in
the old ASP:

<form name="form2" method="post"
action="http://anotherServer/anotherApp/anotherForm.aspx">
<input name="user" type="text" id="user"/>
<input name="password" type="password" id="password" />
</form>

Any opinions?



Mar 21 '07 #5
"sloan" <sl***@ipass.netwrote in message
news:%2********************@TK2MSFTNGP02.phx.gbl.. .
I'd change careers before going back to ASP.

I know I (like we all did) thought it was cool in 1997, but man, its like
pulling teeth even looking at it with Asp.Net 2.0 in existence.
You'll be saying exactly the same thing about ASP.NET 2 in 10 years...
Mar 21 '07 #6
asp.net 1.1 only allows one form with runat server and render the
current page as target. the only way to override this is with
javascript. you can other forms with different targets, just without the
runat=server, which is just as easy as asp.

-- bruce (sqlwork.com)

gustav wrote:
I canīt believe thath with ASP.NET we loose the ability to make POST
requests to another webforms in another application...

I say this because of my last question "Redirect by POST method to another
applications" , which had two answers, but none of them so simple like in
the old ASP:

<form name="form2" method="post"
action="http://anotherServer/anotherApp/anotherForm.aspx">
<input name="user" type="text" id="user"/>
<input name="password" type="password" id="password" />
</form>

Any opinions?

Mar 21 '07 #7

"gustav" <gu*****@webserver.com.arwrote in message
news:uW*************@TK2MSFTNGP03.phx.gbl...
I canīt believe thath with ASP.NET we loose the ability to make POST
requests to another webforms in another application...

I say this because of my last question "Redirect by POST method to another
applications" , which had two answers, but none of them so simple like in
the old ASP:

<form name="form2" method="post"
action="http://anotherServer/anotherApp/anotherForm.aspx">
<input name="user" type="text" id="user"/>
<input name="password" type="password" id="password" />
</form>

Any opinions?

One possible work around in some situations is you can use the override
render to change to action on the form as follows.

Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)

Dim _stringBuilder As StringBuilder = New StringBuilder()
Dim _stringWriter As StringWriter = New StringWriter(_stringBuilder)
Dim _htmlWriter As HtmlTextWriter = New HtmlTextWriter(_stringWriter)
MyBase.Render(_htmlWriter)
Dim html As String = _stringBuilder.ToString()
Dim start As Integer = html.IndexOf("action=")

if start <-1 then

html = html.Insert(start + 8, "someother place to post")
end if
writer.Write(html)

End Sub
Mar 21 '07 #8

"gustav" <gu*****@webserver.com.arwrote in message
news:uW*************@TK2MSFTNGP03.phx.gbl...
I canīt believe thath with ASP.NET we loose the ability to make POST
requests to another webforms in another application...

I say this because of my last question "Redirect by POST method to another
applications" , which had two answers, but none of them so simple like in
the old ASP:

<form name="form2" method="post"
action="http://anotherServer/anotherApp/anotherForm.aspx">
<input name="user" type="text" id="user"/>
<input name="password" type="password" id="password" />
</form>

Any opinions?

Another option is to build an html form without the runat tag and use
placeholders to fill the variable data into the form

Mike
Mar 21 '07 #9

You're probably right.

But ...

<include files (and source safing this with the vss "share" function)

and no OO. Rough stuff.

"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
"sloan" <sl***@ipass.netwrote in message
news:%2********************@TK2MSFTNGP02.phx.gbl.. .
I'd change careers before going back to ASP.

I know I (like we all did) thought it was cool in 1997, but man, its
like
pulling teeth even looking at it with Asp.Net 2.0 in existence.

You'll be saying exactly the same thing about ASP.NET 2 in 10 years...


Mar 21 '07 #10
gustav wrote:
I canīt believe thath with ASP.NET we loose the ability to make POST
requests to another webforms in another application...

I say this because of my last question "Redirect by POST method to another
applications" , which had two answers, but none of them so simple like in
the old ASP:

<form name="form2" method="post"
action="http://anotherServer/anotherApp/anotherForm.aspx">
<input name="user" type="text" id="user"/>
<input name="password" type="password" id="password" />
</form>

Any opinions?
That's just plain HTML, and it still works in ASP.NET.

Actually, if you want the post to take place in the browser, that's the
only way to do it.

Alternatively, if you want to post a request and handle the response in
the server code instead, you can use a HttpWebRequest object.

--
Göran Andersson
_____
http://www.guffa.com
Mar 22 '07 #11

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

Similar topics

19
by: DotNetIsHorrible | last post by:
I write CRUD database applications for a living for an audience of about 100 users per application using classic ASP. I maintain and frequently change on user's request 22 different applications...
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
5
by: Mike Mascari | last post by:
"Hewlett-Packard Co. (NYSE:HPQ - news) will support open-source software companies JBoss and MySQL on its servers as it seeks to compete with International Business Machines Corp. (NYSE:IBM - news)...
0
by: NutsAboutVB | last post by:
Basically, the title explains it. I want to be able to read the first n bytes (say, 1024 bytes) of any file (text or binary) off the internet in my vb.net application. I specifically do not want...
16
by: Martin Joergensen | last post by:
Hi, I wanted to try something which I think is a very good exercise... I read in data from the keyboard and store them in a structure. There's a pointer called "data_pointer" which I use to...
10
by: jimmy | last post by:
Hi again, sorry for posting two questions so close together but im working on a school project which is due in soon and running into some difficulties implementing the database parts. I have the...
4
by: Milan Krejci | last post by:
int first=15,latest=15; QString typ=NULL; std::map<int,std::string>::iterator i; for(i = SeznamPracovniDoby.begin(); i != SeznamPracovniDoby.end(); i++) { if (typ==NULL) typ=i->second.c_str(); if...
14
by: Martin Wells | last post by:
When I have errors in a program, whether they be compiler errors, linker errors, or if the program crashes when running, I have a list of things I check for initially. If I get an error for...
11
by: coomberjones | last post by:
I have a few std::strings that I am using to store raw binary data, each of which may very well include null bytes at any point or points. I want to slap them together into a single string, so I...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.