Re: HttpContext/etc interfaces in webforms 4.0

2011-10-10 Thread Michael Ridland
Hi Where can I find the wrapper classes? On Tue, Oct 11, 2011 at 1:52 PM, David Kean wrote: > There not ‘base’ classes as such, but rather base classes for the wrapper > classes that wrap the ‘real’ HttpXXX objects. > > ** ** > > *From:* ozdotnet-boun...@ozdotnet.com [mailto: > ozdotnet-b

RE: HttpContext/etc interfaces in webforms 4.0

2011-10-10 Thread David Kean
There not 'base' classes as such, but rather base classes for the wrapper classes that wrap the 'real' HttpXXX objects. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Emily Waghorne Sent: Monday, October 10, 2011 6:40 PM To: ozDotNet Subject: Re: HttpCont

Re: HttpContext/etc interfaces in webforms 4.0

2011-10-10 Thread DotNet Dude
AFAIK this was the dream but don't think it has happened yet On Tue, Oct 11, 2011 at 12:10 PM, Michael Ridland wrote: > Hi > > Silly question time. > > I do remember talk that post 3.5 many asp.net pipeline classes would be > interfaced, eg Session, Request, Response. I'm having trouble finding >

Re: HttpContext/etc interfaces in webforms 4.0

2011-10-10 Thread Emily Waghorne
Hi Michael, It might not be what you're looking for, depends a bit on why you want them, but the following classes are in System.Web: HttpContextBase HttpRequestBase HttpResponseBase HttpSessionStateBase etc... Emily On 11 October 2011 12:10, Michael Ridland wrote: > Hi > > Silly question ti

HttpContext/etc interfaces in webforms 4.0

2011-10-10 Thread Michael Ridland
Hi Silly question time. I do remember talk that post 3.5 many asp.net pipeline classes would be interfaced, eg Session, Request, Response. I'm having trouble finding details on the web and locating in the framework. Is this true or am I dreaming? Thanks *Michael Ridland | ThinkSmart Digital* M

RE: ASCII to int

2011-10-10 Thread Greg Keogh
Tom, if you want to convert a string of ASCII chars into a number and do the inverse process, then the informational content of both is the same, only the representation changes. Are you hoping that the manipulation of one representation is more convenient to manipulate than the other in some way?

Re: ASCII to int

2011-10-10 Thread Shane Nall
Hi, If the size of the integer isn't an issue... maybe just concatenate the values together... only problem is if you use ascii to decimal A starts at 65 and z ends at 122... so you’d have to use padding up to 100 to keep all the values the same length... but if you use the Octal values A starts

Re: ASCII to int

2011-10-10 Thread Arjang Assadi
On 11 October 2011 08:09, Tom Gao wrote: > sorry there’s no real world scenario for this. I’m trying to replicate some > calculation purely for academic reasons. Not the Bible ( or any other holy book ) code? I say do not worry about integers, turn them into complex numbers and use their frequenc

RE: ASCII to int

2011-10-10 Thread Tom Gao
Yep true I realised that. it was my fault I wasn't specific enough with my question. I didn't realise it until I saw the algorithm. Still many thanks David it looked good J Can anyone think of a way to do this that will allow me to convert the int back to string. I don't have a problem with

Re: ASCII to int

2011-10-10 Thread djones147
I don't give solutions, just hints. ;-). Did you really thing that the alphabet adds up to 42? Davy. "When all you have is a hammer, every problem looks like a nail." I feel much the same way about xml -Original Message- From: noonie Sender: ozdotnet-boun...@ozdotnet.com Date: Tue,

Re: ASCII to int

2011-10-10 Thread noonie
Tom, Using David's method will turn a string to an int. But there are two problems. 1. If the string is very long then it will overflow int. 2. You can't turn it back to the same string you started with. -- noonie On 11 October 2011 08:09, Tom Gao wrote: > sorry there’s no real world scenari

Re: ASCII to int

2011-10-10 Thread djones147
Textencoding, ascii, byte[] And that's as much coding as I do in the pub! ;) Davy "When all you have is a hammer, every problem looks like a nail." I feel much the same way about xml -Original Message- From: "Tom Gao" Sender: ozdotnet-boun...@ozdotnet.com Date: Tue, 11 Oct 2011 08

RE: ASCII to int

2011-10-10 Thread Tom Gao
sorry there's no real world scenario for this. I'm trying to replicate some calculation purely for academic reasons. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Kean Sent: Tuesday, 11 October 2011 7:42 AM To: ozDotNet Subject: RE: ASCII to int

RE: ASCII to int

2011-10-10 Thread David Kean
Can I ask what's the scenario? From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Tom Gao Sent: Monday, October 10, 2011 1:36 PM To: 'ozDotNet' Subject: RE: ASCII to int Very nice. Thank you Any suggestion on how I can convert it back to string? From: ozdo

Re: ASCII to int

2011-10-10 Thread noonie
Tom, I think you're about to paint yourself into a corner. What's the real problem you are trying to solve that seems to require converting string to int? -- noonie On 11 October 2011 07:35, Tom Gao wrote: > Very nice. Thank you > > ** ** > > Any suggestion on how I can convert it back t

RE: ASCII to int

2011-10-10 Thread Tom Gao
Very nice. Thank you Any suggestion on how I can convert it back to string? From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Rhys Jones Sent: Tuesday, 11 October 2011 1:05 AM To: ozDotNet Subject: Re: ASCII to int int total = 0

Re: ASCII to int

2011-10-10 Thread David Rhys Jones
int total = 0; string str = "abcdefghijklmnopqrstuvwxyz"; foreach (char c in str.ToCharArray()) { total += (int)c; } Assert.AreEqual(42, total); Davy, "Always code as if the guy who ends up maintaining your

ASCII to int

2011-10-10 Thread Tom Gao
Hi All, Does anyone know how to convert a string of ASCII characters to int? Eg "abcd" to some form of int. I need to do a bunch of calculations on strings the only way is if they're in int not sure if anyone know of a good way to do this. Thanks, Tom

Re: New laptop

2011-10-10 Thread DotNet Dude
On Mon, Oct 10, 2011 at 5:19 PM, Michael Ridland wrote: > > Definitely these days it should be a no brainer. Any smart business person > knows the importance of investing in technology and talent. I wouldn't work > for a company that doesn't. This is exactly why hardware is one of the questions I

Re: New laptop

2011-10-10 Thread Wallace Turner
Be careful with SSD's. I bought one and have replaced it three times in < 2years.. The guy who deals with the repairs said he would not use them for business (talking about multi-cell SSD's here, not single cell's that cost alot more) - he said the average lifespan is 1.5yrs, brand agnostic. Be