old with the new, forms...

S

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
 
G

Guest

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).
 
M

Mark Rae

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

Sam Carleton

William said:
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
 
S

Sam Carleton

Mark said:
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
 
M

Mark Rae

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

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

Top