Click here to Skip to main content
15,886,026 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Call script Pin
Rupert Koan8-Aug-11 3:26
Rupert Koan8-Aug-11 3:26 
QuestionValidate textbox with RequiredFieldValidator only if CheckBox is unchecked Pin
Naunt7-Aug-11 23:48
Naunt7-Aug-11 23:48 
AnswerRe: Validate textbox with RequiredFieldValidator only if CheckBox is unchecked Pin
Not Active8-Aug-11 2:00
mentorNot Active8-Aug-11 2:00 
AnswerRe: Validate textbox with RequiredFieldValidator only if CheckBox is unchecked Pin
Shameel8-Aug-11 5:50
professionalShameel8-Aug-11 5:50 
AnswerRe: Validate textbox with RequiredFieldValidator only if CheckBox is unchecked Pin
Naunt9-Aug-11 17:35
Naunt9-Aug-11 17:35 
QuestionHow to get data from generic handler after file download Pin
Dominick Marciano7-Aug-11 15:36
professionalDominick Marciano7-Aug-11 15: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 19:40
professionalParwej Ahamad7-Aug-11 19:40 
Questionhow can i create multi language page Pin
apadana_19895-Aug-11 12:53
apadana_19895-Aug-11 12:53 
AnswerRe: how can i create multi language page Pin
Dr.Walt Fair, PE5-Aug-11 14:03
professionalDr.Walt Fair, PE5-Aug-11 14:03 
AnswerRe: how can i create multi language page Pin
Orcun Iyigun5-Aug-11 20:51
Orcun Iyigun5-Aug-11 20:51 
QuestionPlease wait or progress baar in user control using jquery Pin
NEMEE5-Aug-11 4:51
NEMEE5-Aug-11 4:51 
AnswerRe: Please wait or progress baar in user control using jquery Pin
Not Active5-Aug-11 6:17
mentorNot Active5-Aug-11 6:17 
AnswerRe: Please wait or progress baar in user control using jquery Pin
Wonde Tadesse6-Aug-11 5:01
professionalWonde Tadesse6-Aug-11 5:01 
Questioni want to use url rewriting by using iis setting. Pin
buffering834-Aug-11 19:19
buffering834-Aug-11 19:19 
AnswerRe: i want to use url rewriting by using iis setting. [modified] Pin
the headless nick5-Aug-11 1:54
professionalthe headless nick5-Aug-11 1:54 
AnswerRe: i want to use url rewriting by using iis setting. Pin
Bernhard Hiller7-Aug-11 20:28
Bernhard Hiller7-Aug-11 20:28 
QuestionPage_Load event fire when back(click browser's back button ) from another page Pin
Naunt4-Aug-11 16:10
Naunt4-Aug-11 16:10 
AnswerRe: Page_Load event fire when back(click browser's back button ) from another page Pin
thatraja4-Aug-11 20:02
professionalthatraja4-Aug-11 20:02 
GeneralRe: Page_Load event fire when back(click browser's back button ) from another page Pin
Naunt4-Aug-11 20:31
Naunt4-Aug-11 20:31 
AnswerRe: Page_Load event fire when back(click browser's back button ) from another page Pin
Shameel4-Aug-11 22:25
professionalShameel4-Aug-11 22:25 
GeneralRe: Page_Load event fire when back(click browser's back button ) from another page Pin
Wonde Tadesse6-Aug-11 7:25
professionalWonde Tadesse6-Aug-11 7:25 
GeneralRe: Page_Load event fire when back(click browser's back button ) from another page Pin
Naunt7-Aug-11 18:21
Naunt7-Aug-11 18:21 
AnswerRe: Page_Load event fire when back(click browser's back button ) from another page Pin
thatraja7-Aug-11 19:10
professionalthatraja7-Aug-11 19:10 
QuestionDotnetcharting Chart Event on Bar Pin
Anubhava Dimri3-Aug-11 19:48
Anubhava Dimri3-Aug-11 19:48 
QuestionArticle store for CMS site Pin
Ashok Nalam3-Aug-11 18:55
Ashok Nalam3-Aug-11 18:55 

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.