Count and Limit Maximum characters of a TextBox


<script language=”javascript” type=”text/javascript”>
function limitText(limitField, limitCount, limitNum) {
if (limitField.value.length > limitNum) {
limitField.value = limitField.value.substring(0, limitNum);
} else {
limitCount.value = limitNum – limitField.value.length;
}
}
</script>

<!– Html Code –>

<textarea name=”limitedtextarea” onKeyDown=”limitText(this.form.limitedtextarea,this.form.countdown,100);”
onKeyUp=”limitText(this.form.limitedtextarea,this.form.countdown,100);”>
</textarea><br>
<font size=”1″>(Maximum characters: 100)<br>
You have <input readonly type=”text” name=”countdown” size=”3″ value=”100″> characters left.</font>

 

 

How to disable right click in asp.net, C# using javascript


Add this attribute to the BODY Tag to disable the right click menu everywhere on the page.

<body oncontextmenu=”return false;”>

If you want disable dragging of images and text selection, add this attribute to the BODY Tag.

<body ondragstart =”return false;”>

Below this script is to disable right click menu and dragging of images and text selection for all browsers.

<script type=”text/javascript”>
function md(e) {
try { if (event.button == 2 || event.button == 3) return false; }
catch (e) { if (e.which == 3) return false; }
}
document.oncontextmenu = function () { return false; }
document.ondragstart = function () { return false; }
document.onmousedown = md;
</script>

Authenticate using Social Logins


Last some days i was working in Plugin development, i want to create a custom module of Login Authentication via social logins for my CMS (asp.net). but i am confused about because i research on net about social logins providers like gigya, janrain, loginradius so finally i decided to implement loginradius for my CMS and believe its a so easy to implement and it has great security and good functionality so finally i complete my plugin with the help of Loginradius and ofcourse LoginRadius team helps me so much. and i feel any body will try this at once.

How to make a computer faster?


By following a few simple guidelines, you can maintain your computer, help increase your PC speed, and help keep it running smoothly.

Here are some suggestions.

  1. Remove spyware (http://www.michaelhorowitz.com/removespyware.html).
  2. Use Disk Cleanup to:
    • Remove temporary Internet files.
    • Delete downloaded program files, such as Microsoft ActiveX controls and Java applets.
    • Empty the Recycle Bin.
    • Remove Windows temporary files, such as error reports.
    • Delete optional Windows components that you don’t use.
    • Delete installed programs that you no longer use.
    • Remove unused restore points and shadow copies from System Restore.
  3. you can use ReadyBoost to speed up your system. A new concept in adding memory to a system, it allows you to use non-volatile flash memory—like a USB flash drive or a memory card—to improve performance without having to add additional memory.
  4. Empty Recycle Bin. You can use c cleaner (http://www.piriform.com/ccleaner/download).
  5. Clean you registry using c cleaner. but make sure before you clean save your previous registry.
  6. You may want to disable rarely used peripherals or hardware services. and also Windows update.
  7. Remove extra and unused Software’s in you system.
  8. You may disable unused services like windows defender and windows firewall.
  9. Keep as less programs as possible running on the System Tray. This essentially means reducing the number of programs that start during Windows start up.
  10. Remove background processes: The computer is always carrying out processes that are not visible as programs on the Desktop or the Taskbar. They come both from application software and from Windows. They are not overtly obvious and are said to run in the background. Many of them are essential functions but some may be useless (or even harmful if malware is involved).
  11. Remove unused Messenger services if you are using.
  12. Clear your Internet Explorer cache.
  13. Consider using a lower resolution, or a lower color depth for your monitor.
  14. Disable Animations and Appearance Overhauls to maximize performance : Go to System Properties in the Control Panel. Click ‘Advanced’, then ‘Performance’ and click ‘Adjust for best performance’. This might boost your PC’s performance up a bit.
  15. Don’t keep installing software. Install a program only if it really serves you a purpose.

please let me know if these informations is not useful!