Web Forms :: Load Busy Indicator Until Process Is Complete

Feb 1, 2013

I need to show the busy indicator when some action is taken and i should show the time until the process gets completed.

I referred [URL] ..... link and its great.

But i found the code System.Threading.Thread.Sleep(5000);.

I should not add the fake delay as it is my process is long process to run....

View 1 Replies


Similar Messages:

Web Forms :: Show Busy Indicator When Processing During Postback

Jan 28, 2013

Looking for code to show the busy indicator while the operation is doing...

View 1 Replies

Ajax Page To Display Some Busy Indicator

Sep 8, 2010

Is there a way with ASP.net page (with AJAX) to display some some of busy indicator (just a label is fine) while disabling some buttons (to prevent double-click) and then do the work. At the end of the work, the label changes to indicate the new status. When I tried to do it this way :

Public Sub BtnEnvoyer_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnEnvoyer.Click
BtnEnvoyer.Enabled = False
LblStatus.Visible = True
LblStatus.ForeColor = Drawing.Color.ForestGreen
LblStatus.Text = "Envoi en cours..."
SendEmail()
End Sub
Private Sub EnvoyerCourriel()
' Do some work
LblStatus.Text = "Done!"
BtnEnvoyer.Enabled = True
End Sub

I just see the dn result, nothing in between. I don't mind using javascript to make it work if needed, or anything else for that matter.

View 4 Replies

.NET Busy Indicator - User Take Any Action Before The End Of That Blcok Of Code?

Mar 4, 2011

I want a busy indicator i can use it in my asp.net application ... cause i have a block of code take time to execute and i want to let user take any action before the end of that blcok of code

View 4 Replies

Web Forms :: Processing Indicator For A Long Process With File Uploads?

Jan 20, 2011

On my current project I have to accept 2 Excel spreadsheets that will be uploaded by clients, process them and create a download package based on this information. This process includes extracting data from the sheets, updating our databases and building several PDF files for the download package. This takes between 15 seconds to 2 minutes to complete, depending on the complexity of the request. Naturally, I want to show some kind of processing indicator rather than just leaving the user hanging while the page loads.

Here's the problem: How to show this processing indicator.

I have to do a full postback to upload the files so this eliminates several nice AJAX indicator methods (sponsoring users rejected the AJAX toolkit async file upload, saying it was confusing to them). If I process on any of the page events during the postback, the page doesn't load until the lengthy process is completed so the browser/site looks 'hung'.

Basically, I need some ideas on how to display a 'building your download' graphic while the lengthy process is working that will also work with a full postback.

View 4 Replies

How To Show Busy Loading Message With Percentage Download When Form Will Load Using JQuery

Jan 21, 2011

suppose my page content is huge so in my asp.net application i want to show busy icon with percentage downloading the content in client side. i saw many flash and sliver light site that they show busy icon and also they show percentage that means how much content has been loading in client machine. how could i achieve this using JQuery and when page content has been downloaded in client machine the busy icon goes out and actual page content will display.

View 2 Replies

AJAX :: How To Load Update Panels After Page Load Complete Event

Apr 11, 2010

I have a update panel on the ASPX page,When thepage loads the content in the update panel shouldnot load ( Update panel should show the Updatepanel progress control) but after page load update panel contents should load . How do i get this efect.

View 3 Replies

Documentation Or Resources That Describes The Complete Process Flow Of An Application?

Jul 12, 2010

if there's any documentation/resources the describes the complete process flow of an ASP.Net application? Looking for something that describes IIS handing off the HttpRequest and the usage of the PageParserFilters and such.

View 1 Replies

Develop A Page Where Individual Section Will Load With Busy Icon When Page Loads Without Using Web Parts?

Feb 11, 2011

i have seen many site where individual web parts load with busy icon when page loads. without using web parts how can develop a page where individual section will load with busy icon when page loads.

View 1 Replies

Possible To Load And Process A Foreign Web Page

Mar 2, 2010

