473,508 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

New windows

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

Nov 18 '05 #1
3 928
mark <dm********@tin.it> typed:
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/de...uthor/dhtml/re
ference/methods/open_0.asp)
- Insert it using the Page.RegisterClientScriptBlock at run-time
(http://msdn.microsoft.com/library/de...-us/cpref/html
/frlrfSystemWebUIPageClassRegisterClientScriptBlock Topic.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/de...-us/cpref/html
/frlrfsystemwebuiwebcontrolsdatagriditemeventhandle rclasstopic.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 ;-)

--
Davide Vernole
MVP ASP/ASP.NET
Microsoft Certified Solution Developer
Nov 18 '05 #2


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!
Nov 18 '05 #3
You can check this article to, here i have opened a popup window in onclick
of a button in datagrid.
http://www.microsoft.com/india/msdn/...ndarinASP.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"mark" <dm********@tin.it> wrote in message
news:KR********************@news3.tin.it...
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

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
15207
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
1
3435
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
3906
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
0
30178
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
7132
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5640
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.