Easy to learn programming. Pravin Prajapati
function showDetail(id){ //do somthing here... alert(id); } colNames: ['ID',''], colModel: [ { name: "ID", key: true, index: "ID", sortable: false, hidden: true } ,{ name: 'action', align: 'center', width: 25, sortable: false , title: false, fixed: true, search: false , formatter: function (cellvalue, options, rowObject) { var stImageLinks = '<a title="action tooltip" onclick="showDetail(\'' + (rowObject.ID) + '\') + '\');" href="#"><img src="../images/edit.png" /></a>'; return stImageLinks; } } },
protected void removeCookie() { HttpCookie aCookie; string cookieName; int limit = Request.Cookies.Count; for (int i = 0; i < limit; i++) { cookieName = Request.Cookies[i].Name; aCookie = new HttpCookie(cookieName); aCookie.Expires = DateTime.Now.AddDays(-1); aCookie.Value = string.Empty; Response.Cookies.Add(aCookie); } }
protected void Page_Load(object sender, EventArgs e) { removeCookie(); //call method here }
SELECT COUNT(*) FROM tablename WHERE --compare date here with current date. CONVERT(DATE, [dateTimeColumn]) = CONVERT(DATE, GETDATE()) --compare time here with current time AND CONVERT(TIME, [dateTimeColumn]) <= CONVERT(TIME, GETDATE())