Re: Getting Data From Application Object and C#

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Bruno Sirianni (brunosirianni_at_virgilio.it)
Date: 04/07/04


Date: Wed, 07 Apr 2004 16:52:51 GMT

you can try :

string [,] strViewArray;
strViewArray = Application["...."] as string[,];

Brun

"Matthew Sajdera" <MSajdera@Cox.net> wrote in message
news:usSQXiLHEHA.4088@TK2MSFTNGP10.phx.gbl...
> All -
>
> This probably qualifies for the "Stupid Question of the Day" award but I
am
> stuck on this.
>
> I have an IIS Application object in which I am storing a multi-dimensional
> array. Later on in the application I am trying to retrieve this array and
> set it to a local array, but I cannot get the right syntax (and I may be
> doing it wrong completely).
>
> I'm dimming a local variable as:
> string [,] strViewArray;
>
> I am then trying to set this Array equal to
Application["navigationViews"],
> the array defined in the Application object. I keep getting a build error
> that says I cannot implicitly set the string array to an object. I
> understand this error but I cannot figure out how to get the object
cleanly
> out of the Application object and into the Array variable.
>
> Any help is greatly appreciated.
>
> Thanks,
>
> - Matt
>
>
>
>



Relevant Pages

  • Help in French|Spanish|German translation.
    ... I am also an author of User-defined string functions. ... WORDTRANEX (cSearched, cArExpressionSought | cExpressionSough, ... each string of the array is searched ... If the parameter nArStartOccurrence is -1 or omitted, the replacement starts ...
    (microsoft.public.fox.helpwanted)
  • Re: passing a string to a dll
    ... Joe, I really appreciate you taking the time to demonstrate this. ... sure how I would implement indexing it for random alphanumeric codes. ... I might handle the array. ... I actually have been wondering if I could use a second string ...
    (microsoft.public.vc.mfc)
  • Re: passing a string to a dll
    ... I might handle the array. ... I actually have been wondering if I could use a second string ... look at insertion cost, organization cost, and search cost. ...
    (microsoft.public.vc.mfc)
  • RE: Structure conversion from C++ to VB-2008?
    ... One of the most important structures is AmiVar structure. ... point number, the array of floating point numbers, a string or IDispatch ... Dim 13012679 as Integer ...
    (microsoft.public.dotnet.languages.vb)
  • Structure conversion from C++ to VB-2008?
    ... One of the most important structures is AmiVar structure. ... point number, the array of floating point numbers, a string or IDispatch ... Dim 13012679 as Integer ...
    (microsoft.public.dotnet.languages.vb)