Click here to Skip to main content
15,881,044 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionruntime generation of controls and their text Pin
MalarGayu6-Dec-11 10:35
MalarGayu6-Dec-11 10:35 
AnswerRe: runtime generation of controls and their text Pin
Not Active6-Dec-11 11:53
mentorNot Active6-Dec-11 11:53 
GeneralRe: runtime generation of controls and their text Pin
MalarGayu6-Dec-11 12:05
MalarGayu6-Dec-11 12:05 
GeneralRe: runtime generation of controls and their text Pin
Not Active7-Dec-11 4:39
mentorNot Active7-Dec-11 4:39 
GeneralRe: runtime generation of controls and their text Pin
MalarGayu7-Dec-11 11:18
MalarGayu7-Dec-11 11:18 
GeneralRe: runtime generation of controls and their text Pin
MalarGayu7-Dec-11 13:52
MalarGayu7-Dec-11 13:52 
QuestionLong Running Report MVC3 Pin
eddieangel6-Dec-11 8:14
eddieangel6-Dec-11 8:14 
AnswerRe: Long Running Report MVC3 Pin
Wonde Tadesse6-Dec-11 9:51
professionalWonde Tadesse6-Dec-11 9:51 
Here are some possible solution you might consider it.
eddieangel wrote

1. I can pop up the new window, and have it generate the report and then return a view, but if the user closes that window before the report is done there is a problem.

You can use jQuery or javascript that prompts the user to confirm whether or not he/she wants to close the process.
JavaScript
$(window).unload( function () { 
    var result = comfirm("Are you sure you want close this window ?");
    if(result) { // Yes
     // use ajax call to stop the pdf generating method
     $.ajax({
          type: "POST",
          url: "ProcessReportPDF/GeneratePDF", // Note: This controller must contain GeneratePDF method decorate with WebMethod AttributeUsage.For more see this http://www.elijahmanor.com/2011/02/mocking-jquery-ajax-call-in-aspnet-mvc.html
          data: "{}",
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function(msg) {
            alert("Process successfully halted!");
      }
    });
    }
});

eddieangel wrote

2. The view doesn't get returned until the report is done, making it a useless blank window until the report is done where it would be nice to even have it say just something until the report is done.

You can use a jQuery UI progress bar[^] before showing the actual generated report.

Hope it will help you well.
Wonde Tadesse
MCTS

AnswerElectronic Health Record System Pin
fresh12076-Dec-11 4:03
fresh12076-Dec-11 4:03 
GeneralRe: Electronic Health Record System Pin
Dennis E White6-Dec-11 5:30
professionalDennis E White6-Dec-11 5:30 
GeneralRe: Electronic Health Record System Pin
Not Active6-Dec-11 6:53
mentorNot Active6-Dec-11 6:53 
GeneralRe: Electronic Health Record System Pin
emardini8-Dec-11 4:13
emardini8-Dec-11 4:13 
QuestionHelp needed Pin
07navneet5-Dec-11 23:31
07navneet5-Dec-11 23:31 
AnswerRe: Help needed Pin
Richard MacCutchan5-Dec-11 23:52
mveRichard MacCutchan5-Dec-11 23:52 
QuestionBlock Concurrent user Pin
yesu prakash5-Dec-11 21:40
yesu prakash5-Dec-11 21:40 
AnswerRe: Block Concurrent user Pin
R. Giskard Reventlov5-Dec-11 22:12
R. Giskard Reventlov5-Dec-11 22:12 
Questionhow to dynamically add textboxes Pin
MalarGayu5-Dec-11 17:23
MalarGayu5-Dec-11 17:23 
AnswerRe: how to dynamically add textboxes Pin
uspatel5-Dec-11 19:19
professionaluspatel5-Dec-11 19:19 
AnswerRe: how to dynamically add textboxes Pin
Morgs Morgan6-Dec-11 20:09
Morgs Morgan6-Dec-11 20:09 
Questiongenerating specific format Pin
sk_ko5-Dec-11 15:11
sk_ko5-Dec-11 15:11 
AnswerRe: generating specific format Pin
Andy_L_J5-Dec-11 21:56
Andy_L_J5-Dec-11 21:56 
QuestionUnzip, Zip file in asp.net Pin
Mugdha_Aditya5-Dec-11 3:02
Mugdha_Aditya5-Dec-11 3:02 
AnswerRe: Unzip, Zip file in asp.net Pin
DigiOz Multimedia5-Dec-11 4:48
DigiOz Multimedia5-Dec-11 4:48 
AnswerRe: Unzip, Zip file in asp.net Pin
Jon Myers5-Dec-11 11:01
Jon Myers5-Dec-11 11:01 
QuestionOn Displaying the Records Retrieved Through Data Reader Pin
FerdinandDLDR2-Dec-11 7:33
FerdinandDLDR2-Dec-11 7:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.