Hi,
Could some one help me with a conversion error I'm receiving. I'm trying to get the weather using webserviceX.net and I get the following error when I try to compile. By the way this is a ASP.NET 2.0 app.
Cannot implicitly convert type 'net.webservice x.www.WeatherData[]' to 'net.webservice x.www.WeatherDa ta'
Here is the code I'm using.
[code=c]
net.webservicex .www.WeatherFor ecast forcast = new net.webservicex .www.WeatherFor ecast();
net.webservicex .www.WeatherFor ecasts forcasts = new net.webservicex .www.WeatherFor ecasts();
net.webservicex .www.WeatherDat a data = new net.webservicex .www.WeatherDat a();
forcasts = forcast.GetWeat herByZipCode("0 7747");
data = forcasts.Detail s;
TextBox1.Text = data.ToString() ;
[/code]
I would greatly appreciate it if someone could please help me resolve this.
Thank you.
Could some one help me with a conversion error I'm receiving. I'm trying to get the weather using webserviceX.net and I get the following error when I try to compile. By the way this is a ASP.NET 2.0 app.
Cannot implicitly convert type 'net.webservice x.www.WeatherData[]' to 'net.webservice x.www.WeatherDa ta'
Here is the code I'm using.
[code=c]
net.webservicex .www.WeatherFor ecast forcast = new net.webservicex .www.WeatherFor ecast();
net.webservicex .www.WeatherFor ecasts forcasts = new net.webservicex .www.WeatherFor ecasts();
net.webservicex .www.WeatherDat a data = new net.webservicex .www.WeatherDat a();
forcasts = forcast.GetWeat herByZipCode("0 7747");
data = forcasts.Detail s;
TextBox1.Text = data.ToString() ;
[/code]
I would greatly appreciate it if someone could please help me resolve this.
Thank you.
Comment