Home > Web Front-end > JS Tutorial > Try JQuery's AutoComplete plug-in_jquery

Try JQuery's AutoComplete plug-in_jquery

WBOY
Release: 2016-05-16 18:07:11
Original
1348 people have browsed it

前台代码如下:

复制代码 代码如下:

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



JQuery的自动完成功能















然后就是后台代码,当然了,这里只是模拟数据:
复制代码 代码如下:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
public partial class _Default : System.Web.UI.Page,ICallbackEventHandler
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
private StringBuilder GenStr()
{
StringBuilder sbStr = new StringBuilder();
sbStr.Append("var data = ");
sbStr.Append("[");
sbStr.Append(""Aback",");
sbStr.Append(""back",");
sbStr.Append(""cback",");
sbStr.Append(""english",");
sbStr.Append(""confidence",");
sbStr.Append(""diligent",");
sbStr.Append(""honor",");
sbStr.Append(""delicious"");
sbStr.Append("];");
return sbStr;
}
public string GetCallbackResult()
{
return GenStr().ToString();
}
public void RaiseCallbackEvent(string eventArgument)
{
}
}
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template