Click here to Skip to main content
15,917,005 members

Comments by GeethaSG (Top 9 by date)

GeethaSG 22-Mar-14 4:37am View    
With this i have attached the sample code for your reference.
This is the code which i have used in my content page.
<asp:CheckBox ID="chkSales" Checked="false" onclick="enableDisable(this.checked, 'txtSales');" runat="server" />
<asp:TextBox ID="txtSales" runat="server" Enabled="False" Width="58px" />

Then for onclick event i have written an javascript code which is:


function enableDisable(bEnable, textBoxID)
{
document.getElementById(textBoxID).disabled = !bEnable

}
My question is how to call this script inside the asp.net content page?..
GeethaSG 11-Mar-14 6:37am View    
Thank you so much for your guidance.
GeethaSG 11-Mar-14 6:17am View    
Thanks for the reference. but i don't know how good it will work for me to understand and code because i am a beginner.
GeethaSG 11-Mar-14 6:15am View    
Thanks for providing reference.But i don't know how to understand this and code as a beginner.
GeethaSG 11-Mar-14 6:06am View    
Deleted
Thank you for your code. But what i need is to open and edit a document which is already uploaded into a database.