Viewstate <--> Methods; Session <--> Web Forms; Something?? <--> Email?

This is along shot but I'm cautiously optimistic someone has thought of it long before and possibly an simple answer does exist...

If I want to move a thing between methods (I still call them subroutines) I can put the thing in a ViewState and then later take it out.

If I want to move a thing between web forms, I can put the thing into a Session and then later take it out.

Is there a somethingX that if I want to I can

  • take the thing
  • put it into a somethingX
  • put the somethingX into a file and email the file
  • take the somethingX out of the file
  • read the somethingX into whatever it was before?

I'm guessing this might be something  easy, it's just I need the name so I can go Google it.

Thanks in advance for your help!

 


Larry Dechent - Sampson Coatings

www.wemakebetterpaint.com has 29 examples (C# & VB) to help beginners with ASP.NET.
0
ldechent
1/7/2009 2:34:02 PM
asp.net.web-forms 93655 articles. 6 followers. Follow

3 Replies
1435 Views

Similar Articles

[PageSpeed] 27
Get it on Google Play
Get it on Apple App Store

 Hi Larry,

What you are asking is essentially serialize/deserialize an object. So you can write to an xml file or something. Then you can read that xml file back and construct the object. Here is a simple example. If you are not happy with it.. you should be able to find tons of examples in google.. Look for Serialization/Deserialization in .net

http://www.codeguru.com/columns/dotnet/article.php/c5821


Kumar Reddi
0
Kumar
1/7/2009 2:43:57 PM

It looks like the question has been answered.

 I'm going to try it right now.  My goal was, after an ArrayList was built, to be able to "package" and send it to someone and they can "unpackage" it and use it.  I kept the question general though because I was hoping for something general that might "package" and store other things.

-Larry

Update- I haven't figured it out yet (I'll remove this tag when I have) -- however I've already seen enough to raise my confidence level.  I might come back here if I think I have a quick question but your link mentioned above is already completely satifactory.


Larry Dechent - Sampson Coatings

