Link to home
Start Free TrialLog in
Avatar of ronipats
ronipats

asked on

asp.net, email, c#, framework 3.5

sir,

i have developed one application. i have designed three forms.

1) for sending email

2) for importing data from excel sheet.

3) for inserting and retrieveing bulk records to sql server2008.


whenever i do any process/task on this form. i want to disable submit button until the process gets over.

kindly suggest me how to do this. (with and without use of ajax).

thanks
Avatar of plusone3055
plusone3055
Flag of United States of America image

why can you not use ajax  (just curious)

This snippet may help  :)
http://aspsnippets.com/Articles/Disable-Button-before-Page-PostBack-in-ASP.Net.aspx
Avatar of ronipats
ronipats

ASKER

sir,
example in above link works fine. Here thread is used. Now how to calculate the total processing time for (sending email - as it may vary based on internet speed)
(for reading excel file - as it may vary based on no of records in file) and (for inserting and retriving record in sql server).

here in above example time of 1000 ms is give in thread to get sleep. How can i calculate processing time in all above three case.
thanks
ASKER CERTIFIED SOLUTION
Avatar of plusone3055
plusone3055
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial