N
Nevyn Twyll
I have a web form, with c# code-behind.
I have a listbox on the form, bound to a dataset.
I want to have 2 buttons/hyperlinks/etc. beside the listbox.
When they are clicked, I want to launch a popup form, passing it some
information from the listbox (record id) and the linked information.
If I could show the data in place of the page showing, I know how to get the
data and use Response.Redirect().
Since it needs to be a popup, I know how I could use a javascript, such as:
window.open("mynextpage.aspx","_blank", "height=300, width=450,
left=100, top=100, " + "location=no, menubar=no, resizable=no, " +
"scrollbars=no, titlebar=no, toolbar=no", true);
I know that in my PageLoad() method, I could add an Onclick() method to a
hyperlink, using the .
But I don't want to do a roundtrip every time the user clicks an entry in
the listbox.
So is there some way a hyperlink button could, in the code-behind put a
javascript command into the html re-emited to the user?
Thanks!
I have a listbox on the form, bound to a dataset.
I want to have 2 buttons/hyperlinks/etc. beside the listbox.
When they are clicked, I want to launch a popup form, passing it some
information from the listbox (record id) and the linked information.
If I could show the data in place of the page showing, I know how to get the
data and use Response.Redirect().
Since it needs to be a popup, I know how I could use a javascript, such as:
window.open("mynextpage.aspx","_blank", "height=300, width=450,
left=100, top=100, " + "location=no, menubar=no, resizable=no, " +
"scrollbars=no, titlebar=no, toolbar=no", true);
I know that in my PageLoad() method, I could add an Onclick() method to a
hyperlink, using the .
But I don't want to do a roundtrip every time the user clicks an entry in
the listbox.
So is there some way a hyperlink button could, in the code-behind put a
javascript command into the html re-emited to the user?
Thanks!