RE: 2.0 dataset issues - again
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Wed, 04 Jan 2006 08:20:50 GMT
Hi Gary,
Regarding on the two questions in this thread, I've posted some suggestion
(on using the ObjectDataSource to reference TableAdatper in asp.net 2.0
page at design-time ) in your other two threads. You can have a look there.
As for the first question on XML error, are you editing the TypedDataSet's
generated xsd file in Xml editor? Generally those autogenerated content do
not need to be directly edited through xml editor and the xml errors you
met is due to the XSD validation of the XML Editor... XmlEditor will
validate the xml document it load if the document refer to some xml schema
(xsd). And the TableAdapter/dataset's xsd file will refer to some buildin
schemas and VS IDE's install directory will contains a copy of these schema
files for such validation. However, some attributes are not included in
those VS IDE's xsd file copies(since some one are added later and hasn't
been synchronized into the VS IDE's schema copy), then xml editor will
report error that can not find the certain attribute declaration in xsd
file.... You can directly modify the schema files in VS 2005's program
folder so as to meet the validation requirement (most of them are under the
C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas dir), but we don't
recommend this... Also, this xsd validation error is just specific to xml
editor , it won't affect the runtime compilation or code generating for the
TAbleAdatper/DataSet, you can correct use them regardless of these xml
validation errors...
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "GaryDean" <GaryDean@xxxxxxxxxxxxxxxxx>
| Subject: 2.0 dataset issues - again
| Date: Tue, 3 Jan 2006 17:48:54 -0800
| Lines: 28
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <O$WQDENEGHA.1124@xxxxxxxxxxxxxxxxxxxx>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 216.244.8.41
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:368422
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| In an 2.0 asp app I used vs.net 2005 to create a TableAdapter:Dataset in
my
| App_code directory. I also created a new vb class in that same
directory.
| I have two issues:
|
| 1.
| I notice that there are errors in the xml code for the dataset...
| <TableAdapter BaseClass="system.ComponentModel.Component"
| DataAccessorModifier...
| the DataAccessorModifier is underlined as an error - if I hover over it,
it
| says that attribute is not declared. GenerateShortcommands,
| ParameterPrefix - same thing - attirubte not declared.
|
| Also parameter AllowDBNull is underlined - also saying that the attribute
is
| not declared.
| Why do these errors exist?
|
| 2.
| Assuming I can get this .xsd generated correctly, how can I get reference
to
| the tableAdapter and it's fill method in my class so I can use it. I
have
| tried everything I can think of to reference it but nothing seems to
work.
| Unlike a 2003 dataset it doesn't seem to be in a namespace so I can't say
| myTA = new myproject.tableadapter.
|
| --
| Regards,
| Gary Blakely
|
|
|
.
- References:
- 2.0 dataset issues - again
- From: GaryDean
- 2.0 dataset issues - again
- Prev by Date: Re: Server cannot access application directory D:\xxx. The directory does not exist or is not accessible because of security settings.
- Next by Date: Can I find out when the user is navigating to another page?
- Previous by thread: 2.0 dataset issues - again
- Next by thread: Re: 2.0 dataset issues - again
- Index(es):
Relevant Pages
|