Script wurde entwickelt
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
<asp:ScriptManager ID="script1" runat="server"></asp:ScriptManager>
|
||||
<asp:UpdatePanel ID="panelupdate1" runat="server"><ContentTemplate>
|
||||
<!-- Webiste-Content-->
|
||||
|
||||
|
||||
|
||||
<div id="containerseiterand" style="margin-left:auto;margin-right:auto">
|
||||
@@ -211,6 +212,35 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate></asp:UpdatePanel>
|
||||
</ContentTemplate></asp:UpdatePanel>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
BindControls();
|
||||
});
|
||||
|
||||
function BindControls() {
|
||||
$("#txt_LKW").autocomplete({
|
||||
source: function(request, response) {
|
||||
$.ajax({
|
||||
url: "WebService.asmx/Show",
|
||||
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataFilter: function(data) { return data; },
|
||||
success: function(data) {
|
||||
response($.map(data.d, function(item) {
|
||||
return { value: item }
|
||||
}))
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert(textStatus);
|
||||
}
|
||||
});
|
||||
},
|
||||
minLength: 1 // MINIMUM 1 CHARACTER TO START WITH.
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user