www.wemakebetterpaint.com has 29 examples (C# & VB) to help beginners with ASP.NET.
0
ldechent
1/7/2009 2:54:23 PM

To follow up on http://www.codeguru.com/columns/dotnet/article.php/c5821, the link mentioned above, the following is in progress:

The link http://social.microsoft.com/Forums/en-US/netfxbcl/thread/4e03f724-1bdf-4636-bed1-e100c9c37184 looks to be a good source of an easy, working example (it doesn't get any better than easy and working! : - )

Right now the verb "serialize", to me, means "put it in a box with padding so we can ship it" -- I hope to come back with a better definition than that when this is over.

 

 

My scratch notes:

  • XMLSerializer
  • Stream
  • FileStream
  • .Serialize  {{serializer.Serialize(stream, obj)}}

Larry Dechent - Sampson Coatings

www.wemakebetterpaint.com has 29 examples (C# & VB) to help beginners with ASP.NET.
0
ldechent
1/7/2009 3:05:38 PM
Reply:

Similar Artilces:

How to strip a string of <html>, ,</html>, <body>, </body>, <form ... >, </form> tags?
I have stream which is the HTML input of a page. Now I want to use only that part of this page, that is within <form .....> and </form> tags, and excluding these tags.How would I go about stripping <html>, ,</html>, <body>, </body>, <form ... >, </form>, <head> and </head> tags? I have to make sure that <head ...javascript..> and its corresponding </head> tags are not stripped in this process.sun21170    Wait... you said you wanted to strip the head tags, and you're also saying you need to NOT strip the ...

>>>> Heads up <<<<
I just got a warning from Norton that "PamelaSetup-Basic.exe" has a virus in it. The name is "VirusBurst" Luckily, I did not install this software and Norton's quarantined it so I could delte it, which I have done. Symantec has not completed analysis of this particular piece of garbage but it did catch the sig. If you have installed Pamela, you may be in trouble. Duffy wrote: > I just got a warning from Norton that "PamelaSetup-Basic.exe" has a virus > in it. The name is "VirusBurst" > > Luckily, I did not install...

>>>> ROOT Exploit in SAMBA <<<<<<
"A flaw has been detected in the Samba main smbd code which could allow an external attacker to remotely and anonymously gain Super User (root) privileges on a server running a Samba server. This flaw exists in previous versions of Samba from 2.0.x to 2.2.7a inclusive. This is a serious problem and all sites should either upgrade to Samba 2.2.8 immediately or prohibit access to TCP ports 139 and 445." http://us3.samba.org/samba/samba.html Binaries are available from Samba for RedHat, and some other distributions. So far as I can tell, the RedHat update mirrors I norm...

connectionstrings and web.config // login failed for user '<<domain>>\<<servername>>$'
It seems that the account mentioned <>\Server$ is the NTAUTHORITY\NETWORKSERVICE I read some posts on the net about .NET 1.1 that involved changing your machine.config.. not an option I like because then the webserver of my hosting company needs to do that to. Visual studio 2005 makes for the dataset a code behind file <>.designer.cs. I did change the connectionstring from my commands to a connectionstring with sql credentials. But it doesn't update everything. My logic was that when i remove the connectionstrings from the app.config or web.config they don't exist anymore so I ...

C<< >> vs C<< >> vs C<< x >>
Ugh. So we all know that there's this syntax for formatting codes (n=E9s "interio= r sequences") like C<< x >>. And that tokenizes as three tokens: "C<< ", open-C code "x", content " >>" close-code matching the C open-code And this is explicated by what I wrote in perlpodspec where I say that such a code... * starts with a capital letter (just US-ASCII [A-Z]) followed by two or more "<"'s, one or more whitespace characters, * any number of characters * one or more whit...

>>>> BUY RAM <<<<
.. ~~~*@@@*~~~ ================================================== ================================================== ENTER HERE: >>> http://web-for-you.cn/about/buy-ram <<< ================================================== ================================================== .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ...

>>>> CAPITALS GAMES <<<<
.. ~~~!!!~~~ ================================================== ================================================== CLICK HERE TO ENTER: >>> http://web-paradise.cn/3/capitals-games <<< ================================================== ================================================== .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....

>>>> BLU-RAY MOVIES <<<<
.. ~~~!!!~~~ ================================================== ================================================== CLICK HERE TO ENTER: >>> http://web-paradise.cn/2/blu-ray-movies <<< ================================================== ================================================== .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....

[PATCH] correctly handle C<< >> and C<<< >>> in diagnostics
This is just a quick hack; ideally someone would make it use an actual pod parser. --- perl/lib/diagnostics.pm.orig 2003-12-30 15:48:47.000000000 -0800 +++ perl/lib/diagnostics.pm 2004-05-25 01:54:31.735904000 -0700 @@ -314,10 +314,10 @@ sub noop { return $_[0] } # spensive for a noop sub bold { my $str =$_[0]; $str =~ s/(.)/$1\b$1/g; return $str; } sub italic { my $str = $_[0]; $str =~ s/(.)/_\b$1/g; return $str; } - s/[BC]<(.*?)>/bold($1)/ges; + s/C<<< (.*?) >>>|C<< (.*?) >>|[BC]<(.*?)>/bold($+)/ges; ...

I've placed <forms loginUrl="home.aspx"></forms> in web.config and now all users that log in go to default.aspx
I've placed <forms loginUrl="home.aspx"></forms> in web.config and now all users that log in go to default.aspx.        <authentication mode="Forms">        <forms loginUrl="home.aspx"></forms>      </authentication>What attribute I should add, to make the user stay on the same page. Btw when I remove  <forms loginUrl="home.aspx"></forms>, users stay on the same page after login.Thanks. try one of these.....

Lists in .net
Like a good AKA accessible app building developer, my application's navbar is controlled with CSS and using <ul> and <li> I just have the code in the HTML display and it works fine when everything should be visible, however, I need to restrict some users from viewing certain navbar links based on their security levels.  How do I hide the list items that need to be hidden? TIA hello! give them ids and runat="server" attribute. then in code behind set the Visible property to false. orzeh code less, think more! Okay, I tried putting the link as a link bu...

The Man Who Debunks Virus Myths <<<hero???>>>R.Rosenberger Vmyths.com!!!<<<SIGH>>>
http://www.securitynewsportal.com/article.php?sid=1368&mode=thread&order=0 -- Regard: Joh@nnes� 1216771 Ont.Inc. "Nothing is more damaging to a new truth than an old error" Take a look at the following from the article: (Begin quote) "Rosenberger is not just a random ornery writer with a website and a bone to pick. He's an experienced programmer, a systems administrator and a man of mystery with high-level CIA security clearance. Information about Rosenberger's status with the CIA was confirmed by an inquiry to a government office, and Ro...

Writing outside <form></form> ?
Is it possible to write characters outside the form tag? I know, you can't insert controls there, but is it just possible to insert ordinary ascii characters? Yes you can.  Normal HTML tags can be outside of the <Form> tag.  What do you have in mind in relation to this question? Of course I meant how to do that programmaticaly, with asp.net. I believe you can, but haven't tried it.  For example, using Page.Controls collection should be possible to achieve this since your Form resides in this collection.  Again, I haven't tried this so I'm not sure what problem...

>>>BOOKMARKS<<<
I dont understand the hep page for Lsot Bookmarks - can someone guide me please? I need to know what to look for (instructions in how to do it) As I dont know what im doing im new to using PC's RAJA SINGH wrote: > I dont understand the hep page for Lsot Bookmarks - can someone guide me > please? I need to know what to look for (instructions in how to do it) As I > dont know what im doing im new to using PC's please keep your posting together so we can follow whats going on. Thanks. Close FF. Now, using your file manager, locate the FF profile. To l...

Web resources about - Viewstate <--> Methods; Session <--> Web Forms; Something?? <--> Email? - asp.net.web-forms

Google Drive for iOS updated w/ 3D Touch support, Slide Over & Split View multitasking
Google today has updated its Drive app on iOS with a handful of notable new features and enhancements. First off, today’s update to Drive, which ...

Star Wars Bits: Jimmy Kimmel Interviews, Star Wars VR, Starkiller Base Blueprints
It was I who allowed the Alliance to know the location of the Star Wars Bits . It is quite safe from your pitiful little band. This edition of ...

Turkey shooting down that Russian plane doesn't mean war. Yet.
As Turkey shot down a Russian Su-24 military plane at the Turkish-Syrian border on Tuesday morning, the world is once again gearing up for real-time ...

NASA plans twin sounding rocket launches over Norway this winter
This winter, two sounding rockets will launch through the aurora borealis over Norway to study how particles move in a region near the North ...

Yet Another Dell Root Certificate Found Out
It looks like things are not all that rosy over at Dell, as yet another Dell root certificate has been discovered, which is in addition to what ...


Leaked recording: pollution lobbyists discuss exploiting Syrian refugee crisis
A leaked recording made of a conference call posted by the Edison Electric Institute, which lobbies for the power industry, reveals lobbyists ...

Amazon Video gets a bunch of new features on iOS
Amazon has released a ton of new features for its Video app. The update includes 3D touch support, Next Up (which is basically auto-play), picture-in-picture ...

Amazon to Remove Man in the High Castle Nazi Symbols From NYC Subway Cars
Following a copious amount of backlash, Amazon Studios has decided to kill their NYC subway ad campaign by removing the Nazi imagery they put ...

Richard Dawkins Compares Ahmed Mohamed To ISIS Child Soldier
Richard Dawkins is backpedaling after he posted a tweet Tuesday that compared "clock kid" Ahmed Mohamed to an Islamic State child soldier who ...

Resources last updated: 11/24/2015 11:01:48 PM