No Image

Web App: Caching

October 26, 2017 hung-nb 0

Concept How many caching form does ASP.NET have? Page level output caching The simplest form of caching, output caching simply keeps a copy of the […]

No Image

Web App: Access Limitation

October 26, 2017 hung-nb 0

Concept DB design 1 “users” table [sql] 1 AA 2 BB [/sql] “authority_groups” table [sql] group_auto name 1 Admin 2 Writer [/sql] “authority_group_items” table [sql] […]

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], […]