Click here to Skip to main content
15,915,076 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: web service for sending email Pin
fjdiewornncalwe14-Oct-10 2:41
professionalfjdiewornncalwe14-Oct-10 2:41 
AnswerRe: web service for sending email Pin
Herman<T>.Instance14-Oct-10 2:53
Herman<T>.Instance14-Oct-10 2:53 
AnswerRe: web service for sending email Pin
Brij14-Oct-10 4:11
mentorBrij14-Oct-10 4:11 
AnswerRe: web service for sending email Pin
Vimalsoft(Pty) Ltd14-Oct-10 4:39
professionalVimalsoft(Pty) Ltd14-Oct-10 4:39 
GeneralRe: web service for sending email Pin
fjdiewornncalwe14-Oct-10 13:05
professionalfjdiewornncalwe14-Oct-10 13:05 
Questionhow to enable calendar control inside the gridview? Pin
srisairam14-Oct-10 1:33
srisairam14-Oct-10 1:33 
AnswerRe: how to enable calendar control inside the gridview? Pin
Herman<T>.Instance14-Oct-10 2:55
Herman<T>.Instance14-Oct-10 2:55 
QuestionAutoComplete Extender in VS 2008 Pin
Thanusree Duth13-Oct-10 18:52
Thanusree Duth13-Oct-10 18:52 
Hi,
AutoComplete Extender (using ajax autocompleteextender) is not working fine in VS2008 asp.net web application project.Database I used is MS Access 2007 Here is my code:


using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Data;
using System.Data.OleDb;

/// <summary>
/// Summary description for MyWebService
/// </summary>
[WebService(Namespace = "http://microsoft.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
//[System.Web.Script.Services.ScriptMethod]
[System.Web.Script.Services.ScriptService]
public class MyWebService : System.Web.Services.WebService {

public MyWebService () {

//Uncomment the following line if using designed components
//InitializeComponent();
}

[WebMethod]
[System.Web.Script.Services.ScriptMethod]

public string[] GetCountryInfo(string prefixText)
{
int count = 10;
string sql = "Select * from Country Where Country_Name like @prefixText";
OleDbDataAdapter da = new OleDbDataAdapter(sql, "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:/Documents and Settings/Leeds_Desk2/My Documents/trials.accdb");
da.SelectCommand.Parameters.Add("@prefixText", OleDbType.VarChar, 50).Value = prefixText + "%";
DataTable dt = new DataTable();
da.Fill(dt);
string[] items = new string[dt.Rows.Count];
int i = 0;
foreach (DataRow dr in dt.Rows)
{
items.SetValue(dr["Country_Name"].ToString(), i);
i++;
}
return items;
}

}
ASPX File
-------------

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"><Services><asp:ServiceReference Path="~/MyWebService.asmx" /></Services></asp:ScriptManager>
<cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="TextBox1" CompletionInterval="1000" CompletionSetCount="20" UseContextKey="false" MinimumPrefixLength="1" ServiceMethod="GetCountryInfo" DelimiterCharacters=";," ServicePath="MyWebService.asmx"
EnableCaching="true" FirstRowSelected="true" CompletionListCssClass="completionList" CompletionListHighlightedItemCssClass="itemHighlighted"
CompletionListItemCssClass="listItem" ShowOnlyCurrentWordInCompletionListItem="true"></cc1:AutoCompleteExtender>
</div>
</form>
</body>
</html>

Please help me
AnswerRe: AutoComplete Extender in VS 2008 Pin
Not Active14-Oct-10 0:10
mentorNot Active14-Oct-10 0:10 
AnswerRe: AutoComplete Extender in VS 2008 Pin
raju melveetilpurayil14-Oct-10 0:14
professionalraju melveetilpurayil14-Oct-10 0:14 
Questionone API for all social networks! Pin
Jassim Rahma13-Oct-10 5:17
Jassim Rahma13-Oct-10 5:17 
AnswerRe: one API for all social networks! Pin
fjdiewornncalwe13-Oct-10 8:55
professionalfjdiewornncalwe13-Oct-10 8:55 
Questionreturn more than one value from web service Pin
Jassim Rahma13-Oct-10 3:57
Jassim Rahma13-Oct-10 3:57 
AnswerRe: return more than one value from web service Pin
Luc Pattyn13-Oct-10 4:07
sitebuilderLuc Pattyn13-Oct-10 4:07 
GeneralRe: return more than one value from web service Pin
Jassim Rahma13-Oct-10 4:18
Jassim Rahma13-Oct-10 4:18 
GeneralRe: return more than one value from web service Pin
fjdiewornncalwe13-Oct-10 8:59
professionalfjdiewornncalwe13-Oct-10 8:59 
AnswerRe: return more than one value from web service Pin
Brij13-Oct-10 4:54
mentorBrij13-Oct-10 4:54 
Questionprotect web service?! Pin
Jassim Rahma13-Oct-10 3:32
Jassim Rahma13-Oct-10 3:32 
AnswerRe: protect web service?! Pin
Karthik. A13-Oct-10 5:09
Karthik. A13-Oct-10 5:09 
QuestionWORKFLOW IN ASP.NET Pin
Member 322226413-Oct-10 0:29
Member 322226413-Oct-10 0:29 
Questionhow to run outlook on client Pin
magichi12-Oct-10 20:14
magichi12-Oct-10 20:14 
AnswerRe: how to run outlook on client Pin
Brij12-Oct-10 20:56
mentorBrij12-Oct-10 20:56 
AnswerRe: how to run outlook on client Pin
Sneha Bisht12-Oct-10 22:53
Sneha Bisht12-Oct-10 22:53 
GeneralRe: how to run outlook on client Pin
magichi12-Oct-10 22:56
magichi12-Oct-10 22:56 
GeneralRe: how to run outlook on client Pin
Sneha Bisht12-Oct-10 23:03
Sneha Bisht12-Oct-10 23:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.