In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "the application case analysis of the progress bar when introducing Excel into. Net". In the daily operation, I believe that many people have doubts about the application case analysis of the progress bar when introducing Excel into. Net, the editor consulted all kinds of data and sorted out a simple and easy-to-use operation method. I hope it will be helpful to answer the doubts of "application case analysis of progress bar when introducing Excel into. Net". Next, please follow the editor to study!
This paper gives an example of the application of the progress bar when .net is imported into Excel, which is shared with you for your reference. The specific implementation methods are as follows:
In the process of program development, it often involves the requirement of importing the Excel table into the database, but when the excel table contains a lot of content, it is often difficult for us to capture the progress of its execution process and some error messages. At this time, we can solve these problems by the following methods. The specific implementation process is analyzed as follows:
First, set up a web application program, and first create a html file named ProgressBar in the program, with the following contents:
The copy code is as follows:
/ / start processing
Function BeginTrans (msg) {
WriteText (msg)
}
/ / set progress bar progress
Function SetPorgressBar (msg, pos) {
ProgressBar.style.width = pos + "%"
WriteText (msg + "completed" + pos + "%")
}
/ / end of processing
Function EndTrans (msg) {
If (msg = "")
WriteText ("done.")
Else
WriteText (msg)
}
/ / set time information
Function SetTimeInfo (msg) {
WriteText (msg)
}
/ / Update text display information
Function WriteText (str) {
Var strTag =''+ str +''
Document.getElementById ("Msg2") [xss_clean] = strTag
}
2. Create an aspx page with the following codes:
The copy code is as follows:
/ / 1. For simplicity here, I only write the body part of the front page for reference:
Excel file
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.