Popular Articles
Last viewed:
- Silverlight Memory Leak DataGrid, DataForm, DataTemplate, etc...
- Contact Us
- SQL Create Table Add Description to Column
- Performance benchmarks for LINQ vs. SqlDataReader, DataSet - LINQ Compiled Queries: Part 2
- Installing an SSL / TLS certificate on Windows Server 2008
- Install Windws 2003 Terminal Service Licenses (Remote Desktop)
Recent comments
- Aha! Problems with UpdatePanel? Sorted ...
1 day 1 hour ago - Some help required with this
1 day 7 hours ago - Never seen this issue
1 week 1 day ago - Error in query.ToList()
1 week 1 day ago - Thanks
1 week 2 days ago - Thanks
1 week 5 days ago - To get the data working,
2 weeks 1 day ago - If I manually change the
2 weeks 1 day ago - Handling EDM Relationship Metadata
2 weeks 1 day ago - About the itextsharp version
2 weeks 1 day ago


Why not do it this way?
asp:Button ID="btnFinish" Text="Finish" OnClick="btnFinish_Click" OnClientClick="window.setTimeout('disableFinishButton()',0); return true" runat="server"
script type="text/javascript"
function disableFinishButton()
{
var arrInputs = document.getElementsByTagName('INPUT')
for (var i = 0; i < arrInputs.length; i++)
{
if (arrInputs[i].getAttribute('id') != null)
{
if (arrInputs[i].getAttribute('id').indexOf('btnFinish') > -1)
{
arrInputs[i].disabled = true
break
}
}
}
}
/script