Monthly Archive:: January 2014

Show hide password characters using javascript,jquery

<!DOCTYPE html> <html> <head runat=”server”> <title>Show Hide Password</title> <%–Include jQuery Library–%> <script type=”text/javascript”src=””></script> </head> <body> <form> <div style=”margin:80px;”> <input type=”hidden”value=”0″id=”mode”/> <input type=”password”id=”txtpass”/> <button id=”btnclick”onclick=”return fnClick();”>     Show Password </button> </div> </form> <script type=”text/javascript”> //Javascript code to show hide password characters functionfnClick() { varcurval = $(‘#mode’).val(); $(‘input[type=”password”],input[type=”input”]’).each(function () { if(curval == ‘0’) { $(this).replaceWith(‘<input type=”input” id=”txtpass”

C# code to convert string to byte array and byte array to string in ASP.Net

usingSystem; usingSystem.Collections.Generic; usingSystem.Text; namespaceStringToByte {     class Program     {         static void Main(string args)         {             stringstr=“Kannadasan”;             byte bytes = new byte[str.Length * sizeof(char)];             bytes = GetByteArrayFromString(str);             Console.WriteLine(bytes.ToString());             stringoutput = “”;             output = GetStringFromByteArray(bytes);             Console.WriteLine(output.ToString());             Console.ReadLine();         }         // Static method to convert string into

What is mean by $.fn.

In jQuery, what does $.fn. mean? I looked this up on google and found the below answer. It allows you to extend jQuery with your own functions. For example, $.fn.something = function{} will allow you to use $(“#element”).something(). $.fn is also synonymous with jQuery.fn which might make your Google searches easier.

How to check if element is visible in Zepto

function isVis(ele) {     if(ele.css(‘display’)!=’hidden’ && ele.css(‘visibility’)!=’hidden’ && ele.height()>0) {         return(true);     } else {         return(false);     } }

Binding Gridview in

A GridView is a graphical user interface element that presents a tabular view of data. Here we are going to learn how to bind grid view in  Gridview can be load using database or list. First take a look at how to bind gridview using list. In next post we can learn how to

Geckofx Browser in Winform Application

Bored with IE browser in your winform application ? Want to do everything as you doing in your Firefox or Chrome Browser ? Play with automation ? Then here is your choice .   Introduction:  GeckoFX is a Windows Forms control written in clean, commented C# that embeds the Mozilla Gecko browser control in any