VS 2010 - Disabling Page Whilst Serverside Process Happens

Apr 23, 2012

In my css I have defined:

Code:
#overlay
{
position: fixed;
height: 100%;
width: 100%;
z-index: 1000000;

[Code] ...

And then back on my client I have:

Code:
$("#Button1").click(function () {
var fileName = $("#MainContent_FileUpload1").attr("value");
var jsonData = '{ "fileName" : "' + encodeURI(fileName) + '"}';
if (checkFileExtension(fileName)) {

[Code] ...

Why my overlay doesn't display.

View 5 Replies


Similar Messages:

VS 2005 Disable Web Page Whilst Processing?

Apr 30, 2010

I have a dynamic website where each page has a selection criteria and a button. When the user clicks on the button it creates an csv file on the remote server and then emails it to the person who is logged in.

I have seen on a lot of sites where the screen goes a dark grey (still being able to see the webpage underneath) and a animated gif in the middle looking like a circular egg timer. Once the processing is complete it goes back to the webpage.

View 29 Replies

Web Forms :: Modal Form Taking Ages To Load / Gif Whilst The Page Loads?

Nov 25, 2010

I have a modal popup which contains a listview with multiple rows containing multiple controls so the form takes around 6-7 seconds to load, which is fine. What I want to do is display a little animated gif whilst its loading. What I don't understand is from the Page_PreInIt to the Page_SaveStateComplete (which is the first lifecycle method to last i think) it's only a matter of milli seconds.

a) why is it taking so long to load?

b) hows best to show the gif whilst the page loads (if possible)

View 2 Replies

VS 2010 Process Continues Unexpectedly

Feb 10, 2011

Here's a very strange thing happening and I need to know how to stop it. y ASP.NET web page uses a JSON Ajax call to call a Webmethod that initiates a number of processes. In the IDE when I step my code. Because I'm only testing the first part of the process, there should be no action against the Database until the 2nd phase. I place a breakpoint at the start of the 2nd phase and then I actually stop debugging by pressing the usual square button. I then look in a table on the DB and records have been processed that should not get processed until much further into my code. Stepping line by line until my breakpoint does not call any update functions to the Database (just in-case I'd placed a call somewhere that I didn't mean to). Can someone tell me what's going on in the IDE? At my breakpoint, depending on how long I leave it sitting at the breakpoint before I actually stop the debugging process has a direct impact on the amount of records I see changed/added in the database.

View 9 Replies

Javascript - How To Pass A Value From The Serverside Page To A Function In .JS File

Jul 30, 2010

I have to pass a string value from the server side page (.aspx.cs) to a function in .JS page. I need to call the function in JS page from server side page along with string as a parameter.

View 1 Replies

Visual Web Developer 2010 Express Programing Process?

Dec 19, 2010

learn to use visual web developer but encountered a problem. I wat to be able to upgrade something and then as the lv goes up the time to do something goes down.

View 2 Replies

Visual Studio :: Options To Attach To Process Using 2010 Express?

Dec 17, 2010

I have just the Express version of VS2010 so no option to attach to process. I am developing a custom DotNetNuke module which runs fine by itself, but has problems when running once installed as a module in DNN. Hence I need to attach to the DNN process and see what is going on. I don't have DbgCLR.exe as it looks like they stopped including that in .NET 3.5 Framework...and I don't want to risk installing .NET 2.0 framework and mess up my dev environment.

View 1 Replies

How To Debug A Dump File For An Worker Process In Visual Studio 2010

Aug 23, 2010

I've run into a particularly nasty bug where an ASP.NET website attempts to make a call to a WCF service method that sends IIS into a death spiral...that ultimately brings down the associated app pool. It never gets to our log4net code that outputs unhandled exceptions.I was watching w3wp.exe processes spin up and die, so I figured I'd take a dump file on termination using ProcDump from SysInternals using the following command

View 2 Replies

.net - Disabling Authentication For A Single Aspx Page (custom Error Page)?

Mar 29, 2010

I am using a custom error page in IIS 6:<customErrors redirectMode="ResponseRedirect" mode="On" defaultRedirect="Error2.aspx"/>I want to disable authentication for the custom error page because the error being raised is related to an authentication module and I don't want to get into an infinite loop and I want to display a clean error page to the user. I have been trying the following configuration to do that.

<location path="Error2.aspx">
<system.web>
<authentication mode="None"/>

[code]...

View 3 Replies

Visual Studio 2010 Web Developer Express Tools.Attach To Process Is Not Exists?

Apr 24, 2010

I have loaded Web Site from HDD. Now trying attach it to process WebDev.WebServer.EXE. But in Visual Studio 2010 Web Developer Express edition of VS not exist tool Attach To Process. Is it normal? if yes,

View 1 Replies

Disabling Parent Page When Child Page Is Loaded?

Jul 14, 2010

I have to disable our parent page(Complete gray out and non functioning) when child page is loaded. Once I close child page then I could perform any action at my parent page.

I can not use Div at my parent page because it may be many page so i have to controlled it from child page only.

View 2 Replies

Disabling Viewstate Of Whole Page

Dec 31, 2010

Is it possible to make the viewstate false of whole page including all controls at a time.I mean I don't want to set enableviewstate="false" for all controls..In the page directive of the aspx page I have made enableviewstate="false" but still viewstate of all the controls of the is enabled.. And what the EnableViewState="False"actually works within Page directive.

View 3 Replies

C# - Disabling Page Level Cache/Dangers?

Mar 9, 2011

Basically, the reason I am disabling the cache is because I have DevExpress ASPxGridViews, which work great for filtering, sorting, etc. but the client is working with large amounts of data and has requested that we save the filter/sort between page navigations.

The way this is done is via an event that occurs, ClientLayout. The problem is, when the user navigates to a different page, and then clicks the browsers Back button, the events do not fire, and the unfiltered grid is displayed, presumably because this is what was cached. (However a link back to the grid's page causes the page to load properly, and the events to fire.)

The only way I have been able to solve the problem is to disable caching as pointed out in this link:
http://forums.asp.net/p/1304752/2563283.aspx

Obviously, just because I CAN do it, doesn't mean its a good idea. I understand it might affect performance a bit, but can anyone tell me of any other problems that might occur? Maybe AJAX problems or controls giving out unexpected behaviour?

View 1 Replies

Disabling Internet Explorer Properties In An Aspx Page?

Jun 24, 2010

Can I disable all properties of an Internet Explorer when it opens a particular page called "help.aspx".I want that no option should be displayed on that page,just the content of the page which include the image of a person.

View 1 Replies

Web Forms :: Disabling And Enabling Hyperlinks On An Aspx Page?

Sep 5, 2010

I am trying to disable and enable hyperlinks on an aspx page using a button from another aspx page. I have an idea of having two buttons on one page labelled "disable" and "enable". clicking disable should disable a particular link on another page and clicking enable should enable that same link.

View 5 Replies

Open A New Window Whilst Keeping The Old One Alive?

Feb 14, 2011

I gather customer information on a asp.net page (.net 2.0) then I want to open a new page / window which will be passed all the payment details and then connect to our payment service provide to process the payment. Once done the payment window is then close and the original calling window is updated with the result of the payment.

I can do all of the above, except I don't know how to go about opening a 2nd IE window leaving the calling windows on the screen whilst passing parameters and retrieving the result.

My best guess would be:-

Stuff all the parameters into session state var's

Open a new windows / page pickup the session state var's

Process the details

Write the results back to session state var's

Close the new window

Pickup the results from the session stae var's

View 3 Replies

Web Forms :: Disabling Form Elements Until Page Is Rendered Completely

Jul 20, 2013

How to Disabling the form elements until the page is rendered completely.

View 1 Replies

C# - How To Call Silverlight Handler Event And Then Serverside Event On Page Submit

Mar 19, 2010

I have a Silverlight control on page which has a upload control. the silverlight exposes some events such as

StartUpload() => To start the file upload,

StopUpload() => To stop the file upload if running,

CheckFileStatus() => to check the status of the file upload.

The page has aspx Submit button with onclientclick event and ocClick event.

<asp:Button ID="btn_upload" Text="External Upload" runat="server" OnClientClick="Javascript:StartUpload();"
OnClick="btn_upload_Click" />

When I click on the aspx Submit Button, the file selected in Silverlight control should be uploaded and after the completion of upload, the Server side event should get called.

View 1 Replies

Shrink An Image In HTML Whilst Maintaining Its Sharpness?

Dec 14, 2010

I have an image that I use many times. In several cases I want to shrink its size, but obviously it loses sharpness when I do this in HTML.
Is there a way to fix this? The image is located elsewhere and I can't save it locally.

View 4 Replies

SQL Server :: Selecting Data From Multiple Tables Whilst Using A Union Statement?

Nov 29, 2010

I basically have a series of tables from one database that have an identical structure thus making retrieval of all records fairly easy (I just use a UNION ALL statement). However I need a list of values from another table within a different database that contains information regarding the group of the data.

I so far have the following:

SELECT Table1.* FROM Table1 UNION ALL SELECT Table2.* FROM Table2 UNION ALL SELECT Table3.* FROM Table3 UNION SELECT Database.dbo.SRFILE.SR_GROUP FROM Database.dbo.SRFILE INNER JOIN Database.dbo.SRFILE.SRONUMBER = Table1.Incidentx

I keep receiving a unable to parse message however all I need to retreive is the SR_GROUP value but just don't know the correct syntax. Is it actually possible to do this as the structure of SRFILE is not the same as Table1/2/3.

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

Page_load Fires Twice For UpdatePanel Refresh Whilst Having A JQuery Bound Change Event On A Dropdown List?

Sep 11, 2010

I've tried to wrap up my problem with a complete example below - the original problem is part of a jQuery plug-in that I'm writing to extend the behaviour of an ASP.NET ajax application I already have.

The aspx page below has one drop down list which is marked for auto post back. I've also bound a change event using jquery (which ultimately I will swap for a .live() event to maintain the binding after the update panel refresh.) The problem is, when the jQuery event is bound I see two ajax begin requests and page_loads fire but only one ddlTest_OnselectedIndexChanged event. One of the page loads is malformed too - the content-length states it's about 300 bytes long whilst the totalBytes is 0 and form data empty. This does not happen if I bind to the click event of a button.

why the erroneous page_load event is firing ?

[code]....

View 2 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

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







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