I need to get a certain web page, process the data a bit and do a db search or two.I hope my subjectline is clear enough. I load some data from an database with wep GUI. But there are character set problems with the data, and I have to fix those, before the data gets mangled by the IE. And I cant fix the source database or web page.

View 4 Replies

Web Forms :: The Process Cannot Access The File 'c: Empmy.pdf' Because It Is Being Used By Another Process?

Apr 3, 2010

I've developed a popup email .aspx used on our intranet based web app that is auto generated with .pdf's attached. I'm developing with VS 2008 ASP.Net 3.5 C# and System.Net.Mail.MailMessage. I can create and send the email with no issues. The problem is with any attempt to open or delete the attachments I get the above error. The .pdf's a copied with the following code:

FileStream fsr = new FileStream(inFilename, FileMode.Open, FileAccess.Read, FileShare.Read);
BinaryReader reader = new BinaryReader(fsr);
byte[] bytes = new byte[fsr.Length];
reader.Read(bytes, 0, bytes.Length);
FileStream fsw = new FileStream(outFileName, FileMode.Create, FileAccess.Write, FileShare.Write);
BinaryWriter writer = new BinaryWriter(fsw);
writer.Write(bytes, 0, bytes.Length);
// clean up
writer.Flush();
writer.Close();
writer = null;
fsw.Close();
fsw.Dispose();
fsw = null;
reader.Close();
reader = null;
fsr.Close();
fsr.Dispose();
fsr = null;
Later after sending the email I:
mailMessage.Dispose();
mailMessage = null;
foreach (string fileName in attachments)
{
if (File.Exists(fileName))
File.Delete(fileName);
}

The error occurs at: the File.Delete(fileName);

how I can delete or reopen these files after sending the email?

View 9 Replies

MVVM Vs MVC In ASP.net : Either Better For Busy Websites?

Feb 1, 2011

I'm wondering about the underlying implementations of these design patterns specifically within asp.net. Is there a difference between the two models in terms of scalability of a website (i.e. as traffic increases might I regret following one or both of these design patterns)? I ask as someone once mentioned that MVC produces a 'lighter' website but I can find nothing to back this up.

If MVVM is as good as MVC why did MS release all the MVC tools?

View 1 Replies

Web Forms :: Process Cannot Access The File It Is Being Used By Another Process?

Nov 6, 2010

My code is that I want to create a log file and log it upon a new user browsing the site. However, what i did was I put in a 6 second delay and then used another browser to access the page. And it threw an Exception saying it is being used by another process which is true. So how come I set it so that, if IT is being used by another process, WAIT and retry every 500 milliseconds until it becomes free/available?

here's the code:

protected void Page_Load(object sender, EventArgs e)
{if (!IsPostBack) // if this is the first time page loads, set k to 1
{ lognewuser();
}}

[Code]....

View 1 Replies

Change Cursor To Busy While Loading Page

Oct 29, 2010

I understand how to use javascript to change the cursor to busy while the page is making and ajax call. However I have a page that does not use ajax, it uses a postback to reload the page. However the load is rather data intensive and it takes a few seconds. During this time the user can still click on the page. I want to turn the cursor to "waiting" so the user does not try to click on the page. For example I have a couple of dropdowns that cause postback. I make a selection and the page loads for 3 seconds. While it loads I would like the cursor to turn to waiting so the user does not try to make a selection on a second dropdown until the page reloads. Is this possible?

Additional Info: (simplified version of my setup)
I have a masterpage:

<form id="form1" runat="server">
<table width = "100%" bgcolor="White">
<tr><td>
<h3><asp:ContentPlaceHolder id="MAIN" runat="server"></asp:ContentPlaceHolder></h3>
</tr></td>
</table>
</form>
<script type="text/javascript">
function cursorwait(e) {
document.body.style.cursor = 'wait';
}
var fm = document.getElementById('<% =form1.ClientID %>');
if (fm.addEventListener) {
fm.addEventListener('submit', cursorwait, false);
}
else {
fm.attachEvent('onsubmit', cursorwait);
}
</script>

and then a page that uses the master page:

