Home All Groups Group Topic Archive Search About

old with the new, forms...

Author
3 Jul 2006 3:49 AM
Sam Carleton
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

Author
3 Jul 2006 1:29 PM
William Sullivan
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 different
ways.  It all depends on the filename extension.  By default, I believe, HTML
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 handled
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, for
a small website as you can use Sql Server 2005 Express (free). 

Show quoteHide quote
"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
>
>
Are all your drivers up to date? click for free checkup

Author
3 Jul 2006 2:07 PM
Sam Carleton
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 different
> ways.  It all depends on the filename extension.  By default, I believe, HTML
> 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 handled
> 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
Author
3 Jul 2006 2:04 PM
Mark Rae
"Sam Carleton" <scarle***@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...?
Author
3 Jul 2006 2:39 PM
Sam Carleton
Mark Rae wrote:

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

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
Author
3 Jul 2006 8:04 PM
Mark Rae
Show quote Hide quote
"Sam Carleton" <scarle***@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...



Post Thread options