Yes; just follow this

Sujit Patil replied to Johann Montfort at 09-May-08 04:42

Yes thats correct. Just follow these steps;

I. Create a webservice in asp.net 2.0 .

II. Add all of your DAL function in that webservice like;

     Function insertIntoTable()

   {

   }

III. Add connection string in web.config of this webservice and use it to access database.

IV. Then add a web reference of this web service to your project.

V. And use methods from that web serive in your project like;

    Dim serviceObj As New MyWebService // MyWebService is the service name which you have added as a web reference......

      serviceObj.insertIntoTable( params....)

Best Luck!!!!!!!!!!!!!

Sujit.



Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Get connection string from Web.Config in n-tier application - Johann Montfort  08-May-08 12:33 12:33:59 PM
      hmm...Is this possible - santhosh kapa  08-May-08 01:00 1:00:58 PM
      Get Connection String - Kevin Davis  08-May-08 01:04 1:04:26 PM
      try this... - Vasanthakumar D  09-May-08 12:04 12:04:05 AM
      Use Webservice - Sujit Patil  09-May-08 12:11 12:11:24 AM
          all data retreiving will be in the DAL - Johann Montfort  09-May-08 03:55 3:55:46 AM
              Yes; just follow this - Sujit Patil  09-May-08 04:42 4:42:03 AM
              better approach - santhosh kapa  09-May-08 04:47 4:47:50 AM
                  new layer - Johann Montfort  09-May-08 05:23 5:23:03 AM
                      hmm..take these into consideration - santhosh kapa  09-May-08 06:19 6:19:19 AM
View Posts

promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   


"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class