Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 July 22nd, 2009, 06:13 AM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default Rewriting 2 lines of code

hi,

i have a piece of code, but i looks like too old that these methods no longer exist. can some one please rewrite these lines for me, i will really appriciate that.

there are two methods newrow() and rows.add(), which i can't find now.


any one can help.

thanks

---------- Code ----------
drowSession = Context.Cache("SessionKeys").newrow()
drowSession("Session_Key") = objServiceTicket.SessionKey
drowSession("Session_Expiration") = objServiceTicket.Expiration
'Context.Cache("SessionKeys").rows.add(drowSession)
 
Old July 25th, 2009, 08:43 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

it's not a matter of being "old"; it's a matter of what was in Context.Cache("SessionKeys")

Context.Cache("SessionKeys") returns an Object so by design it doesn't have NewRow or Rows membersa. Maybe it contained a DataTable or something like that?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
lines of code nandar_hayhay C# 5 April 8th, 2009 12:09 AM
Reducing code lines with suitable method john316 C# 2005 7 September 21st, 2007 10:43 AM
Add few Lines of code to All new aspx pages. gadhiav ASP.NET 1.0 and 1.1 Professional 3 October 19th, 2005 02:33 PM





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