Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

[Question] Silverlight and vb.net Question!!

  • 07-01-2010 2:41pm
    #1
    Registered Users, Registered Users 2 Posts: 1,712 ✭✭✭


    Hi Lads and Ladies,

    Im having an issue with my first sliverlight web project. Basically i have written a simple webservice that allows access to a database.

    But when I try do a simple declaration in the silverlight/vb.net application:

    Dim dt as DataRow

    It gives an error saying 'type 'DataRow' is not defined'


    Now, I already have System.Data imported so I really am baffled with this one

    Anyone any idea here?

    Thanks in advance,
    Neil

    EDIT: Ive also included <add namespace="System.Data"/> into the web.config :(


Comments

  • Registered Users, Registered Users 2 Posts: 7,990 ✭✭✭Trampas


    might be something else in the code causing the issue


  • Registered Users, Registered Users 2 Posts: 1,712 ✭✭✭neil_hosey


    ah ive realised ive been doing this arse ways...

    Instead of creating your own web service and referencing it, you should use the new RIA WCF service with LINQSQL to connect to DB in the same project.

    In the end it is so handy though.. code for the webservice is autogenerated for you. You can bind the WCF service to tables or views, which is v handy... thats all ive gotten so far.


Advertisement