using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class AutoCompletionInterface : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// restituisce gli hint per l'autocompletion.
string retVal = "";
string str = Request.QueryString["str"];
string n = Request.QueryString["n"];
if (str != null && n != null)
{
str = str.Trim();
if (str.Length != 0)
{
// chiama la sp.
GetPrimi10UtentiDataTable res = GetPrimi10Utenti(str);
if (res.Rows.Count != 0)
{
//
// aggiunge le righe all'html.
//
retVal +=
"
" +
" " +
" " +
" ";
for (int i = 0; i < res.Rows.Count; i++)
{
retVal +=
" " +
" " +
" " + res[i].nome_cognome + " | " +
" ";
}
retVal +=
" " +
" | " +
"
" +
"
";
}
}
}
Response.Clear();
Response.ContentType = "text/html";
Response.Write(retVal);
Response.End();
}
}