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