If your flag is in an ASP variable, you can do this :-
Select case flag
Case 1
Response.redirect "trainingmanual1.doc"
Case 2
Response.redirect "trainingmanual2.doc"
End select
Also, if the flag is always going to be the number in the filename (i.e.
flag 1 will always open trainingmanual*1*.doc) then you can simplify it
to this :-
Response.redirect "trainingmanual" & flag & ".doc"
Is this what you're trying to do?
As for the dialog, this usually depends on how the user's browser is
configured.
Dan
-----Original Message-----
From: kpraoasp [mailto:[EMAIL PROTECTED]
Sent: 18 November 2004 17:57
To: [EMAIL PROTECTED]
Subject: [ASP] Opening a word document.
I am trying to create an asp page that would open a particular word
document based on a flag i.e if flag = 1 then open
TrainingManual1.doc else if flag = 2 then open TrainingManual2.doc
and so on so forth... Is there a quick way to do it or should i
create links for each document
i.e.
Header1
TrainingManual1.link --> TrainingManual1.doc
TrainingManual2.link --> TrainingManual2.doc
Also, whenever i try to open a doc file, there's a msgbox displayed
asking whether i want to open, save, close or more info. Is there a
way to disable that?
Thanks,
KP
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [EMAIL PROTECTED]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~->
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [EMAIL PROTECTED]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/