• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

asp.net, email, c#, framework 3.5


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).

  • 2
1 Solution
why can you not use ajax  (just curious)

This snippet may help  :)
ronipatsAuthor Commented:
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.
to answer your questions its simple trial and error

MAIL travels over 3000 miles per second over the internet
I would think 10-15  seconds should suffice

reading an excel file I would use a timer to see how long its taking then add a couple seconds for good meaure

same  instance with SQL server in regards to how fast the query returns a record and add a couple seconds for good measure.

Im glad the solution worked
Please award points :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now