Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  'Data' is ambiguous, imported from the namespaces or types 'system, DotNetNuke'.
Previous Previous
 
Next Next
New Post 7/29/2008 10:23 PM
User is offline ray
27 posts
10th Ranked


'Data' is ambiguous, imported from the namespaces or types 'system, DotNetNuke'. 

'Data' is ambiguous, imported from the namespaces or types 'system, DotNetNuke'.

The error message shows when I'm building a simple search DNN Module. The error is on every 'Data'.  Any other options that I can use instead of 'Data'? Part of my code is like this,

 

Private Function search(ByVal SearchArgs As SearchInput) As Data.DataSet

 

 

Dim cmd As New Data.SqlClient.SqlCommand

 

 

Dim ConnectionString As String = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True"

 

Dim con As New Data.SqlClient.SqlConnection(ConnectionString.ToString)

Dim ds As New Data.DataSet

 
New Post 7/30/2008 7:29 AM
User is offline John
232 posts
ewds.strath.ac.uk
9th Ranked


Re: 'Data' is ambiguous, imported from the namespaces or types 'system, DotNetNuke'. 

Define which you wish to use... i.e if you want to use the standard asp.net namespace/type data then you need to change each reference to be System.Data

hope that helps

John


John Nicholson
 
New Post 7/30/2008 2:12 PM
User is offline ray
27 posts
10th Ranked


Re: 'Data' is ambiguous, imported from the namespaces or types 'system, DotNetNuke'. 

That definately helped. Yes, system.data. Thank you John.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  'Data' is ambiguous, imported from the namespaces or types 'system, DotNetNuke'.
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com
Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP