function T Validate(string str){using (MemoryStream ms = new MemoryStream()) { foreach (byte _byte in Encoding.Default.GetBytes(str)) { ms.WriteByte(_byte);
This article describe the famious issue “function in loop and closure” in JavaScript.The root cause is loop statements (such as for, while) don’t have their own scope.Let’s see an example first: <ul> <li>Item1</li>
In JavaScript, object and array are passed by reference.Sometimes you may come into trouble if you don’t keep this in mind, especial inrecursion.Let’s see an example:First, prepare a JavaScript array to present a tree data: var treeData = [{
ExtAspNet v2.1.0 ExtAspNet is a set of professional Asp.net controls with native AJAX support and rich UI effectwhich aim at No JavaScript, No CSS, No UpdatePanel and No WebServices.Note: ExtAspNet bases on Open Source Projects like ExtJS,
select c.last_execution_time,c.execution_count,c.total_logical_reads,c.total_logical_writes,c.total_elapsed_time,c.last_elapsed_time, q.[text]from (select top 50 qs.* from sys.dm_exec_query_stats qs order by qs.total_worker_time
In my last article, i use a JSON tool to parse a JSON string, but there will be a JavaScript error:<div style="display: none;" class="initParameters">{ cred: "6B30E9A9E716C370E040E00A193871B8" }</div>var initParameters =
Today, when reading an article - A Plugin Development Pattern, i found an interesting plugin - metadata.First, let’s see it in action: <li id="Li1" class='someclass {"item_id": 1, "item_label": "Label"}'>Item 1</li> <li id="Li2"
ExtAspNet v2.0.8 ExtAspNet is a set of professional Asp.net controls with native AJAX support and rich UI effectwhich aim at No JavaScript, No CSS, No UpdatePanel and No WebServices.Note: ExtAspNet bases on Open Source Projects like ExtJS,
ExtAspNet v2.0.9 ExtAspNet is a set of professional Asp.net controls with native AJAX support and rich UI effectwhich aim at No JavaScript, No CSS, No UpdatePanel and No WebServices.Note: ExtAspNet bases on Open Source Projects like ExtJS,