Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • Last Modified:

asp.net open vCard link not display the text in browser

Hi I have a link to a vCard but if you click it in ie it displays the text ov the vCard. How do i get it to open it instead?
0
taz8020
Asked:
taz8020
  • 5
  • 5
1 Solution
 
David Johnson, CD, MVPOwnerCommented:
You want the user to download the vcard?

Check your mime types
text/x-vcard .vcf
0
 
taz8020Author Commented:
How do you do it
0
 
David Johnson, CD, MVPOwnerCommented:
which operating system and which version of iis ? or are you using apache?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
taz8020Author Commented:
hi yes its .net4 and iis 7, So if i alter the mime types it will auto download the file?
0
 
David Johnson, CD, MVPOwnerCommented:
if the user clicks on it yes the user will download the file
0
 
taz8020Author Commented:
do i alter it in the web.config file and if so how?
0
 
David Johnson, CD, MVPOwnerCommented:
http://www.screencast.com/t/UKO6PzxXpeSJ
older
<mimeMap fileExtension=".vcf" mimeType="text/plain" />
<mimeMap fileExtension=".vcard" mimeType="text/plain" />

newest rules

<mimeMap fileExtension=".vcf" mimeType="text/vcard" />
<mimeMap fileExtension=".vcard" mimeType="text/vcard" />


http://en.wikipedia.org/wiki/VCard
0
 
taz8020Author Commented:
Hi thanks for the video, there was no sound though, do i delete it or edit it?
0
 
David Johnson, CD, MVPOwnerCommented:
edit it.

No sound because I am deaf
0
 
taz8020Author Commented:
Amazing thank you so much, sorry was doing this late last night and did not see you had told me what to edit and how. Wish everyone one hear was as helpful.

Regards Craig
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now