No Image

ASP.NET & Ajax in Javascript

October 23, 2017 hung-nb 0

GET (https://www.w3schools.com/xml/ajax_intro.asp) [js] var xhttp = new XMLHttpRequest(); xhttp.open(“GET”, “ajax_info.txt”, true); xhttp.send(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { […]

No Image

Javascript: Detect browser type

October 23, 2017 hung-nb 0

[js] function get_browser_info(){ var ua=navigator.userAgent,tem,M=ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; if(/trident/i.test(M[1])){ tem=/\brv[ :]+(\d+)/g.exec(ua) || []; return {name:’IE ‘,version:(tem[1]||”)}; } if(M[1]===’Chrome’){ tem=ua.match(/\bOPR\/(\d+)/) if(tem!=null) {return {name:’Opera’, version:tem[1]};} } M=M[2]? [M[1], […]

No Image

Date time: All about

October 23, 2017 hung-nb 0

Calendar ASP.NET – Telerik [js] [/js] [js] // Get selected date var StartDatePicker = $find(“<%=txtStartDate.ClientID %>”); var StartDate = StartDatePicker.get_dateInput().get_selectedDate(); [/js] [js] // Fix selected […]

No Image

Windows Service: All about

October 23, 2017 hung-nb 0

Install/ Uninstall service Open “Developer Command Prompt for VS2012” [js] //Install installutil “C:\IFTUploadApp\App\IFTLabUpload.exe” //Uninstall installutil /u “C:\IFTUploadApp\App\IFTLabUpload.exe” [/js] Debug Windows Service from Visual Studio 1. […]