• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 491
  • 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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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