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

How to ASP -> ASP.NET

VK
Folks,

In classic ASP, in order to prevent users from trying url directly(maybe
to see some sensitive HTML files) without logging in, I have an asp file
which mains the session("login")=1 variable, which is set as soon as
user logins and include it in all those pages. That way when they try
the url directly, it checks to make that login is 1 and then lets them
in otherwise redirects to error page.

How can the same thing be achieved in ASP.NET?

Many thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Jul 21 '05 #1
3 1089
You can do it exactly the same way if you like. You can also use the built
in Forms Authentication of .NET or you can store the logged in marker in a
database to get away from sessions.
"VK" <vk@vk.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Folks,

In classic ASP, in order to prevent users from trying url directly(maybe
to see some sensitive HTML files) without logging in, I have an asp file
which mains the session("login")=1 variable, which is set as soon as
user logins and include it in all those pages. That way when they try
the url directly, it checks to make that login is 1 and then lets them
in otherwise redirects to error page.

How can the same thing be achieved in ASP.NET?

Many thanks.
*** Sent via Developersdex http://www.developersdex.com ***

Jul 21 '05 #2
VK
Thanks Scott for speedy reply.

We are not using database for this project as it is only a temp solution
and hard coding userid and password information as well.

do you happen to have a link handy for forms method of authentication
maybe example?
*** Sent via Developersdex http://www.developersdex.com ***
Jul 21 '05 #3
http://www.howtodothings.com/ViewArt...spx?Article=31

"VK" <vk@vk.com> wrote in message
news:ul****************@TK2MSFTNGP10.phx.gbl...
Thanks Scott for speedy reply.

We are not using database for this project as it is only a temp solution
and hard coding userid and password information as well.

do you happen to have a link handy for forms method of authentication
maybe example?
*** Sent via Developersdex http://www.developersdex.com ***

Jul 21 '05 #4

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

Similar topics

1
by: Christian Schmidbauer | last post by:
Hello! I prepare my XML document like this way: ------------------------------------------------------- PrintWriter writer; Document domDocument; Element domElement; // Root tag
2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
0
by: Arne Schirmacher | last post by:
I want to display a MySQL database field that can contain HTML markup. If I use <esql:get-string> then I get all of the database field, but all tags are escaped which is not what I want. If I use...
34
by: Mark Moore | last post by:
It looks like there's a pretty serious CSS bug in IE6 (v6.0.2800.1106). The HTML below is validated STRICT HTML 4.01 and renders as I would expect in Opera, FrontPage, and Netscape. For some...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
2
by: bissatch | last post by:
Hi, I am currently writing a simple PHP program that uses an XML file to output rows for a 'Whats New' page. Once written, I will only require updating the XML file and any pages that use the...
0
by: vdex42 | last post by:
Apologies if this has been asked before, but I haven't been able to find the answer to this yet: My problem is that .NET will not allow me to insert escaped '>' characters (i.e. &gt;) within the...
2
by: santaji | last post by:
I am getting xml string in request attribute in following format &lt;files&gt; &lt;file&gt; &lt;filename&gt;somefile.ext&lt;/filename&gt; &lt;/file&gt; &lt;files&gt; the above string I want to convert to tags. expected...
1
by: VaidehiPawar | last post by:
I am a beginner level in xml..my output page does not convert &gt &lt it shows something like this " &lt;b&gt;Location.&lt;/b&gt;&lt;br /&gt; &lt;UL&gt;&lt;LI&gt;Park Central New York " can anyone help? here is my code ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.