引导标签输入在ASP:TextBox中不起作用

时间:2018-08-10 13:03:00

标签: html asp.net twitter-bootstrap

我用asp:文本框创建了一个asp.net页面。我想使用在文本框中输入的引导标签。但是很遗憾,标签输入无法正常工作。这是完整的代码

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="Forms.WebForm2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
        <link rel="stylesheet" href="~/Scripts/bootstrap_tagsinput/bootstrap-tagsinput.css"/>
    <script src="~/Scripts/bootstrap_tagsinput/bootstrap-tagsinput.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css"/>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" data-role="tagsinput" runat="server"></asp:TextBox>
    </div>
    </form>
</body>
</html>

请为我建议一些解决方案。

0 个答案:

没有答案