Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 November 21st, 2003, 01:22 PM
Registered User
 
Join Date: Jul 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

why using ticket not formauth.setauth? more secure?or maybe i read wrong?
:)
i think formauth.setauth is concern with configure web.config manually right?

sorry again if i miss understand
 
Old November 21st, 2003, 01:27 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

FormsAuthentication.SetAuthCookie is a short cur to the stuff I showed you. It's easier to use, because all it needs is a username, a bool indicating the persistence, and optionally a cookie path.

Internally, I assume this method does more or less the same as my code. However, with my code, you have the ability to store additional UserData. In most of my (commercial) intranet sites, I store the User's GUID encrypted in this UserData part of the ticket, so it's easy to retrieve the UserID later on in the site.

Take a look here for more info: ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemwebsecurityformsauthenticationclassseta uthcookietopic2.htm

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old November 21st, 2003, 02:24 PM
Registered User
 
Join Date: Jul 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks..i check it later..now i'm going to sleep it's 1.40 am at my country
cu
 
Old November 22nd, 2003, 02:31 PM
Registered User
 
Join Date: Jul 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i want to ask again :)

i have data grid at my form and got its datasource from sqldatareader
coz i read in the book that use datareader instead dataadapter
for better server performance

what i want to ask is how to get allow sort and paging with data grid
eventhough i alreadt make allowpaging and allow sorting properties to
true

i come up with error
"AllowCustomPaging must be true and VirtualItemCount must
be set for a DataGrid with ID dgShowroom when AllowPaging is set to
true and the selected datasource does not implement ICollection."

and if i get allow custom paging check in datagrid property builder
i don't get the error but my datagrid can't paging coz at the footer
just have "1" for the paging not "1 2 3 ..."

if i have to change to dataset for paging and sorting that i should
rebuild my coding from scratch again..
is there anyway to fix this?
and how to sort the datagrid?

thanks









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