<asp:Content ID="Content1" ContentPlaceHolderID="MAIN" Runat="Server">
<table runat=server id="tb_simple_search_table" cellpadding = 0 cellspacing = 0>
<tr><td>
<asp:DropDownList...
<asp:DropDownList...
</td></tr>
</table>
</asp:content>

View 2 Replies

MVC :: Busy Icon While Processing Jquery Ajax Function?

Aug 3, 2010

i use the code for my cascade dropdown list.my JResult function in cotroller doing some complex job.. ( i already fine tune it).based on that function my second dropdown list and some other controls values sets...now i want to show "busy icon" operation while this controller works in background

View 1 Replies

MVC :: Validation / Getting Firefox Error 'MicrosoftMvcValidation.js :29 Busy Or Stopped Responding'

Jun 16, 2010

I am trying to validate an email address in a textbox, but when I try to type into the textbox, after I have typed more than about 10 characters, I get the Firefox error 'MicrosoftMvcValidation.js :29 Busy or stopped responding'. Here is my code,

Model :

[Code]....

View :

[Code]....

View 1 Replies

Forms Data Controls :: Graphical Indicator In Gridview

Jul 12, 2010

I need to build a mini dashboard using asp.net gridview. What I need is to compare values from an sql server database, for instance, if the values as yesterday is greater than today an up arrow graphic indicator should appear and if the values is lesser a down arrow should appear.

View 2 Replies

Web Forms :: Show Completed Step Indicator Using Wizard Side Bar?

Nov 10, 2010

I want to create a multi step form that allows users to indicate at the end of each step via a checkbox that they have completed all the information in that step. I would like the sidebar to show this information as a visual clue about how far through the wizard they are. NB steps shouldn't get disabled once completed (they could re-edit if they wish) and the users don't have to use linear navigation through the steps.

View 1 Replies

Web Forms :: Dropdown Of Office Communicator Presence Indicator Is Not Displayed?

Jun 29, 2010

The onclick event of the image (that shoud show the OC dropdown) is not working in this scenario: The page has OC precense indicator then a modal window that has OC precence indicator is launched. When the modal window is closed and there is no postback on the parent page, the OC dropdown of the parent page does not show when the image is clicked. The onclick event is working well if the parent page had a full postback after closing the modal window. How will I fix the onclick event issue if there is no poastback?

View 1 Replies

Forms Data Controls :: Display Indicator While Database Is Being Queried?

Jan 5, 2010

I have a Master Detail page with gridview that has a clickable link that queries a database and return the detailed values. How would I go about having an indicator such as an image or a pop up or just text that diplays while the database is being queried and if no detail data is avalible it would indicate that also.

View 3 Replies

Configuration :: Process.start (System.Diagnostics.Process) - Execute A Batch File

Sep 7, 2010

I've written a aspx.net(C#) page that after the user has done what they do on the page they hit a Submit button. The Submit button

1) takes the work the users was producing on the page and writes it to a file.
2) attempts to execute a batch file.

The call to the batch file is executed via:

