Ext.net에서 select2 js로 전환하려고합니다.
스크립트와 컨트롤을 결합하는 방법에 대한 단서가 없습니다.
여기 제가 지금까지 시도한 바가 있습니다.select2 js와 WebForms를 결합하는 방법
나는, 앱 새로운 웹폼을 응시 NuGet을 통해 선택 2를 설치하고 여기에 Project site
에서 샘플을 재현하려고 얼마나 보이는 내 영문 같은
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="select2_test.Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test Select 2</title>
<script src="Scripts/jquery-1.7.2.js"></script>
<script src="Scripts/select2.js"></script>
<link href="Content/css/select2.css" rel="stylesheet" />
<script type="text/javascript">
$("#e12").select2({ tags: ["red", "green", "blue"] });
</script>
<script type="text/javascript">
$(document).ready(function() { $("#e1").select2(); });
</script>
</head>
<body>
<form id="form1" runat="server" >
<div>
<!--
<input id="e12" />
DO NOT WORK-->
<!--
<select id="e12">
<option></option>
</select>
DO NOT WORK-->
<!--<section id="e12"></section>-->
<!--
<asp:TextBox ID="e13" ClientIDMode="Static" runat="server"></asp:TextBox>
DO NOT WORK-->
<!-- This one only work as sample from web, others do not works-->
<select id="e1">
<option value="0">Test 0</option>
<option value="1">Test 1</option>
<option value="3">Test 3</option>
</select>
</div>
</form>
</body>
</html>
내가 적용 할 때 사용하는 컨트롤의 어떤 종류의
JS int? select2 js를 사용하는 WebForms 샘플이 있습니까?