473,378 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

moving data across web pages in C#

36
Can someone show me how to use a static class to move data across web pages?
Oct 3 '07 #1
7 1533
Frinavale
9,735 Expert Mod 8TB
Can someone show me how to use a static class to move data across web pages?
Why do you need to use a static class?
Why can't you use Session or Cookies or Hidden Fields or something?
Oct 3 '07 #2
wbosw
36
Yes, I can use Session, wanted info on using a static class.
Oct 4 '07 #3
HI,

maybe what you can do is to use a querystring to move data into webpages.

regards
ruel


Can someone show me how to use a static class to move data across web pages?
Oct 4 '07 #4
Frinavale
9,735 Expert Mod 8TB
Yes, I can use Session, wanted info on using a static class.
Have you seen what MSDN has on static classes and static class members?

I don't think that designing a static class to do this would be particle for moving data between web pages...there's nothing stopping you from trying it out though.

I'd suggest using Session instead...since you're considering using server side objects anyways....and Session is already developed and used by many people.

Cheers!

-Frinny
Oct 4 '07 #5
wbosw
36
Using Profile probably is the best way to do this because it is strongly typed, where Session isn't strongly typed. Just wanted to try and use a static class. Thank you all for all your suggestions.
Oct 4 '07 #6
Frinavale
9,735 Expert Mod 8TB
Using Profile probably is the best way to do this because it is strongly typed, where Session isn't strongly typed. Just wanted to try and use a static class. Thank you all for all your suggestions.
Profile?
Why would you suggest Profile?

Profile is a way to store information unique to the user, sure, but:
  • you have to store the information into a database using a unique user identifier
  • and you have be able to recognize users when they visit again so that you can then fetch the user information.....

Using Session is a lot easier for simply passing information between pages.....and a Session Identifier is set up automatically....and you don't have to use a database if you don't want to.

Why are you choosing to use Profile?
Oct 4 '07 #7
wbosw
36
Profile?
Why would you suggest Profile?

Profile is a way to store information unique to the user, sure, but:
  • you have to store the information into a database using a unique user identifier
  • and you have be able to recognize users when they visit again so that you can then fetch the user information.....

Using Session is a lot easier for simply passing information between pages.....and a Session Identifier is set up automatically....and you don't have to use a database if you don't want to.

Why are you choosing to use Profile?

If i'm not using Profile to store specific info on a user, but just to move data across pages. Using Profile, gives me the use of intellisense, because Profile properties are strongly typed. I appreciate all the advice and will add you to my Buddy list for future discussions.

Thanks
wbosw
Oct 7 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Astra | last post by:
Hi All I've noticed on quite a few ASP sites that when they have a 'MyAccount' section they transfer the site to https and then when you have logged into your account successfully and gone back...
1
by: Burt | last post by:
My company needs to move a 30 Gig SQL Server across the country as soon as possble on July 1. Turns out moving the full db across the network takes a few hours. I'd like to move a full copy of...
3
by: news.rcn.com | last post by:
How can I access the request and response object for a page using javascript. I want to stick some data on with something like request.setAttribute( "User's choice for later use" ). I can't seem...
5
by: Corrine | last post by:
Given a backend on a network server and a frontend on a local computer, when is data pulled across the network? For example, does Rst.Recordcount pull data across the network? How about...
3
by: jqpdev | last post by:
Hello all, I've been developing web apps using Borland's websnap technology which is built upon asp technology. I'm tranisitioning to ASP.NET VS.NET and need some techniques/best practices to...
2
by: Mervin Williams | last post by:
I am using Infragistics UltraWebTab (a tab folder control for ASP.NET). My tab folder control will include five tab pages with a separate web form on each, and these web forms will share data. ...
2
by: fuzzybr80 | last post by:
I am using MySQL 5.0 with a number of innodb tables whose ibdata files are growing quite quickly and filling up the /var partition (file is /var/mysql/ibdata1). Earlier on I followed instructions...
7
by: =?Utf-8?B?TW9iaWxlTWFu?= | last post by:
Hello everyone: I am looking for everyone's thoughts on moving large amounts (actually, not very large, but large enough that I'm throwing exceptions using the default configurations). We're...
15
by: mcjason | last post by:
I saw something interesting about a grid pair puzzle problem that it looks like a machine when you find each that work out the way it does and say with all the others that work out the way they...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.