Link to home
Create AccountLog in
Avatar of taz8020
taz8020Flag for United Kingdom of Great Britain and Northern Ireland

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of taz8020

ASKER

How do you do it
which operating system and which version of iis ? or are you using apache?
Avatar of taz8020

ASKER

hi yes its .net4 and iis 7, So if i alter the mime types it will auto download the file?
if the user clicks on it yes the user will download the file
Avatar of taz8020

ASKER

do i alter it in the web.config file and if so how?
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
Avatar of taz8020

ASKER

Hi thanks for the video, there was no sound though, do i delete it or edit it?
edit it.

No sound because I am deaf
Avatar of taz8020

ASKER

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