O
oleole
Hello,
I'm getting hard time solving a problem.
I have a datagrid with checkboxes. Based on the rows checked, when the
user click on link (named export) i want to open a window and export
the data in Word, Excel, etc.
So I need to post back to server, check the rows checked, form the url
with the appropriate querystring (with IDs of each checked rows) and
then open window with that URL.
I've tried several ways with no luck. LinkButton with attributes
"onclick" but it will work then next time you press the link, an
anchor with onserverclick and onclick: onserverclick saves the IDs in
a session var, and onclick opens a window with the "nude" link
(problem is onclick is called *before* onserverclick), etc.
The only viable way is to add a javascript code in the page that open
the window, but it's completely stupid since if the user goes back, a
window will open again, export and open Excel...
I'm really stuck, I'm about to forget the "new window" concept...
except if someone has a suggestion
Thanks!
lamazzi
I'm getting hard time solving a problem.
I have a datagrid with checkboxes. Based on the rows checked, when the
user click on link (named export) i want to open a window and export
the data in Word, Excel, etc.
So I need to post back to server, check the rows checked, form the url
with the appropriate querystring (with IDs of each checked rows) and
then open window with that URL.
I've tried several ways with no luck. LinkButton with attributes
"onclick" but it will work then next time you press the link, an
anchor with onserverclick and onclick: onserverclick saves the IDs in
a session var, and onclick opens a window with the "nude" link
(problem is onclick is called *before* onserverclick), etc.
The only viable way is to add a javascript code in the page that open
the window, but it's completely stupid since if the user goes back, a
window will open again, export and open Excel...
I'm really stuck, I'm about to forget the "new window" concept...
except if someone has a suggestion
Thanks!
lamazzi