Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 March 17th, 2006, 09:13 AM
Authorized User
 
Join Date: Jan 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing object to the next page in asp.net

hai everyone,

    i having a problem where i have come across a situation that i have to pass the object to the next page.using session is not prferred as it contains large data.i want to pass this object through the hyperlink if possible.

Can anyone suggest me a good solution or can help me to get out of it

thanks in advance,
Madhu.

__________________
Regards,
P.Madhusudhana Rao
 
Old March 18th, 2006, 01:09 AM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would recommend using session objects over query strings (hyper links); the extra overhead involved in passing session objects is marginal on modern day servers.

However; in the extreme case that you have a server with VERY limited resources and a website with an exponentially large number of hits, then you may want to consider using the query string.

Keep in mind that 4% of code typically accounts for 50% or more of the performance bottleneck.
In other words a very small portion of your code will be responsible for your program running slowly.
Instead of worrying about writing fast code, you may want to focus on completing your application, then find the bottlenecks and tune your code.

Some links that may be of interest:
ASP.NET Session State FAQ: http://www.eggheadcafe.com/articles/20021016.asp

ASP.NET Best Practices for High Performance Applications: http://www.codeproject.com/useritems..._Practices.asp

- A.Kahtava
 
Old March 19th, 2006, 12:18 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

While I agree with Adam on this, what kind of data are you passing and do you have to redirect to another page? You may be able to avoid some pitfalls if you handle the data directly on Postback. My 2 cents anyway.

"The one language all programmers understand is profanity."
 
Old March 20th, 2006, 08:07 AM
Authorized User
 
Join Date: Jan 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i need to pass ID collection to the next page where there are some 50000 ID's so which one can u suggest because i am already using session objects but the performance is not tooo good so tell me the best way i can do it

thanks in advance
Madhu

 
Old March 20th, 2006, 10:36 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

That is in no way practical to pass a string around that is that size, your preformance will take a hit either way because, even if you pass this via a query string, when you actually go to populate a string with this value and then try to work with it, your server isn't going to just bog down your aspnet_wp.exe is going to recycle itself because .NET sets aside 10 bytes of memory + 2 * string length not so much a problem until you try to work with that string and it starts replicating itself in memory.

What exactly are you doing? I can not think of a time where I ever needed to pass that much data around.

"The one language all programmers understand is profanity."
 
Old March 20th, 2006, 09:13 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Another thing to consider: the length of a query string is limited and varies between browsers.

- A.Kahtava
 
Old April 4th, 2006, 09:28 AM
Authorized User
 
Join Date: Jan 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks all i have resolved this propblem by redesigning the page.mostly thanks to dparsons and adam kahtava.

madhu






Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning ASP 3.0: Passing ItemID from one page to AlanM Classic ASP Basics 0 July 1st, 2007 03:23 AM
Passing values between Asp to Aspx page jayaraj General .NET 2 May 25th, 2004 01:16 AM
passing values from ASP page to a popup ASP Page astrosmurfboy Classic ASP Basics 3 April 21st, 2004 08:17 PM





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