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

Posting to another page question

Hi!

I have Portal application which is on http. However I like to do user
authentification using SSL

I like approach most sites use:

They have

<form name="loginForm" action="https://sss" method="post">
...

I wonder how can I do "action" parameter dinamic from my ASP.NET ?

Next question is how to actually read values when it get's posted to
"https://sss"

Another question is
If I authentificated user and want to go to exactly same place user came
from (original http://aaa) How do I get this address ?

Also, I want to maintain same Session. All user credentials will be stored
there.

Is it correct approach to securing user login/password ?


Nov 17 '05 #1
4 1515
> I like approach most sites use:
They have
<form name="loginForm" action="https://sss" method="post">
I wonder how can I do "action" parameter dinamic from my ASP.NET ?


You just need to remove the runat=server attribute from the form tag and you
can do this. ASP.NET wraps an object oriented framework around these pages -
so you define the variables and then use the same variables to access the
data you collect in the postback. If you post to another page, you don't get
to do this - you just iterate through the collections that are passed the
same way you did 5 years ago. You can keep on doing it the old way (in which
case you can no longer use web controls) but you may want to consider
re-thinking the way you do things using this new paradigm. You might find
that you like it better - I know that I certainly did, once I got used to
it.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows XP
Windows XP Associate Expert
--
Nov 17 '05 #2

"Chris Jackson" <ch****@mvps.org> wrote in message
news:eg**************@TK2MSFTNGP10.phx.gbl...
I like approach most sites use:
They have
<form name="loginForm" action="https://sss" method="post">
I wonder how can I do "action" parameter dinamic from my ASP.NET ?
You just need to remove the runat=server attribute from the form tag and

you can do this.
I don't have any
ASP.NET wraps an object oriented framework around these pages -
so you define the variables and then use the same variables to access the
data you collect in the postback. If you post to another page, you don't get to do this - you just iterate through the collections that are passed the
same way you did 5 years ago.
What collection? I wasn't in web dev 5 years ago...
want to consider
re-thinking the way you do things using this new paradigm. You might find
that you like it better - I know that I certainly did, once I got used to
it.


I certanly want to do it right way.

Here is my scenario:

I have portal which does not have secure data right now. However, it allow
user to setup preferences.
Soon, I will be adding online store and want same users to be able use it. I
need "Login" block on main page (which is not secure)
From what I understand there is no build-in way for providing SSL for users
other then redirecting post to different page (from secured place).

In .NET I would have to create separate Login only page for this...

Any other ideas on how this could be done?




Nov 17 '05 #3
This isn't a problem that is unique to .NET - it's the same for any web site
you develop. .NET is only the environment you use to program the server - it
has no effect on what the client sees, which is still just plain old DHTML.

If you want to have just the login page encrypted, you can post to an SSL
page and make that happen. Alternately, if you want to simply have it post
back to itself, you need to have that page itself using SSL. SSL is not
something you provide - you simply need to have an https page on a certified
server. There is no configuration of the page, per se, but simply a
configuration of your server and where you place your files. Nothing is
unique to .NET here - this is simply a function of how the technology works.

Intro to SSL here:

http://developer.netscape.com/docs/m...n/contents.htm
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows XP
Windows XP Associate Expert
--
"Ivan Demkovitch" <i@d> wrote in message
news:O5**************@TK2MSFTNGP09.phx.gbl...

"Chris Jackson" <ch****@mvps.org> wrote in message
news:eg**************@TK2MSFTNGP10.phx.gbl...
I like approach most sites use:
They have
<form name="loginForm" action="https://sss" method="post">
I wonder how can I do "action" parameter dinamic from my ASP.NET ?
You just need to remove the runat=server attribute from the form tag and

you
can do this.


I don't have any
ASP.NET wraps an object oriented framework around these pages -
so you define the variables and then use the same variables to access the data you collect in the postback. If you post to another page, you don't

get
to do this - you just iterate through the collections that are passed the same way you did 5 years ago.


What collection? I wasn't in web dev 5 years ago...
want to consider
re-thinking the way you do things using this new paradigm. You might find that you like it better - I know that I certainly did, once I got used to it.


I certanly want to do it right way.

Here is my scenario:

I have portal which does not have secure data right now. However, it allow
user to setup preferences.
Soon, I will be adding online store and want same users to be able use it.

I need "Login" block on main page (which is not secure)
From what I understand there is no build-in way for providing SSL for users other then redirecting post to different page (from secured place).

In .NET I would have to create separate Login only page for this...

Any other ideas on how this could be done?



Nov 17 '05 #4
Chris,

Thank you for response.

I managed to make it work. However I have following problem:

1. Page posts to secured page fine (I assume user info is securely
transmitted and I don't miss anything here)
2. I have following code(in secured page):
Response.Redirect ("http://ivand/ASPNET/Default.aspx");

This suppose to redirect me back to main page (Main page load's depending on
security already saved in session)

But I get warning: "You are about to be redirected to a connection that is
not secure ...."

I understand why, but is there is any way to accomplish this without this
messages ??


"Chris Jackson" <ch****@mvps.org> wrote in message
news:e3**************@tk2msftngp13.phx.gbl...
This isn't a problem that is unique to .NET - it's the same for any web site you develop. .NET is only the environment you use to program the server - it has no effect on what the client sees, which is still just plain old DHTML.
If you want to have just the login page encrypted, you can post to an SSL
page and make that happen. Alternately, if you want to simply have it post
back to itself, you need to have that page itself using SSL. SSL is not
something you provide - you simply need to have an https page on a certified server. There is no configuration of the page, per se, but simply a
configuration of your server and where you place your files. Nothing is
unique to .NET here - this is simply a function of how the technology works.
Intro to SSL here:

http://developer.netscape.com/docs/m...n/contents.htm
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows XP
Windows XP Associate Expert
--
"Ivan Demkovitch" <i@d> wrote in message
news:O5**************@TK2MSFTNGP09.phx.gbl...

"Chris Jackson" <ch****@mvps.org> wrote in message
news:eg**************@TK2MSFTNGP10.phx.gbl...
> I like approach most sites use:
> They have
> <form name="loginForm" action="https://sss" method="post">
> I wonder how can I do "action" parameter dinamic from my ASP.NET ?

You just need to remove the runat=server attribute from the form tag
and
you
can do this.
I don't have any
ASP.NET wraps an object oriented framework around these pages -
so you define the variables and then use the same variables to access the data you collect in the postback. If you post to another page, you
don't get
to do this - you just iterate through the collections that are passed the same way you did 5 years ago.


What collection? I wasn't in web dev 5 years ago...
want to consider
re-thinking the way you do things using this new paradigm. You might find that you like it better - I know that I certainly did, once I got used to it.


I certanly want to do it right way.

Here is my scenario:

I have portal which does not have secure data right now. However, it

allow user to setup preferences.
Soon, I will be adding online store and want same users to be able use

it. I
need "Login" block on main page (which is not secure)
From what I understand there is no build-in way for providing SSL for

users
other then redirecting post to different page (from secured place).

In .NET I would have to create separate Login only page for this...

Any other ideas on how this could be done?




Nov 17 '05 #5

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

Similar topics

2
by: HANG LAM | last post by:
Hi, Simple question, Is there a way to post the data from one .aspx page to another page ? For example, I have a Page1.aspx that lets the user enter data like "Last Name", "First Name", but...
6
by: anon | last post by:
Post Forwarding question...... For this control below, <asp:Button runat="server" PostTargetUrl="page2.aspx" /> The Attribute: PostTargetUrl="page2.aspx" Is this PostTargetUrl Attribute...
10
by: DaveFash | last post by:
Posting variables from an HTML FORM, via the Request.Form function on the receiving ASP page is great. But how can you POST a Form variable to an ASP page -- without a human pushing a Submit...
5
by: Magnus | last post by:
Hi! This is my problem: I want to go from page1 to page2, and to get all the form variables from page1 to page2. I have turned the viewstate and the sessionstate off, and i really just...
2
by: Rob Shorney | last post by:
Hi, We currently have a classic asp web application. We are currently looking at upgrading this to ASP.NET. However I have a couple of problems that need to be resolved. 1. aspx forms...
2
by: ejs | last post by:
Please read the entire reponse, hopefully this clears up your questions. The data used that needs to go into the batchupload page comes from a server. My problem is that currently I write a file...
4
by: Peter Afonin | last post by:
Hello, I have a form with several buttons, and I need to post this data to several different applications. In ASP.NET 1.1 it was quite easy - I just used HTML controls (text or hidden), then...
44
by: Bruce Wood | last post by:
This subject has come up several times in this group over the last year. Several people in this group seem to feel strongly about this topic. Rather than derail other threads with this discussion,...
2
by: J055 | last post by:
Hi I'd like to post a page to another page using LinkButton.PostBackUrl. Then using another LinkButton on the target page post back to the source page and restore the controls to the state they...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.