Hi DAN,
write a javascript method which build the URL and then pass the same in the
window,.open method it will look something like below.
<script>
function PopUpWindow()
{
var sVal = ListBox1.options[ListBox1.Selectedindex].value;
var sURL = 'popup.aspx?id=' + sVal ;
window.open(sURL);
}
</script>
and in the Code behind page_load event for the ListBox add the below code
ListBox1.Attribuites.Add("onchange","PopUpWindow() ");
thats all everything works fine later
---------------------
Praveen K
---
"Dan Nash" wrote:
Hi
I want to be able to click an item in a list, and a new window popup.
Obviously i would use window.open in javascript within a RegisterClientScript
thingy.
However, i want to pass the id of the selected list item to the new popup
window. SO presumably i cant use RegisterClientScript?
How would I go about this, so I can call
private void ListBox_Click
{
window.open(popup.aspx?id=listbox_selected
}
Any help aprpeciated!
Cheers
Dan