Popular Articles
Last viewed:
- Disable Button on Submit (Prevent multiple submits)
- Get the list of ODBC data source names programatically using C#
- Using Stored Procedures in the Entity Framework with Scalar Return Values
- Get Authentication Mode from Web.Config file
- GridView ObjectDataSource LINQ Paging and Sorting
- Tutorial for Configuring Silverlight 4, Entity Framework and WCF RIA Services in Separate Component Assemblies (DLL’s)
Recent comments
- Awsome!!
7 hours 42 min ago - C# insert image
22 hours 34 min ago - jkll
3 days 10 hours ago - Thank You
4 days 10 hours ago - Another approach
6 days 11 hours ago - Issue
1 week 1 hour ago - thanks
1 week 11 hours ago - Calendar date time
1 week 17 hours ago - Nice Explanation
1 week 21 hours ago - ramya
1 week 3 days ago

BUTTON ASP.NET XML asp:Button
BUTTON ASP.NET XML
asp:Button ID="btnFinish" Text="Finish" OnClick="btnFinish_Click" OnClientClick="window.setTimeout('disableFinishButton()',0); return true" runat="server"
JAVASCRIPT
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
Works for me with only a few lines of code