protected void Execute123EDI()
{
try
{
string File = @"c:80sAdminSendV80s.bat";
lblCancelled.Text = lblCancelled.Text + File;
Process proc = new System.Diagnostics.Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.LoadUserProfile = false;
proc.StartInfo.UserName = "administrator";
proc.StartInfo.RedirectStandardOutput = true;
System.Security.SecureString secPass = new System.Security.SecureString();
string paswd = "123abc";
for (int i = 0; i < paswd.Length; i++)
{
secPass.AppendChar(paswd[i]);
}
proc.StartInfo.Password = secPass;
proc.StartInfo.FileName = File;
proc.Start();
FileStream fs = new FileStream(@"c:80sAdminSendV80sOutput.log", FileMode.Append);
StreamWriter sw = new StreamWriter(fs);
sw.Write(proc.StandardOutput.ReadToEnd());
proc.WaitForExit();
sw.Close();
proc.Close();
}
catch(Exception ex)
{
lblDebug.Text = lblDebug.Text + ex.Message + "<br/>";
}

If I watch the processes tab in Task Manager on the web server I see "cmd.exe" under the context of 'administrator' but it just hangs. For test purposes c:SendV80s.bat: copy c: oot.ini c:zzz.txt

If I logon onto the webserver's console and execute SendV80s.bat it works and exits without issue. But when I execute the same batch file via the Submit button it gets stuck executing in Task Manager/Process. I believe this has something to do with the fact that cmd is not running in a full environment/desktop context. I just noticed this on the actual console of the webserver (not in my RDP console but console 0 instead)

A pop-up box stating: CMD.exe Application error The application failed to initialize properly (0xc0000142). Click OK to terminate the application. And when I click on the OK button my ASPX page's WaitForExit is satisfied and the continues processing normally.

View 2 Replies

Web Forms :: After Button Is Clicked Show Loading Progress Indicator Until Work Is Done

Oct 2, 2013

When I click button then I want to show Loading image and brackground is transparent, any example...

View 1 Replies

Long Running HTTP Process - How To Put In Separate Process

Jul 21, 2010

I know that similar questions have been asked all over the place, but I'm having trouble finding one that relates directly to what I'm after.

I have a website where a user uploads a data file, then that file is transformed and imported into SQL. The file could be up to 50mb in size, and some times this process can take 30 minutes or sometimes even longer.

I realise I need to palm off the actual work to another process, and poll that process on the web page. I'm wondering what the best approach would be though? Being a web developer by trade, I'm finding all this new Windows Service stuff a bit confusing, and I just wanted somewhere to start.

So:

Can I do / should I being doing this with a windows service? if so, how?

Should I use WCF? If this runs under IIS, will I have problems with aspnet_wp.exe recycling and timing out my process?

clarifications

The data is imported into sql, there's no file distribution taking place.

If there is a failure, it absolutely MUST be reported to the user. The web page will poll every, lets say, 5 seconds, from the time the async task begins, to get the 'status' of the import. Once it's finished another response will tell the page to stop polling for status updates.

queries on final decision

ok, so as I thought, it seems that a windows service is the best idea. So as to HOW to get it to work, it seems the 'put the file there and wait for the service to pick it up' idea is the generally accepted way, is there a way I can start a process run by the service, without it having to constantly be checking a database table / folder? As I said earlier, I don't have any experience with Windows Services - I wondered if I put a public method in the service, can I call it somehow?

View 2 Replies

Execute A Process Remotely With System.Diagnostics.Process

Feb 26, 2010

I'm working on an ASP.net app I'm trying to execute a process remotely , using System.Diagnostics.Process class here's my code:

ProcessStartInfo startInfo = new ProcessStartInfo(@"C:TestCommand.exe");
startInfo.Domain = "myDomain";
startInfo.UserName = "MyUserName";
SecureString sec = new SecureString();
foreach (char item in "MyPassword")
{
sec.AppendChar(item);
}
sec.MakeReadOnly();
startInfo.Password = sec;
startInfo.UseShellExecute = false;
Process.Start(startInfo);

I keep receiving an exception with the message "Logon failure: unknown user name or bad password". Im absolutelly sure that i'm submiting my correct username/pwd

View 1 Replies

Forms Data Controls :: Gridview Image Indicator - Conditions Not Evaluating Correctly

Jul 20, 2010

I have a table structure such as this:

Bank_name | Share_date | Share_Price
Skye Bank | 2010-07-19 |6.99
FCMB | 2010-07-19 |7.99
Skye Bank | 2010-07-20 | 7.79
FCMB |2010-07-20 | 7.44

What I need to do is to compare the values for the previous day to see whether it is greater than today's and then return an image in an Image templatefield in a gridview. Below is my gridview:

[Code]....

Basically, the imgUrl method should return the correct indication in the gridview image template field. For instance if the sprice(which is today's values) is greater then the previous an uparrow should appear. However, I notice that the conditions is not evaluating correctly, for instance the Bank_Name FCMB in the table still returns an uparrow even when its share price is down from the previous day value.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved