ScriptManager.RegisterStartupScript(UpdatePanel1, typeof(UpdatePanel), "key", "javascript:window.open('TicktesComp.aspx')", true);
//AutoCompleteExtender
<cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txtUser"
CompletionSetCount="12" EnableCaching="true" MinimumPrefixLength="1" ServicePath="WebService.asmx"
ServiceMethod="GetCompleteList">
</cc1:AutoCompleteExtender>
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Collections.Generic;
using Shell;
/// <summary>
/// Summary description for WebService
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class WebService : System.Web.Services.WebService
{
public WebService()
{
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string[] GetCompleteList(string prefixText, int count)
{
if (count == 0)
count = 100;
//char c1, c2, c3;
//if (count == 0)
// count = 10;
//List<String> list = new List<string>(count);
//Random rnd = new Random();
//for (int i = 1; i <= count; i++)
//{
// c1 = (char)rnd.Next(65, 90);
// c2 = (char)rnd.Next(97, 122);
// c3 = (char)rnd.Next(97, 122);
// list.Add(prefixText + c1 + c2 + c3);
//}
//return list.ToArray();
Shell.CSShell shell = new CSShell();
loginInfoAccess accessInfo = new loginInfoAccess(shell);
return accessInfo.getStringResult(prefixText, count);
}
}