We help IT Professionals succeed at work.
Get Started

C# Website Link Problem

DB_Fury asked
Last Modified: 2012-05-09
I have a C# website with the links should below.  The links are LinkButtons.  I currently have it that when the click on the link it sets the url and I have some C# code in the event that says use javascript and redirect to the url the i just set all the parameters to in a new window.  The only way i can get these to show in IE is to hold control when i click on the link until the pdf is displayed.  is there a better way to display a pdf report by clicking a link instead of using C# javascript (which i included)?
Page.ClientScript.RegisterStartupScript(this.GetType(), "newPage", "<script>window.open('" + url + "');</script>");

Open in new window

Watch Question
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE