|
 |
aspx_beginners thread: linking xml file to dataSet
Message #1 by Cindy.Somerville@h... on Tue, 17 Sep 2002 18:49:46
|
|
Hi
I?m having trouble connecting to my XML file. It is created and sitting in
the same folder as the web form that needs to access it.
In my web form I have used this line of code to connect the xml file to a
dataset:
myDataSet.ReadXml(fileName.xml);
And I get this error:
The type or namespace name ?filename? could not be found (you are missing
or using directive or an assembly reference?)
Am I supposed to reference the xml file someplace?
Cindy
Message #2 by Colin.Montgomery@C... on Tue, 17 Sep 2002 18:41:50 +0100
|
|
have you tried placing quotes around the filename, as it is just a string
after all, not a variable?
HTH,
Col
-----Original Message-----
From: Cindy.Somerville@h...
[mailto:Cindy.Somerville@h...]
Sent: 17 September 2002 19:50
To: aspx_beginners
Subject: [aspx_beginners] linking xml file to dataSet
Hi
I'm having trouble connecting to my XML file. It is created and sitting in
the same folder as the web form that needs to access it.
In my web form I have used this line of code to connect the xml file to a
dataset:
myDataSet.ReadXml(fileName.xml);
And I get this error:
The type or namespace name "filename" could not be found (you are missing
or using directive or an assembly reference?)
Am I supposed to reference the xml file someplace?
Cindy
---
Beginning ASP.NET Databases using VB.NET
http://www.wrox.com/ACON11.asp?ISBN=1861006195
Beginning ASP.NET Databases using C#
http://www.wrox.com/ACON11.asp?ISBN=1861007418
These books look at how we can create data-centric ASP.NET
applications. Requiring some basic knowledge of ASP.NET,
Access and SQL the authors guide you through the process
of connecting and consuming information in a variety of
ways. They are packed full of excellent illustrative code
examples, demonstrating important fundamental principles.
*******
This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the
intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are
not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.
For further information about Clifford Chance please see our website at http://www.cliffordchance.com or refer to any Clifford
Chance office.
Message #3 by <cindy.somerville@h...> on Tue, 17 Sep 2002 13:54:27 -0400
|
|
Thank you Colin : )
I wish I had posted this question earlier it would have saved me a lot of
grief....but, embarrassing at the same time. Thanks again
Cindy
---------- Original Text ----------
From: <Colin.Montgomery@C...>, on 2002-09-17 1:41 PM:
have you tried placing quotes around the filename, as it is just a string
after all, not a variable?
HTH,
Col
-----Original Message-----
From: Cindy.Somerville@h...
[mailto:Cindy.Somerville@h...]
Sent: 17 September 2002 19:50
To: aspx_beginners
Subject: [aspx_beginners] linking xml file to dataSet
Hi
I'm having trouble connecting to my XML file. It is created and sitting in
the same folder as the web form that needs to access it.
In my web form I have used this line of code to connect the xml file to a
dataset:
myDataSet.ReadXml(fileName.xml);
And I get this error:
The type or namespace name "filename" could not be found (you are missing
or using directive or an assembly reference?)
Am I supposed to reference the xml file someplace?
Cindy
---
Beginning ASP.NET Databases using VB.NET
http://www.wrox.com/ACON11.asp?ISBN=1861006195
Beginning ASP.NET Databases using C#
http://www.wrox.com/ACON11.asp?ISBN=1861007418
These books look at how we can create data-centric ASP.NET
applications. Requiring some basic knowledge of ASP.NET,
Access and SQL the authors guide you through the process
of connecting and consuming information in a variety of
ways. They are packed full of excellent illustrative code
examples, demonstrating important fundamental principles.
*******
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended recipient,
please telephone or email the sender and delete this message and any
attachment from your system. If you are not the intended recipient you must
not copy this message or attachment or disclose the contents to any other
person.
For further information about Clifford Chance please see our website at
http://www.cliffordchance.com or refer to any Clifford Chance office.
---
Beginning ASP.NET Databases using VB.NET
http://www.wrox.com/ACON11.asp?ISBN=1861006195
Beginning ASP.NET Databases using C#
http://www.wrox.com/ACON11.asp?ISBN=1861007418
These books look at how we can create data-centric ASP.NET
applications. Requiring some basic knowledge of ASP.NET,
Access and SQL the authors guide you through the process
of connecting and consuming information in a variety of
ways. They are packed full of excellent illustrative code
examples, demonstrating important fundamental principles.
|
|
 |