Re: Is DataSet belong another namespace
- From: "Peter Rilling" <peter@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 17 Sep 2005 18:24:38 -0700
You must have written some class called "DataSet" that is taking precedence.
Look at your own code and see what it contains. Maybe you could find it by
doing something like right-clicking on the DataSet name that is the return
type for GetSchools and select "Go To Definition".
"ad" <flying@xxxxxxxxxxxxxxx> wrote in message
news:%235NP1L%23uFHA.3556@xxxxxxxxxxxxxxxxxxxxxxx
>I use a Webservice, which retun a DataSet.
> I use the code:
> DataSet ds = (DataSet)wsHealth.GetSchools(Text1.Text);
>
> But it result in an error in run time, the error message is
> Unable to cast object of type 'System.Data.DataSet' to type 'DataSet'.
> The namespaces I used are
> using System;
> using System.Data;
> using System.Configuration;
> using System.Web;
> using System.Web.Security;
> using System.Web.UI;
> using System.Web.UI.WebControls;
> using System.Web.UI.WebControls.WebParts;
> using System.Web.UI.HtmlControls;
>
> Is there an namespace rather than System.Data which also contail DataSet?
>
.
- Follow-Ups:
- Prev by Date: Re: Are gotos truly evil?
- Next by Date: Re: Are gotos truly evil?
- Previous by thread: Re: resizing form in constructor
- Next by thread: Re: Is DataSet belong another namespace
- Index(es):
Relevant Pages
|