Google Groups Home
Help | Sign in
Message from discussion Examples of Ajax using with Database
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Patis Anoo  
View profile
 More options Oct 9 2008, 8:24 am
From: "Patis Anoo" <patis.p...@gmail.com>
Date: Thu, 9 Oct 2008 17:54:25 +0530
Local: Thurs, Oct 9 2008 8:24 am
Subject: Re: [ajaxpro] Examples of Ajax using with Database

Check these links Mukesh
http://www.codeproject.com/KB/aspnet/Ajax_in_VBNet___ASPNet.aspx
*

*

   1. * Imports System*
   2. * Imports System.IO*
   3. * Imports System.Web*
   4. * Imports System.Web.Services*
   5. * Imports System.Web.Services.Protocols*
   6. * Imports System.Collections*
   7. * Imports System.Collections.Generic*
   8. * Imports System.Threading*
   9. * Imports System.Xml.Serialization*
   10. * Imports System.Data.Common*
   11. * Imports System.Data              ' VB.NET*
   12. * Imports Oracle.DataAccess.Client*
   13. * *
   14. * <WebService(Namespace:="http://tempuri.org/")> _*
   15. * <WebServiceBinding(ConformsTo:=WsiProfiles.BasicPro  file1_1)> _*
   16. *<Global.Microsoft.VisualBasic.CompilerServices.Desi  gnerGenerated()> _
   *
   17. * <System.Web.Script.Services.ScriptService()> _*
   18. * Public Class AutoCompleteDAL*
   19. *     Inherits System.Web.Services.WebService*
   20. *     Public Shared autoCompleteWordList As String()*
   21. * *
   22. * *
   23. *     <WebMethod()> _*
   24. *    Public Function GetCompletionList(ByVal prefixText As
String, ByVal count As Integer) As String()
   *
   25. * *
   26. *        Dim Sql As String = "SELECT NAME from NAMELIST WHERE
NAME  LIKE '" & prefixText & "' || '%' ORDER BY NAME ;"
   *
   27. *         Dim Conn As New _*
   28. *
OracleClient.OracleConnection(ConfigurationManager
.ConnectionStrings( _
   *
   29. *               "OrdConnectionString").ConnectionString)*
   30. *        ' Dim Conn As OracleConnection = New
OracleConnection("Data Source=dbHazard;User
ID=HazUser;Password=password")
   *
   31. *         '  Dim cmd As New OracleCommand(Sql, Conn)*
   32. *         Dim cmd As New OracleClient.OracleCommand(Sql, Conn)*
   33. *         Dim items As New List(Of String)*
   34. *        Dim dr As OracleClient.OracleDataReader = cmd.ExecuteReader() '
   VB.NET*
   35. *         While dr.Read() ' VB.NET*
   36. *             items.Add(dr.Item("NAME"))*
   37. *         End While*
   38. * *
   39. *         'items.Add(dr.Item("NAME"))*
   40. *         Return items.ToArray*
   41. * *
   42. * *
   43. * *
   44. *     End Function*
   45. * *
   46. * *
   47. * End Class*


--
@NiL KuMaR

VivaCity Infotech


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google