Saturday, March 24, 2012

old with the new, forms...

My new asp.net 2.0 web site just went live today!
http://www.miltonstreet.com
Being the typical tinker, I am already adding to it! I have taken a
traditional login FORM from another web site and want to my asp.net
site. I have added it to the development site. When I run the
development version, enter the login info, and click the send button,
nothing happens. I am guessing that I cannot simply dump a traditional
HTML FORM onto an asp.net 2.0 page and have it work. Am I correct? If
so, what do I need to do to get the form to work?
Sam
P.S. it is a get style of formNice site. As for your form, you have to realize that the web page being
processed by Internet Information Service may be handled in several differen
t
ways. It all depends on the filename extension. By default, I believe, HTM
L
files are not processed by ASP.NET. You can see how this is configured by
going to IIS, viewing the properties of your website, and clicking the
Configuration button. You can see that different file extensions are handle
d
by different executables.
In addition, you cannot simply drop a HTML login page from somewhere else
into your website and expect it to authenticate users on your web page. I'd
highly suggest that you get a decent book on ASP.NET and read up on
authentication. Its much simpler to do with ASP.NET 2.0; cheap, as well, fo
r
a small website as you can use Sql Server 2005 Express (free).
"Sam Carleton" wrote:

> My new asp.net 2.0 web site just went live today!
> http://www.miltonstreet.com
> Being the typical tinker, I am already adding to it! I have taken a
> traditional login FORM from another web site and want to my asp.net
> site. I have added it to the development site. When I run the
> development version, enter the login info, and click the send button,
> nothing happens. I am guessing that I cannot simply dump a traditional
> HTML FORM onto an asp.net 2.0 page and have it work. Am I correct? If
> so, what do I need to do to get the form to work?
> Sam
> P.S. it is a get style of form
>
"Sam Carleton" <scarleton@.gmail.com> wrote in message
news:1151898545.013778.106780@.b68g2000cwa.googlegroups.com...

> I am guessing that I cannot simply dump a traditional HTML FORM
> onto an asp.net 2.0 page and have it work. Am I correct?
You are correct.

> If so, what do I need to do to get the form to work?
Largely depends what you mean by "work"... What do you expect to happen when
your users hit the button...?
William Sullivan wrote:

> In addition, you cannot simply drop a HTML login page from somewhere else
> into your website and expect it to authenticate users on your web page. I
'd
> highly suggest that you get a decent book on ASP.NET and read up on
> authentication. Its much simpler to do with ASP.NET 2.0; cheap, as well,
for
> a small website as you can use Sql Server 2005 Express (free).
William,
I am very sorry, I did not make myself clear. The login page will take
the user to the other site. I use www.collages.net to host my photo
session/events. If you goto their homepage there is a section "View An
Event" and you enter a username and password. One event I currently
have active is:
Username: Jamie
Password: 7855
If you enter that information, it takes you to another page at
collages.net. What I want to do is put this form that that
collages.net has on their homepage on my web page. I do not expect it
to authenticate for my website, but rather send the user off to
collages.net.

> Nice site. As for your form, you have to realize that the web page being
> processed by Internet Information Service may be handled in several differ
ent
> ways. It all depends on the filename extension. By default, I believe, H
TML
> files are not processed by ASP.NET. You can see how this is configured by
> going to IIS, viewing the properties of your website, and clicking the
> Configuration button. You can see that different file extensions are hand
led
> by different executables.
Ok, I follow you. I am using master pages for my web site. If I am
not mistaken, master pages don't work with HTML pages, do they? I
thought they only with asp.net page. So, any thoughts on how to make
the asp.net do a post to collages.net's site?
Sam
Mark Rae wrote:

> Largely depends what you mean by "work"... What do you expect to happen wh
en
> your users hit the button...?
I replied to someone else with a bit more detail on what I am expecting
to happen when the user clicks the button:
The login page will take the user to the other site. I use
www.collages.net to host my photo session/events. If you goto their
homepage there is a section "View An Event" and you enter a username
and password. One event I currently
have active is:
Username: Jamie
Password: 7855
If you enter that information, it takes you to another page at
collages.net. What I want to do is put this form that that
collages.net has on their homepage on my web page. I do not expect it
to authenticate for my website, but rather send the user off to
collages.net.
Sam
"Sam Carleton" <scarleton@.gmail.com> wrote in message
news:1151937556.812146.213180@.j8g2000cwa.googlegroups.com...

> The login page will take the user to the other site. I use
> www.collages.net to host my photo session/events. If you goto their
> homepage there is a section "View An Event" and you enter a username
> and password. One event I currently have active is:
> Username: Jamie
> Password: 7855
> If you enter that information, it takes you to another page at
> collages.net. What I want to do is put this form that that
> collages.net has on their homepage on my web page. I do not expect it
> to authenticate for my website, but rather send the user off to
> collages.net.
One simple way would be to encapsulate that entire page in a frame / iframe
on your site.
Alternatively, you could look at the HttpRequest / HttpResponse
functionality, but that would be a bit more work...

0 comments:

Post a Comment