N
Nevyn Twyll
I have a DataList; in the DataList's [EditItemTemplate], I have a LinkButton
and a few listboxes.
When the LinkButton is pressed, I need to get the ID of the selected item in
one of the Listbox controls.
Then I want to launch another web page in a seperate window, using that ID.
In the header of the web page, I have a javascript function
LaunchMyWindow(iID) that launches that window.
For a normal LinkButton Control, I could just use
LinkButton.Attributes.Add() in the code-behind Page.OnInit() to add a call
to the javascript function. But:
1) I can't access the LinkButton from OnInit(), because it's inside the
DataList, and
2) (more importantly) the LinkButton needs to get an ID out of the listbox.
I know I could use the ItemCommand on the DataList in the code-behind to
Redirect to the page I want to go to, but I need it to be a popup....
Help?
and a few listboxes.
When the LinkButton is pressed, I need to get the ID of the selected item in
one of the Listbox controls.
Then I want to launch another web page in a seperate window, using that ID.
In the header of the web page, I have a javascript function
LaunchMyWindow(iID) that launches that window.
For a normal LinkButton Control, I could just use
LinkButton.Attributes.Add() in the code-behind Page.OnInit() to add a call
to the javascript function. But:
1) I can't access the LinkButton from OnInit(), because it's inside the
DataList, and
2) (more importantly) the LinkButton needs to get an ID out of the listbox.
I know I could use the ItemCommand on the DataList in the code-behind to
Redirect to the page I want to go to, but I need it to be a popup....
Help?