Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2005, 03:55 PM
Authorized User
 
Join Date: Jul 2005
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default FormsAuthentication Class

Once user has been authenticated, he/she will be directed to a page.
I mean ...

FormsAuthentication.RedirectFromLoginPage(loginNam e, persistentState)
and
<authentication>
  <forms .... ... loginUrl="login.aspx" ... />
</authentication>

I go to the browser and type login.aspx in address bar. Upon successful login, I am directed to default.aspx. Is that possible to change that
page(such as default2.aspx)? Thank you.

 
Old October 27th, 2005, 04:06 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Is this related to ASP.NET 2.0, the new version?

If not, you might be better off posting in one the .NET 1.x forums.

That said, take a look here:

http://msdn.microsoft.com/library/de...asp?frame=true

It shows you how to login a user manually, and then determine the Url to redirect to manually as well by using GetRedirectUrl. If the Url is empty, then you can redirect to Default2.aspx

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old November 24th, 2005, 01:43 AM
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

TRy this book " "Develop your own Web Accounting Application using ASP.Net"

Covers:

Master ASP.Net web development techniques.
Use these techniques to develop any Web Application of your choice.
Learn web programming and get a full web accounting software along the way.
Learn how to use ASP.Net web server controls.
Learn how to install and configure the IIS (A must for using ASP.Net).
Learn how to access data in ASP.Net using ADO.Net.
Learn Inserting, Updating, Deleting and Retrieving data using DataReader & DataCommands and DataSets.
Learn how to create DataTables and update records.
Program Datagrid for professional data entry forms.

   1. Design and program an in-line ASP.Net datagrid feature into your form.
   2. Use a dropdown listbox in the footer of a datagrid to add a new record.
   3. Learn how to enable users add, edit, delete and cancel data in a datagrid which is in a transaction like receipt, payment or sale.
   4. Learn datagrid paging.
   5. Learn how to use datagrid templates.
   6. Learn adding a bound column to a datagrid.
   7. Learn sorting columns in an ASP.Net datagrid control.

Secure your application (both windows and form-based authentication discussed) in your intranet and internet. This feature alone covers the cost of the books !!. All settings in IIS, Web.Config file and programming Register & Login Pages explained.
Learn how to register users visiting your website and maintain their database.
Cache data in ASP.Net datasets and display in ASP.Net pages.
Write stored procedures and call them from an ASP.Net page.
Use viewstate property in a database application.
Cache data & perform various filter operations in a dataview.
Deploy your web application successfully with no hassles.
Use Crystal Reports (both the PULL and PUSH methods) in an ASP.Net application. Print reports just as in a desktop application.

and many more.







Books for programmers
http://www.vkinfotek.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
FormsAuthentication swifty_programmer ASP.NET 2.0 Basics 0 August 24th, 2007 05:53 AM
FormsAuthentication whfang ASP.NET 1.x and 2.0 Application Design 1 January 16th, 2007 05:42 PM
FormsAuthentication not declared! Renu ASP.NET 1.0 and 1.1 Basics 2 October 6th, 2004 10:29 AM
FormsAuthentication.RedirectFromLoginPage shaileshmark General .NET 5 August 19th, 2004 05:17 PM
FormsAuthentication Class alyeng2000 ASP.NET 1.0 and 1.1 Basics 7 March 3rd, 2004 02:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.