.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

using a progress bar when user imports a file

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :ASP.Net
 

We have a progress bar and are trying to use this on file import - by the user, but are struggling to get it working.
(Not sure how to link the progress bar to the file import btn)

here is the code of the progress bar:

<code>

 Protected Sub ProgressBar1_RunTask(ByVal sender As Object, ByVal e As EO.Web.ProgressTaskEventArgs)
       
        e.UpdateProgress(0)

        Dim i As Integer
        For i = 0 To 99
            If e.IsStopped Then
                Exit For
            End If
            System.Threading.Thread.Sleep(500)
        e.UpdateProgress(i)
        Next i

        e.UpdateProgress(100)
    End Sub

</code>

 

We have a file upload btn, but would like the progress bar to work on the import btn (which imports data from the excell spreadshe


View Complete Post


More Related Resource Links

using a progress bar when user imports a file

  

We have a progress bar and are trying to use this on file import - by the user, but are struggling to get it working.
(Not sure how to link the progress bar to the file import btn)

here is the code of the progress bar:

<code>

 Protected Sub ProgressBar1_RunTask(ByVal sender As Object, ByVal e As EO.Web.ProgressTaskEventArgs)
       
        e.UpdateProgress(0)

        Dim i As Integer
        For i = 0 To 99
            If e.IsStopped Then
                Exit For
            End If
            System.Threading.Thread.Sleep(500)
        e.UpdateProgress(i)
        Next i

        e.UpdateProgress(100)
    End Sub

</code>

 

We have a file upload btn, but would like the progress bar to work on the import btn (which imports data from the excell spreadshe

User validation Issue in xlsx file

  

Hi,

I am validating user from Login.xlsx file. It was working fine by validating email and password from that file. For testing i got new file same contents of file but added some more user names.

So after that when i validating the user i am getting the following error "Data type mismatch in criteria expression".

But when i replaced the new to old one it is working fine. The contens of both files are the same. So why this kind of error happened.

-Thanks


how to know when a user finish his file download successfully ?

  

hi all

i am doing a page to sell files online

 the paying method is by a card or bank account and the customer is not registered to the site so i want to make sure that the customer has downloaded the file successfully after that the system completes the payment operation

so if there is any way to know do that tell me please

i use c# thanx all

 

 


file upload in Create User Wizard Created User event with UpdatePanel Tag wont work?

  

Hi,

In my Create User Wizard1 Created User Wizard Event, I am collecting extra information from text boxes and allowing

the user to uplad a file.

 

 

I have put the Submit button within an Update Panel Tag but since I have done this it does not work.

Is there a way round it. In this situation would you use a trigger.?

 

     <CustomNavigationTemplate>
          
                       <div>
<br />

  <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>  


  <asp:Button ID="StepNextButton" runat="server"  CommandName="MoveNext"  align="middle"
                                            Text="Submit my Profile" />
   

user.identity.name="0" when uploading file using ajaxToolkit:AsyncFileUpload

  
hi, i am using AsyncFileupload to upload user picture. after the picture is uploaded and saved i opened another page and i noticed that the user.identity.name is lost. any idea 

if ssis package writes to excel file that might be open by a user

  
I have written a package that writes to an excel file to a network folder. Eventually this package will run as a job. What is the best way to handle the situation where someone opens the file or inadvertantly leaving it open while the package is running and and stop the package.? No one needs to modify or write anything to this file after it is finished

User Profile Syncronization - Stuck in Progress

  
Hi all, I have been working to get some of the MySite properties exported to Active Directory (such as thumbnailphoto). Today, I created a new domain service account (sa-sharepointadds) and granted it the nesecarry permissions on the domain. In SP, I configured the User Profile Sync to connect to the domain and do a full sync (import only at this time) which completed correctly. I then enabled exporting a couple of profile properties and started another sync. I saw in the Application Event Log that an error occured, so I used the FIM Sync Service Manager application to view the steps and the errors. I saw that the sync was running with my sa-sharepoint service account which is the Farm account and not the sync account sa-sharepointadds, and that a permission error occured because this account has no rights to modify Active Directory. I went into the User Profile Sync Connection and verified the correct account was in use and it was. I then went to Security > Configure Service Accounts and saw that I needed to change the service account for the User Sync service. I changed it to the sa-sharepointadds account. I went back to User Profile Sync, however my connection had disappeared. I tried to create a new connection and got the error that a sync is already in progress and that I cannot make changes until it finishes. I knew that nothing was currently running, so I did an iis

Issues with updating Lists with Manager Names and User Profile Imports in SharePoint 2010 Server

  
I am having a curious problem with SharePoint 2010 Server. I have imported all the user profiles of our organization into SharePoint User Profile Service Application from our Active Directory. When the Manager name imports it comes in as domain/login. The organizational browser seems to work for MOST people, but not all. I believe this is contributing to my second problem, which is, I have setup a very simple workflow in SharePoint Designer that simply looks up the persons Manager, then places that information into a field called "Approval 1". After that it looks at Approval 1 and get the Manager name and populated "Approval 2" with that information, and so on. I have used an Impersonation Step as the Farm Administrator in the workflow and I have done it without the impersonation step. Both results in the same problem. When I enter my name into the list and run the workflow it runs beautifully give every manager up the chain to the top. However, if I put any other person's name in there it gives me the error "Workflow failed to get user profile for user: ____". I went to my supervisor's office and asked him to run the workflow. Using his login he had the exact same result--if my name was in there it worked great, otherwise, it gave an error. Any help with this strange error would be greatly appreciated.  Thanks

How to manually set which localization file (resx) to load up depending on user

  
Hi,I want to use localization as user base and not language base.  I would like to name my resx to default.aspx.ABC where ABC is the user's name.How do i manually specify which resx file the page should load up?  Thanks

what is the better design for location of system database data / log files and user data/log file,

  
is there a guideline for better performance for system database data location log location, like tempdb location etc. also better location for user databases/data and log.

Why is the "attach file" control not active, if I try to upload a file as an anonymous user within a

  
Hi everybody! We try to design an online application form and implement an infopath form over a form webpart! Meanwhile, I'm able to see the form as an anonymous user and I can enter the specific informations, but unfortunately I'm not able to attach a file, because the control is not aktive! Does someone have an idea, why?   Thanks for your replies    

Problem while 2 User write in a File a the Same time

  

Hi Everyone
I am facing a problem while a user is going to write in a file. My question is that if a User A open a file and start writing in file usin FileStream, if at the same other user try to access this file and try to write in it then he should wait until User A does not complete his work and close writer object.  Waiting for quick response. It is very urgent. Thanks in advance.

 


File upload control and not permitting user to upload over 500px in WIDTH ??

  

hi,

 

I have a file upload control on my page with a regular expression validator that handles the file format.

 

Users can upload files but I want the maximum WIDTH size to be 500px.

 

If any bigger I need to show a message advising the width is to great and stops them.

 

Thanks for any solutions

P

 


The file 'document name' has been modified by user name on 'date'

  

Hi,

After modifing the document, if the user edit the document properties and save, it shows error like,

The file 'filename' has been modified by 'user name' on 28 Sep 2010 17:21:04 +0530 .

what is this means? how to resolve this, Please guide me. thanks in advance.

 


File upload control with progress bar?

  
Hi,
I need a file upload control which will indicate the progress of uploading using progress bar or %. If it would ajax enabled control then it would much helpful. 
Please help me.

Thanks,
Suman

See my blog at http://socketprogramming.blogspot.com/

custom handler caching user file

  

i have a custom handler which captures user's book mark entry. To debug this handler, i have created a file "test1.txt" in code behind which saves the user entry. After the debug, i removed the text file (test1.txt) then re-complied the web app and deployed new DLLs for the site. But, the site is still looking for test1.txt file. i dont know how to confirm if the handler is really removed from the new DLL. Also, looked at the handler code behind file and didn't find any entry with test1.txt. So, i had no clue where this is sitting?


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend