Hi all I am relatively new to ASP.NET and would appreciate a little help with a problem I am having. I have a "login" page that (upon validation of username/password) loads up another page. Now I have both these pages (I am using c# btw) written, however I cannot find the (probably one line of) code that I need to get the login screen to launch the second screen. Thanks for your time.
majestic0110
187
Nearly a Posting Virtuoso
Recommended Answers
Jump to Postyou need a response.redirect to the correct page, or server.transfer. However, you should set a unique id in a session variable for the user. Then have a protection script to run on every page much like:
if (session["userid"] == "") { response.redirect("login.aspx") }
All 3 Replies
majestic0110
187
Nearly a Posting Virtuoso
SheSaidImaPregy
28
Veteran Poster
majestic0110
187
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.