Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Define database Ajax

$
0
0

hey guys i'm new with ajax can u help me by telling me how i define the databases in this code

<System.Web.Services.WebMethod()> _
Public Shared Function GetNames(ByVal prefixText As String, ByVal count As Integer) As String()
Dim db As New NamesDataContext()
Return db.tblNames.Where(Function(n) n.name.StartsWith(prefixText)).OrderBy(Function(n) n.name).Select(Function(n) n.name).Take(count).ToArray()

Thanks in advance! 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>