F
Fueled
Hi everyone!
I've made quite a lot of research on this, and I've tried a couple of
proposed solutions. Nothing has worked for me, but I feel there's not
much I'm missing. So I'm turning to this group and its experts for
answers.
So :
- I've got a main page (main.aspx)
- On this page, I've got a button (btnArchive), on whose click I
dynamically add a UserControl (archive.ascx) to the main page.
- Now on the PageLoad of the UserControl, I dynamically add several
LinkButtons.
- My dilemma lies here : on the click of one of these LinkButtons, I
wish to tell the main page to load a different UserControl (depending
on which LinkButton was clicked).
Thus, I imagine I need the LinkButtons to raise an event on the main
form and somehow pass the LinkButton's ID to the raised event, in order
to process the right UserControl load.
Hope I've been clear on this one. If anyone could help me with this,
I'd greatly appreciate. I could also post some sample code if it could
help.
Also, I'm programming in VB.NET, but I don't mind anyone anwsering with
C# ; I'll figure the translation.
Thanks and good day!
Simon.
I've made quite a lot of research on this, and I've tried a couple of
proposed solutions. Nothing has worked for me, but I feel there's not
much I'm missing. So I'm turning to this group and its experts for
answers.
So :
- I've got a main page (main.aspx)
- On this page, I've got a button (btnArchive), on whose click I
dynamically add a UserControl (archive.ascx) to the main page.
- Now on the PageLoad of the UserControl, I dynamically add several
LinkButtons.
- My dilemma lies here : on the click of one of these LinkButtons, I
wish to tell the main page to load a different UserControl (depending
on which LinkButton was clicked).
Thus, I imagine I need the LinkButtons to raise an event on the main
form and somehow pass the LinkButton's ID to the raised event, in order
to process the right UserControl load.
Hope I've been clear on this one. If anyone could help me with this,
I'd greatly appreciate. I could also post some sample code if it could
help.
Also, I'm programming in VB.NET, but I don't mind anyone anwsering with
C# ; I'll figure the translation.
Thanks and good day!
Simon.