New windows

  • Thread starter Thread starter mark
  • Start date Start date
M

mark

I have this problem and I hope someone can solve it.
thanks in advance.

when I click on a button over a datagrid, i need to open a new windows
with in it a word document that is located on a directory joined to the
server.

how can I do?

Marco Dell'Oca
Milano Italy
 
mark said:
I have this problem and I hope someone can solve it.
thanks in advance.

when I click on a button over a datagrid, i need to open a new windows
with in it a word document that is located on a directory joined to
the server.

how can I do?

Marco Dell'Oca
Milano Italy

You can do that following this steps:

- Create a client script to open a new window using a script language like
Javascript
(http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/re
ference/methods/open_0.asp)
- Insert it using the Page.RegisterClientScriptBlock at run-time
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html
/frlrfSystemWebUIPageClassRegisterClientScriptBlockTopic.asp)
- Refer this script from the onclick attribute of the datagrid button. This
can be done during the ItemDataBound Event
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html
/frlrfsystemwebuiwebcontrolsdatagriditemeventhandlerclasstopic.asp)
- Set a Session variable to store the file name of the file to open
- Create a page with some algorithms to open the file or display a message
if cannot open it.
......try your solution

P.S.
I'm seeing you are italian. If you like you could use this newsgroup
public.microsoft.it.dotnet.asp to post your question in italian ;-)
 
Many thanks for the help and thanks for your indication for the Italien
newsgroup, but ... I have to practise my english

Marco Dell'Oca
Milano Italy

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Back
Top