Server time in client javascript code

Source code to get the server time from client side JavaScript code in asp.net or SharePoint application. Below sample code can be modified based on requirement.   <script type=”text/javascript”> //Users time var timeLocal = new Date();...

Using jQuery in asp.net application and its advantages

jQuery is the fantastic opensource and free javascript library you can easily integrate in your asp.net and sharepoint applications. Personally I would like to use this light weight library because it helps to accomplish the more complex DOM operation do simpler. In...

Javascript Treeview Checkbox Check All function

.net 2.0 rolled out with build in treeview control. It has many built in features like showing checkbox for all treeview node, formating the node. we code give the styles etc. We can enable the checkbox to select the node or leaf by just setting treeview...

Javascript trim

In programming trim is a string manipulation function. It will remove the leading and trailing spaces. JavaScript does not provide the trim functionality by default. Best 3 sample i have provided below, same you can use for trimming the string using javascript. Sample...