Click here to Skip to main content
15,890,186 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Sending mail in ASP.NET Pin
Christian Graus10-Aug-08 23:48
protectorChristian Graus10-Aug-08 23:48 
GeneralRe: Sending mail in ASP.NET Pin
Waleed Eissa11-Aug-08 1:25
Waleed Eissa11-Aug-08 1:25 
GeneralRe: Sending mail in ASP.NET Pin
Christian Graus11-Aug-08 1:52
protectorChristian Graus11-Aug-08 1:52 
Questionautocomplete extender Pin
eyeseetee10-Aug-08 23:11
eyeseetee10-Aug-08 23:11 
AnswerRe: autocomplete extender Pin
Blue_Boy10-Aug-08 23:22
Blue_Boy10-Aug-08 23:22 
GeneralRe: autocomplete extender Pin
eyeseetee10-Aug-08 23:29
eyeseetee10-Aug-08 23:29 
GeneralRe: autocomplete extender Pin
Blue_Boy10-Aug-08 23:33
Blue_Boy10-Aug-08 23:33 
GeneralRe: autocomplete extender Pin
eyeseetee10-Aug-08 23:47
eyeseetee10-Aug-08 23:47 
OK, well there must be a problem with the web service then
The code is displayed below.When I type text in the box nothing appears
thanks

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class autocomplete : System.Web.Services.WebService {
[WebMethod(EnableSession = true)]
public string[] GetactdescInfo(string prefixText)
{

int count = 10;
string project = HttpContext.Current.Session["project"].ToString();
SqlConnection connectionString = new SqlConnection(ConfigurationManager.ConnectionStrings[project].ConnectionString);
connectionString.Open();
string sql = " SELECT description" +
" FROM act" +
" WHERE description like '" + prefixText + "' ";

//string description_condition = " AND description LIKE '%" + prefixText + "%'";
//sql += description_condition;

SqlDataAdapter dataAdapter1 = new SqlDataAdapter(sql, connectionString);
dataAdapter1.SelectCommand.Parameters.Add("@prefixText", SqlDbType.NVarChar, 2000).Value = prefixText + "%";
DataTable datatable1 = new DataTable();
dataAdapter1.Fill(datatable1);

string[] items = new string[datatable1.Rows.Count];
int i = 0;
foreach (DataRow datarow in datatable1.Rows)
{
items.SetValue(datarow["description"].ToString(), i);
i++;
}
return items;
}

}
GeneralRe: autocomplete extender [modified] Pin
Blue_Boy10-Aug-08 23:51
Blue_Boy10-Aug-08 23:51 
GeneralRe: autocomplete extender Pin
eyeseetee11-Aug-08 0:53
eyeseetee11-Aug-08 0:53 
GeneralRe: autocomplete extender Pin
eyeseetee11-Aug-08 0:54
eyeseetee11-Aug-08 0:54 
Questiondatalist problem Pin
umeshdaiya10-Aug-08 22:36
umeshdaiya10-Aug-08 22:36 
AnswerRe: datalist problem Pin
nyeboy11-Aug-08 0:11
nyeboy11-Aug-08 0:11 
GeneralRe: datalist problem Pin
umeshdaiya11-Aug-08 1:12
umeshdaiya11-Aug-08 1:12 
Questiontitle bar+form name Pin
niki_nilu10-Aug-08 22:20
niki_nilu10-Aug-08 22:20 
AnswerRe: title bar+form name Pin
umeshdaiya10-Aug-08 22:52
umeshdaiya10-Aug-08 22:52 
AnswerRe: title bar+form name Pin
Blue_Boy11-Aug-08 0:06
Blue_Boy11-Aug-08 0:06 
QuestionWhich is a best way to create Bloggings in the site. Pin
coolsatty10-Aug-08 21:47
coolsatty10-Aug-08 21:47 
AnswerRe: Which is a best way to create Bloggings in the site. Pin
Christian Graus10-Aug-08 22:06
protectorChristian Graus10-Aug-08 22:06 
AnswerRe: Which is a best way to create Bloggings in the site. Pin
nyeboy11-Aug-08 0:09
nyeboy11-Aug-08 0:09 
Questionquality of the image Pin
pavni200410-Aug-08 21:26
pavni200410-Aug-08 21:26 
AnswerRe: quality of the image Pin
K V Sekhar10-Aug-08 21:37
K V Sekhar10-Aug-08 21:37 
AnswerRe: quality of the image Pin
eyeseetee10-Aug-08 21:46
eyeseetee10-Aug-08 21:46 
AnswerRe: quality of the image Pin
Christian Graus10-Aug-08 22:03
protectorChristian Graus10-Aug-08 22:03 
GeneralRe: quality of the image Pin
pavni200410-Aug-08 22:35
pavni200410-Aug-08 22:35 

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.