Click here to Skip to main content
15,510,678 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCall script Pin
Rupert Koan8-Aug-11 2:32
Rupert Koan8-Aug-11 2:32 
AnswerRe: Call script Pin
Not Active8-Aug-11 2:56
mentorNot Active8-Aug-11 2:56 
GeneralRe: Call script Pin
Rupert Koan8-Aug-11 4:26
Rupert Koan8-Aug-11 4:26 
QuestionValidate textbox with RequiredFieldValidator only if CheckBox is unchecked Pin
Naunt8-Aug-11 0:48
Naunt8-Aug-11 0:48 
AnswerRe: Validate textbox with RequiredFieldValidator only if CheckBox is unchecked Pin
Not Active8-Aug-11 3:00
mentorNot Active8-Aug-11 3:00 
AnswerRe: Validate textbox with RequiredFieldValidator only if CheckBox is unchecked Pin
Shameel8-Aug-11 6:50
professionalShameel8-Aug-11 6:50 
AnswerRe: Validate textbox with RequiredFieldValidator only if CheckBox is unchecked Pin
Naunt9-Aug-11 18:35
Naunt9-Aug-11 18:35 
QuestionHow to get data from generic handler after file download Pin
Dominick Marciano7-Aug-11 16:36
professionalDominick Marciano7-Aug-11 16:36 
Currently I have a page with a button on it. When the button is clicked a query string is passed to generic handler. The purpose of this handler is to generate letters for individual students that were in a class (the query string is the class id). As the files are generated they are added to a zip file so the user only has to download one file. Everything works perfectly fine including the downloading of the file.

However my problem is I need a way to know when the handler has finished and to retrieve data from it. Specifically, as the handler is looping through all the students it may find that some students do not have all the necessary data saved in the database in order to generate the appropriate letter. In this case the students name is save in a List(Of String) so that it can inform the user, but continues creating the rest of the letters.

I have tried using HttpContext.Current.Items.Add("BlankStudents", BlankStudentRecords) and HttpContext.Current.Session("BlankStudents") = BlankStudentRecords in order to save the list. The latter did not work because it says the object is not set to an instance and I'm assuming it is referring to the session. The former did work, however the ASP page that calls the handler does not post back so it can't try and read from the HttpContext.

I tried using a redirect but I get a "Cannot redirect after HTTP headers have been sent" because this redirect is being done after the zip file is transmitted to the client. What would be the best way to accomplish this? Would it be better to add the zip file and the List(Of String) both to the HttpContext.Current.Items and then redirect back to the page and initiate the download from there, or is there an even better and efficient method.

Thanks in advance for any help or suggestions.
AnswerRe: How to get data from generic handler after file download Pin
Parwej Ahamad7-Aug-11 20:40
professionalParwej Ahamad7-Aug-11 20:40 
Questionhow can i create multi language page Pin
apadana_19895-Aug-11 13:53
apadana_19895-Aug-11 13:53 
AnswerRe: how can i create multi language page Pin
Dr.Walt Fair, PE5-Aug-11 15:03
professionalDr.Walt Fair, PE5-Aug-11 15:03 
AnswerRe: how can i create multi language page Pin
Orcun Iyigun5-Aug-11 21:51
Orcun Iyigun5-Aug-11 21:51 
QuestionPlease wait or progress baar in user control using jquery Pin
NEMEE5-Aug-11 5:51
NEMEE5-Aug-11 5:51 
AnswerRe: Please wait or progress baar in user control using jquery Pin
Not Active5-Aug-11 7:17
mentorNot Active5-Aug-11 7:17 
AnswerRe: Please wait or progress baar in user control using jquery Pin
Wonde Tadesse6-Aug-11 6:01
professionalWonde Tadesse6-Aug-11 6:01 
Questioni want to use url rewriting by using iis setting. Pin
buffering834-Aug-11 20:19
buffering834-Aug-11 20:19 
AnswerRe: i want to use url rewriting by using iis setting. [modified] Pin
the headless nick5-Aug-11 2:54
professionalthe headless nick5-Aug-11 2:54 
AnswerRe: i want to use url rewriting by using iis setting. Pin
Bernhard Hiller7-Aug-11 21:28
Bernhard Hiller7-Aug-11 21:28 
QuestionPage_Load event fire when back(click browser's back button ) from another page Pin
Naunt4-Aug-11 17:10
Naunt4-Aug-11 17:10 
AnswerRe: Page_Load event fire when back(click browser's back button ) from another page Pin
thatraja4-Aug-11 21:02
professionalthatraja4-Aug-11 21:02 
GeneralRe: Page_Load event fire when back(click browser's back button ) from another page Pin
Naunt4-Aug-11 21:31
Naunt4-Aug-11 21:31 
AnswerRe: Page_Load event fire when back(click browser's back button ) from another page Pin
Shameel4-Aug-11 23:25
professionalShameel4-Aug-11 23:25 
GeneralRe: Page_Load event fire when back(click browser's back button ) from another page Pin
Wonde Tadesse6-Aug-11 8:25
professionalWonde Tadesse6-Aug-11 8:25 
GeneralRe: Page_Load event fire when back(click browser's back button ) from another page Pin
Naunt7-Aug-11 19:21
Naunt7-Aug-11 19:21 
AnswerRe: Page_Load event fire when back(click browser's back button ) from another page Pin
thatraja7-Aug-11 20:10
professionalthatraja7-Aug-11 20:10 

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.