-
http://www.cnblogs.com/philzhou/archive/2012/05/08/2490253.html
select fcustno, forderno, forderdate from t_orders
fcustno forderno forderdate
1010 101002 2003/4/25
1010 101001 2003/4/25
1010 101002 2003/4/25
1020 102001 2003/4/25
1020 102002 2003/4/25
public class CustomerTree
{
public string customerId { get; set; }
public List<orderInfo> orders { get; set; }
}public class orderInfo
{
public string orderNo { get; set; }
public DateTime orderDate { get; set; }
}jq cookies
public int GetKey(string fcustno)
http://www.cnblogs.com/wohenxinwei/archive/2011/04/27/2030759.html
{
return (from p in DataContext.t_orders where p.fcustno== fcustno
select p.forderno).ToList()
.Select(o => int.Parse(o)).Max() + 1;
//return (from p in DataContext.t_prod_category
// orderby p.fcategory descending
// select p).Take(1).ToList()[0].fcategory;
}var jsonlist = {};
var inputs = document.getElementsByTagName("input");
for(i=0;i<inputs.length;i++)
{
jsonlist[inputs[i].name] = inputs[i].value;
}http://topic.youkuaiyun.com/u/20110707/16/b63f4fe1-e8af-4e7a-ac76-4befdb45016b.html
http://stackoverflow.com/questions/6145906/serialize-deserialize-listt-to-json
http://www.fletchzone.com/post/jQuery-Convert-HTML-Table-to-JSON.aspx
http://johndyer.name/html-table-to-json/
http://encosia.com/use-jquery-to-extract-data-from-html-lists-and-tables/http://www.javascript100.com/?p=178
http://stackoverflow.com/questions/6271856/html-table-to-json
http://jelly.iteye.com/blog/138707
- var obj = eval('(' + "{Date: //Date(1278903921551)//}".replace(///Date/((/d+)/)///gi, "new Date($1)") + ')');
- var dateValue = obj["Date"];
jqgrird Object doesn't support property or method 'isEmpty'
jQuery("#custbut").jqGrid('navButtonAdd','#pcustbut',{caption:"Edit", onClickButton:function(){ var gsr = jQuery("#custbut").jqGrid('getGridParam','selrow'); if(gsr){ jQuery("#custbut").jqGrid('GridToForm',gsr,"#order"); } else { alert("Please select Row") } } }); jQuery("#savedata").click(function(){ var invid = jQuery("#invid").val(); if(invid) { jQuery("#custbut").jqGrid('FormToGrid',invid,"#order"); } });
jQuery("#a2").click( function(){ var su=jQuery("#list5").jqGrid('delRowData',12); if(su) alert("Succes. Write custom code to delete row from server"); else alert("Allready deleted or not in list"); });
[RegularExpression(@"\A\d{3,4}\Z",
ErrorMessage="The security code (CVN) must be between 3 - 4 digits long.")]