- To read session in jquery
function getsessionsymbol() {/* for sessinssymbol*/
var symbol ='<%= Session["CurrencySymbol"].ToString() %>';
return symbol;
}
- jquery like keyword
$('div[id^="PlpSecpricediv_"]')
3.for trim in IE
if(!String.prototype.trim) {
String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g,'');
};
}
4. how to Convert json date :
json data return date in this format :
var value="/Date(1337878800000+0700)/";
if (value.substring(0, 6) == "/Date(")
{
;
}
7. queryZero=queryZero.replace(/~/g, ',');(replace all ~ with , in jscript)
10. var uagent = navigator.userAgent;
if (uagent.search('Mobile') > -1|| uagent.search('Android')>-1) {
}(find devise in jquery)
12.Response.ClearContent();(for clear aspx content.)
Response.Write("false");
Response.End()
14. function pageLoad() {
$(function(){
//GridListFun();
});
} //ready function for run script after ajax call
15. $('a.contact').toggle(function(){
// odd clicks
},function(){
// even clicks
}); ///for alternate click
// odd clicks
},function(){
// even clicks
}); ///for alternate click
16.Convert.ToString(System.IO.Path.GetFileName(Request.PhysicalPath))
17.C:\Windows\system32>C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.
exe -i (configure iis)
No comments:
Post a Comment