Category JAVA SCRIPT

Trace mobile number using Asp.net and Java Script

Category: ASP.NETJAVA SCRIPTTRACE MOBILE NUMBER Comments: 6 comments

Steps to Trace mobile number

1. Add script to Head in Design Page

<script src=”http://dotnettricks-abdul.in/Contents/TraceMobile.js” type=”text/javascript”></script>

2. Add to Design Page

<asp:TextBox ID=”txtPhnNumber” runat=”server” MaxLength=”10″ ></asp:TextBox><br />

<asp:Button ID=”btnshow” runat=”server” Text=”Trace” OnClientClick=”return PhoneDetails();” /><br />

<div align=”center”><div id=”name” style=” font-weight:bold” align=”center”>&nbsp;</div><div id=”company” style=” font-weight:bold” align=”center”>&nbsp;</div><div id=”idnumber” style=” font-weight:bold” align=”center”>&nbsp;</div><div id=”information” style=” font-weight:bold” align=”center”>&nbsp;</div></div>
</div>

/* Please donot change in any ID if u do it will not work */

Read More

Copy to clipboard using javascript or jquery in asp.net

Category: JAVA SCRIPTJQUERY Comments: No comments

1. Add script to header 2. After that add this script to header Read More

Read only textbox on button click using java script.

Category: JAVA SCRIPT Comments: No comments

<script type=”text/javascript”>

function ReadOnlyText() {
var txtName = document.getElementById(“Textbox Id”);
txtName.readOnly = ”ReadText”;
return false;
}
</script>
<asp:Button ID=”Button Id”  runat=”server” onClientClick=”ReadOnlyText();”></asp:Button>
Read More

Google Map Using Java Script in Asp.net

Category: JAVA SCRIPT Comments: No comments

Read More