HOW TO Use the NumericUpDown Control Great help taken from http://www.asp.net/ajaxlibrary/HOW%20TO%20Use%20the%20NumericUpDown%20Control.ashx NumericUpDown Demonstration NumericUpDown Description NumericUpDown is an ASP.NET AJAX extender that can be attached to an ASP.NET TextBox control to add "up" and "down" buttons that increment and decrement the value in the TextBox. The increment and decrement can be simple +1/-1 arithmetic, they can cycle through a provided list of values (like the months of the year), or they can call a Web Service to determine the next value. Page authors can also provide custom images to be used instead of the default up/down button graphics. Video - How Do I: Use the ASP.NET AJAX NumericUpDown Control? NumericUpDown Client Code Sample view plain copy to clipboard print ? < script runat = "server" > [System.Web.Services.W...
Using JQuery Add this code in head section <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $.get("http://ipinfo.io/66.87.90.80", function (response) { document.getElementById("<%=Label1.ClientID %>").innerHTML = ""; document.getElementById("<%=Label1.ClientID %>").innerHTML = "IP is : " + response.ip + "<br> Host Name is : " + response.hostname + "<br> Host Name is : " + response.hostname + "<br> City Name is : " + response.city + "<br> Region Name is : " + response.region + "<br> Country Name is : " + response.country ...
Comments
Post a Comment