Re: Getting Data From Application Object and C#
From: Bruno Sirianni (brunosirianni_at_virgilio.it)
Date: 04/07/04
- Next message: Roy: "RE: Versioning information in ASP.Net"
- Previous message: Viktor Jevdokimov: "Re: Application and user count..."
- In reply to: Matthew Sajdera: "Getting Data From Application Object and C#"
- Next in thread: Matthew Sajdera: "Re: Getting Data From Application Object and C#"
- Reply: Matthew Sajdera: "Re: Getting Data From Application Object and C#"
- Messages sorted by: [ date ] [ thread ]
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
>
>
>
>
- Next message: Roy: "RE: Versioning information in ASP.Net"
- Previous message: Viktor Jevdokimov: "Re: Application and user count..."
- In reply to: Matthew Sajdera: "Getting Data From Application Object and C#"
- Next in thread: Matthew Sajdera: "Re: Getting Data From Application Object and C#"
- Reply: Matthew Sajdera: "Re: Getting Data From Application Object and C#"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|