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
Similar Messages:
Jun 24, 2010
The following code works fine for disabling content page controls, but how do I disable master page controls?
public void DisableControls(Control control,bool isEnable)
{
if (control.HasControls())
{
foreach (Control c in control.Controls)
{
DisableControls(c, isEnable);
}
}
else
{
if (control is IPostBackDataHandler && !(control is IPostBackEventHandler))
{
if (control is WebControl)
{
((WebControl)control).Enabled = isEnable;
}
else if (control is HtmlControl)
{
((HtmlControl)control).Disabled = !isEnable;
}
}
}
}
View 2 Replies
Jan 24, 2011
I have 3 links in my web site master page, every link go to another page. When the client be in any page of it I want to disable its link to prevent reloading the same page on itself and loosing the data which the client enter (Text Box, Radio Button, Combo Box...). How to do this?
View 2 Replies
Jan 7, 2014
I have a page that performs some server side processing before redirecting to PayPal. The page has a gif image to indicate that activity is occurring. It is appearing as an animated image at design time but as a still image at run time. How can I get the gif image to animate at run time?
View 3 Replies
Sep 15, 2011
I have a GridView where user can select multiple jobs to be processed. When user hits the 'Run" button, selected jobs are being processed, at this point I would like to show a message as the application steps through each job, like "Now Processing ABC", "Now processing DEF" etc
Is there an easy way to do this (from code behind). Could I force a postback and have a label / text box being displayed with different messages ???
View 7 Replies
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
Dec 16, 2010
Situation:
1) Click on 'Check' button and the button will disable
2) Run a processing code(for checking) and once it is done, navigate to a new page(NewPage2).
Here are 2 code situations (1):
[Code]....
and if I do this way (2),:
[Code]....
it will navigate to NewPage2.aspx, but during the execution of the processing code, ButtonCheck control will not be disabled as the Click Event has not finished, and I want it to disable during the checking process. If the 1st option is executed, it will throw to me "Response is not available in this context."? HttpContext is null for (1). In my opinion, I think that the navigation does not recognise the response object as it is in a thread and has exited out of the buttoncheck event. But I'm still not sure why.
how to disable the button and run processing code during the click event and be able to navigate to a new page?
View 2 Replies
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
Feb 9, 2010
I have a gridview that has selection enabled but i dont want the end user to be able to select the top row is there any way to turn selection off for this row only?
View 6 Replies
Mar 1, 2012
I have the following code at the bottom of my master page:-
Code:
<div id="overlay">
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Disable.gif" style="width: 100%; height:100%; opacity:0.6;filter:alpha(opacity=60)"/>
<div id="IconImage">
<asp:Image ID="Image2" runat="server" ImageUrl="~/Images/loader.gif"/>
</div>
</div>
And here is my CSS:-
Code:
#overlay {
visibility: hidden;
position: absolute;
left: 0px;
top: 0px;
width:100%;
[Code] ....
Here is my javascript:-
Code:
function overlay() {
el = document.getElementById("overlay");
el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
}
And finally here is my code to trigger the overlay function which is called when I build my data:-
Code:
<asp:ImageButton ID="ImageButton1" runat="server" style="Height:50px; Width: 50px;" ImageUrl="~/Images/Printer.png" ToolTip="Print Report" OnClientClick="overlay()"/>
Everything works fine except my animated gif does not animate. If I load the gif in IE is animates.
View 5 Replies
Mar 18, 2010
We are in the process of building a huge site. We are contemplating on whether to do the processing of HTML at server side (ASP .Net) or at the client side. For example we have HTML files which acts like templates for the generation of tabs. Is it better for the server side to get hold of content section (div) of HTML load the appropriate values and send the updated HTML to the browser or is it better that a chunk of data is passed onto client and make Javascript do the work?
View 2 Replies
Aug 25, 2010
I have a situation where in, one of the form has to show some processing message on the Page and then automatically redirect to another page.
View 5 Replies
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
Mar 31, 2011
I am building a ASP.NET page which is an Sales Order Processing Form I have two Last issues that due to my lack of experience in the language I am struggling with hopefully you can help.Issue 1 - I have a field <asp:DropDownList runat="server" ID="txtProduct"></asp:DropDownList> that is pulling from a database table Called Products to populate its options list. I need to automatically pull the SalesPrice value and insert it into the txtUnitAmount field based on the selection of the Product.Issue 2 - Once the form has been filled and there are records in the DataTable I then need to insert all of the rows into the Database table SalesOrders when a user clicks a button.
[code]...
View 1 Replies
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
Jun 29, 2010
I have a Button inside an UpdatePanel. How can I lock the page while the Button is clicked?
View 2 Replies
Feb 25, 2010
I'm using CustomValidator with Page.IsValid=false but for some reason the FormView control still process the insertion.
View 10 Replies
Sep 18, 2010
My database insertion is working good with normal asp.net page but when it is a content page of master page, stucking me to insert data in database.
take the advantage of SQL Server Profiler to accomplish it, but I don't know anything about sql profiler. I only know about stored procedures but don't know what is sql server profiler?
My Code Behind
[Code]....
View 9 Replies
Jan 19, 2010
We need the ability to send out automatic emails when certain dates occur or when some business conditions are met. We are setting up this system to work with an existing ASP.NET website. I've had a chat with one of the other devs here and had a discussion of some of the issues.Things to note:All the information we need is already modelled in the ASP.NET websiteThere is some business-logic that is required for the email generation which is also in the website alreadyWe decided that the ideal solution was to have a separate executable that is scheduled to run overnight and do the processing and emailing. This solution has 2 main problems:If the website was updated (business logic or model) but the executable was accidentally missed then the executable could stop sending emails, or worse, be sending them based on outdated logic.We are hoping to use something like this to use UserControls to template the emails, which I don't believe is possible outside of an ASP.NET websiteThe first problem could have been avoided with build and deployment scripts (which we're looking into at the moment anyway), but I don't think we can get around the second problem.So the solution we decided on is to have an ASP.NET page that is called regularly by SSIS and to have that do a set amount of processing (say 30 seconds) and then return. I know an ASP.NET page is not the ideal place to be doing this kind of processing but this seems to best meet our requirements. We considered spawning a new thread (not from the worker pool) to do the processing but decided that if we did that we couldn't use the page returned to signify a success or failure. By processing within the page's life-cycle we can use the page content to give an indication of how the processing went.So the question is:re there
View 6 Replies
Nov 14, 2010
I have a html table. i need to search the table dynamically on the key press of search textbox and apply background to TRs.
I have a jquery to do the functionality. but the page is getting hangged for atleast 5 seconds when there is more number of rows.
I have updater inmage to show while preocessing, image is displayed but when the proccessing javascript the image got structed.
View 5 Replies
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
Feb 18, 2010
I was wondering if there was anyway to populate the page with asp.net code like "<asp:Repeater ID="rptProducts" runat="server">MORE_CODE</asp:Repeater>" and then have the server use that code on the page. I'm not sure if i'm making sense. Like writing the asp.net front end code to the page dynamically before the .net engine generates the output html.
View 3 Replies
Jan 11, 2011
I'm trying to use a java servlet in a 3rd party tool's web interface (CA service desk) to invoke it's download file functionality using a webclient in vb.net. The trouble is the text stream from response is markup and not the acutual text file stream.
It's like the page is redirecting to another page which actually presents the file for downloading. I have no idea what the redirected page URL is.
Is there a way I can process this redirected page in order to get at the download using a system.net.webclient?
View 1 Replies
Mar 16, 2010
I want to submit the form with post method, but before that i want to do some processing in CS file, after the processing is done then the form will be submitted in post manner like <form method="post">
View 7 Replies
Oct 6, 2010
I have at text box with a validator control which works fine (prevents letters being entered, only numbers)
However once it displays the error message I am unable to do anything else on the page, links don't work etc. I have to close down the window and start the website agin.
View 3 Replies