Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8316413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:21:30+00:00 2026-06-08T21:21:30+00:00

I have problem with my web application. I am using MVC3 and not so

  • 0

I have problem with my web application. I am using MVC3 and not so familiar with it.

I am making functionality for the user to choose application papers to print. I have functions that return stream for the pdf files. But sending data form UI is the trouble. On the page there is button [print] when i push it an UI dialog appears with checkboxes for the user to choose applications. The confirm button should be confirmation on printing.

I am having problem sending data to my controller and return new tab/window with the pdf. I need to send 3 variables to the controller. String that keep info about what to print, id of user and one other variable. I´ve tried AJAX but thats not working. It seems that with AJAX i cannot return pdf in another tab (please correct if i am wrong)

Can someone give me an idea how i can solve this problem? Good solution to send data from dialog window to controller so i can return pdf files in new tab or window.

Edit:

public ActionResult GetApplication(ApplicationData appldata)
{
      var application = GetApplicationPapers(appldata.ShowApplOne, appldata.ShowApplTwo); // Applications comes from report server so true or false to determine whether the pdf contains the report or not.
Response.AddHeader("Content-Disposition", "inline; filename=application.pdf");
return new FileStreamResult(application, "application/pdf");
}

This is how its looks like know. Need to get the values from checkboxes from UI dialog to determine what papers are in the stream.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:21:31+00:00Added an answer on June 8, 2026 at 9:21 pm

    Can we see what the action method in your controller that you are trying to POST to looks like? You could essentially just use a normal ActionLink method such as:

    @Html.ActionLink("LinkText", "ActionMethodName", 
          new {var1 = val1, var2 = val2, var3 = val3}, new {target = "_blank"})
    

    Where the ‘varX’ is the name of your parameters in your action method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with cache in my asp.net mvc3 application. My code using System.Web.Caching;
I am using a javax.servlet.http.HttpServletRequest to implement a web application. I have no problem
I'm using Rational Application Developer to create some web services. The problem I have
I have a problem, which is not easily described. I'm writing a web application
I have an 'access denied' problem on an ASP.NET web application, where the user
Hi have this j2ee web application developed using spring framework. I have a problem
I have develop a web application using MVC3+EF4.1 but for urgent reason, I have
We have this really weird problem in a Web Application when using ActiveRecord 2.0
I have developed a web application using using servlet and JSP. I am not
I've written a simple web application using asp.net mvc3 and I have a login

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.