You are at the archive for the C# category


How do you Interact with your ViewState?

May 21st

There comes a time in every ASP.NET developer’s life when the need arises for information to be persisted into ViewState. For the sake of this post I’m not really interested in the reasons why. What I am interested in is how.
How do you interact with your ViewState?

.NET System::String to ANSI char*

March 2nd

Hi All,
I’ve been doing a bit of work of late dealing with interops between managed and unmanaged code, and I have nailed a little snippet which shows how convert between a managed .NET String object and a stanard ANSI/C-style string. Check out the following code if you need to do the same:
[source:cpp]System::String managedString = WHATEVER;
System::IntPtr [...]

Size

Colors