Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem displaying different pdf documents one at a time on an Iframe

Problem displaying different pdf documents one at a time on an Iframe

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netsysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LucBite
    wrote on last edited by
    #1

    I have a dropdownlist and based on its selected value I want to display the appropriate pdf document. This is the code under the dropdownlist protected void ddlBasicConcept_SelectedIndexChanged(object sender, EventArgs e) { if (ddlBasicConcept.SelectedValue.Equals("Variable")) { ShowPdf1.Visible = true; ShowPdf1.FilePath = "file///C:/Documents and Settings/lingwatil/My Documents/VisualStudio2008/websites/LearningConceptsB/asp.net_tutorial01_Basics_cs.pdf"; showpdf1 is my Iframe and this is the ERROR I'm getting, please help. Server Error in '/LearningConceptsB' Application. -------------------------------------------------------------------------------- HTTP Error 400 - Bad Request. -------------------------------------------------------------------------------- Version Information: ASP.NET Development Server 9.0.0.0

    ML Lingwati

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups