Thanks all. This is basically what I thought. Cowboy glad to see your
active. I don't know if you recall but I enjoyed discussing the
differences between C# and VB.Net on a previous post that I started a
couple of years ago.
This is a side note, but are you seeing .Net Web Services returning
typed datasets out in the real world. I've done some research and it
seems that the tool sets out there on the java world are not fully
supporting typed datasets (using the xsd to convert the dataset to the
equivalent java class). I haven't done Java since 1997 and haven't
setup a Linux/java environment to consume a .Net web service returning
a dataset.
I am assuming that Microsoft wants typed datasets to be a standard.
However the java world is somewhat reluctant to fully support it. If
they do, and a large number websites are done in .Net returning typed
datasets, the will be forced to support Microsoft's tweaking of
datasets in the future. And because I want it easy for .Net and java
developers to consume my web services, I am returning, simple class
(structures) arrays.
Wondering what your thoughts are?
Cowboy (Gregory A. Beamer) wrote:
One is globally attached to the Application object as an object and the
other is typed properly. That is about it.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************************************************
Think outside the box!
*************************************************
<rw*****@yahoo.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Does anyone know the difference between defining a static variable
inside Global vs using an Application variable?
For example
Using a static int variable.
public class Global : System.Web.HttpApplication
{
public static int MaxValue
protected void Application_Start(Object sender, EventArgs e)
{
MaxValue = 100;
}
}
referring to this in your other classes using Global.MaxValue
vs
public class Global : System.Web.HttpApplication
{
public static int MaxValue
protected void Application_Start(Object sender, EventArgs e)
{
Application["MaxValue"] = 100;
}
}
referring to this in your other classes using
(int)Application["MaxValue"]
Thanks in advance