Hello All,
I have select case statement where last case is directly breaking and not executing the return statement
public Byte[] BuildPDF
{
Case A:
/// Some code...
Case B:
/// Some code...
Case C:
pdfBytes = pdfConverter.GetPdfBytesFromHtmlString(sbFinalFormattedData.ToString());
// send the generated PDF document to client browser
// get the object representing the HTTP response to browser
HttpResponse httpResponse = HttpContext.Current.Response;
// add the Content-Type and Content-Disposition HTTP headers
httpResponse.AddHeader("Content-Type", "application/pdf");
httpResponse.AddHeader("Content-Disposition", String.Format("inline; filename=GettingStarted.pdf; size={0}", pdfBytes.Length.ToString()));
// write the PDF document bytes as attachment to HTTP response
httpResponse.BinaryWrite(pdfBytes);
// Note: it is important to end the response, otherwise the ASP.NET
/ ...
Go to the complete details ...