Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 17th, 2006, 09:13 AM
Authorized User
 
Join Date: Jan 2006
Location: Pittsburgh, PA 15203
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
  #2 (permalink)  
Old March 18th, 2006, 01:09 AM
Wrox Technical Editor
 
Join Date: Dec 2005
Location: , , Canada.
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
  #3 (permalink)  
Old March 19th, 2006, 12:18 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
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."
  #4 (permalink)  
Old March 20th, 2006, 08:07 AM
Authorized User
 
Join Date: Jan 2006
Location: Pittsburgh, PA 15203
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

  #5 (permalink)  
Old March 20th, 2006, 10:36 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
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."
  #6 (permalink)  
Old March 20th, 2006, 09:13 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Location: , , Canada.
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
  #7 (permalink)  
Old April 4th, 2006, 09:28 AM
Authorized User
 
Join Date: Jan 2006
Location: Pittsburgh, PA 15203
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

 


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


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



All times are GMT -4. The time now is 10:21 PM.


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