Preventing multiple clicks on a button.
-
Hi Everybody, I am developing a weblproject in C# using .net2005. In my page i have a Gridview, some text boxes, dropdown lists to enter data and a button to create a new row in the Grid. The functionality is when user enters data in the textboxes and selects using dropdown and he has to click create button to create a new row in the Grid. It is working fine when user clicks the create button once. When user clicks the button multiple times (continously) then that no of data rows are creating in the gird. Here i need only one row in the Grid. How can i overcome this problem. Thanks in Advance Ramu
-
Hi Everybody, I am developing a weblproject in C# using .net2005. In my page i have a Gridview, some text boxes, dropdown lists to enter data and a button to create a new row in the Grid. The functionality is when user enters data in the textboxes and selects using dropdown and he has to click create button to create a new row in the Grid. It is working fine when user clicks the create button once. When user clicks the button multiple times (continously) then that no of data rows are creating in the gird. Here i need only one row in the Grid. How can i overcome this problem. Thanks in Advance Ramu
-
Thanks for your response. This is not working. Here i am not directly inserting the record into the Grid. First i am writing that record to a CSV File.From that I am constructing a datatable and giving that datatable as a datasource to the Grid. THis is the requirement of the project. Ramu
-
Hi Everybody, I am developing a weblproject in C# using .net2005. In my page i have a Gridview, some text boxes, dropdown lists to enter data and a button to create a new row in the Grid. The functionality is when user enters data in the textboxes and selects using dropdown and he has to click create button to create a new row in the Grid. It is working fine when user clicks the create button once. When user clicks the button multiple times (continously) then that no of data rows are creating in the gird. Here i need only one row in the Grid. How can i overcome this problem. Thanks in Advance Ramu
Ramu.M wrote:
When user clicks the button multiple times (continously)
You can prevent this by disabling the button.. If the users click the button, you can disable it by using Javascript. After the processing is done, you can re-enabled it.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
Hi Everybody, I am developing a weblproject in C# using .net2005. In my page i have a Gridview, some text boxes, dropdown lists to enter data and a button to create a new row in the Grid. The functionality is when user enters data in the textboxes and selects using dropdown and he has to click create button to create a new row in the Grid. It is working fine when user clicks the create button once. When user clicks the button multiple times (continously) then that no of data rows are creating in the gird. Here i need only one row in the Grid. How can i overcome this problem. Thanks in Advance Ramu
Declan Bright www.declanbright.com