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. Add Multiple Hyperlink control dynamically on button_click event

Add Multiple Hyperlink control dynamically on button_click event

Scheduled Pinned Locked Moved ASP.NET
helpannouncement
2 Posts 2 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.
  • H Offline
    H Offline
    hemrk
    wrote on last edited by
    #1

    I want to browse and choose the filename and set the navigate url property of hyperlink control to that file name dynamically. I can create one hyperlink on button_click event. but 2nd time when i click on button , i can able to select file name but i can not able to create hyperlink control with different id so it append text on hyperlink1 so when i click on hyperlink it is saying can not open this page as it has 2 file names. please help me ..i am trying with ajax update panel..but not able to solve this problem. i am adding hyperlink control to placeholder. hemrk

    S 1 Reply Last reply
    0
    • H hemrk

      I want to browse and choose the filename and set the navigate url property of hyperlink control to that file name dynamically. I can create one hyperlink on button_click event. but 2nd time when i click on button , i can able to select file name but i can not able to create hyperlink control with different id so it append text on hyperlink1 so when i click on hyperlink it is saying can not open this page as it has 2 file names. please help me ..i am trying with ajax update panel..but not able to solve this problem. i am adding hyperlink control to placeholder. hemrk

      S Offline
      S Offline
      student_rhr
      wrote on last edited by
      #2

      What does your code look like that you are using to create the hyperlink? You can put a Panel control on your page on the click event do something like

      MyPanel.Controls.Add(new LiteralControl(String.Format("{0}", strFileUploadPath));

      I havent tested this yet but it should work ... let me know if this helps or not.

      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