Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 29, 2012 12:59 PM by res.web
Member
5 Points
15 Posts
Apr 29, 2012 08:29 AM|LINK
Hi all. I want to know, how to disable textbox and smart search for this
<asp:TextBox ID="txtProdCode1" runat="server" CssClass="TxtBox" Width="30px" ></asp:TextBox> <asp:ImageButton ID="ibtnSmartSearchProd1" runat="server" ImageUrl="~/Images/SmartSearchIcon.bmp" onclick="ibtnSmartSearchProd1_Click" style="height: 14px" Width="15px" />
Regards,
Ecah
All-Star
98053 Points
14516 Posts
Apr 29, 2012 08:36 AM|LINK
disable textbox in javascript - http://www.codeproject.com/Tips/297924/Enable-Disable-Textboxes-based-on-CheckBox-using-J
Thanks,
28201 Points
4216 Posts
Apr 29, 2012 08:55 AM|LINK
To disable the textbox from code behind you can use the following code
txtProdCode1.Enabled =false;
Contributor
3116 Points
764 Posts
Apr 29, 2012 09:50 AM|LINK
in javascript
document.getElementByID("txtProdCode1").disabled = true;
document.getElementByID("ibtnSmartSearchProd1").disabled = true;
130 Points
41 Posts
Apr 29, 2012 12:53 PM|LINK
txtProdCode1.enabled=false;
546 Points
138 Posts
Apr 29, 2012 12:59 PM|LINK
try this,
<script type="text/javascript"> function ibtnSmartSearchProd1_Click(txtProdCode1) { document.getElementById(txtProdCode1).disabled = true } </script>
ecah88
Member
5 Points
15 Posts
HOW to "disable" textbox and smart search
Apr 29, 2012 08:29 AM|LINK
Hi all. I want to know, how to disable textbox and smart search for this
Regards,
Ecah
Ecah88
ramiramilu
All-Star
98053 Points
14516 Posts
Re: HOW to "disable" textbox and smart search
Apr 29, 2012 08:36 AM|LINK
disable textbox in javascript - http://www.codeproject.com/Tips/297924/Enable-Disable-Textboxes-based-on-CheckBox-using-J
Thanks,
JumpStart
sreejukg
All-Star
28201 Points
4216 Posts
Re: HOW to "disable" textbox and smart search
Apr 29, 2012 08:55 AM|LINK
To disable the textbox from code behind you can use the following code
txtProdCode1.Enabled =false;
My Blog
AmalO.Abdull...
Contributor
3116 Points
764 Posts
Re: HOW to "disable" textbox and smart search
Apr 29, 2012 09:50 AM|LINK
in javascript
document.getElementByID("txtProdCode1").disabled = true;
document.getElementByID("ibtnSmartSearchProd1").disabled = true;
Shoaib.Rashi...
Member
130 Points
41 Posts
Re: HOW to "disable" textbox and smart search
Apr 29, 2012 12:53 PM|LINK
txtProdCode1.enabled=false;
res.web
Member
546 Points
138 Posts
Re: HOW to "disable" textbox and smart search
Apr 29, 2012 12:59 PM|LINK
try this,