==>> In this post i want to make asp .net text box read only
using JQuery .Some time we need this type of functionality in your
website so you can easily implement in your website just copy paste
blow code on your aspx page :----
1. ASPX PAGE CODE:-
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Asp.Net Textbox Readonly using JQuery</title>
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#<%=txtBoxName.ClientID%>').attr('readonly', true);
})
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtBoxName" runat="server" />
</div>
</form>
</body>
</html>
Hope this will help you...
Nice post very useful for me tnx sir
ReplyDeleteWelcome Sir
DeleteKeep Reading............