Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old November 21st, 2003, 01:22 PM
Registered User
 
Join Date: Jul 2003
Location: , , .
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
Reply With Quote
  #12 (permalink)  
Old November 21st, 2003, 01:27 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #13 (permalink)  
Old November 21st, 2003, 02:24 PM
Registered User
 
Join Date: Jul 2003
Location: , , .
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
Reply With Quote
  #14 (permalink)  
Old November 22nd, 2003, 02:31 PM
Registered User
 
Join Date: Jul 2003
Location: , , .
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off




All times are GMT -4. The time now is 12:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.