Solved

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

Posted on 2013-05-17
10
454 Views
Last Modified: 2013-05-19
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
Comment
Question by:taz8020
  • 5
  • 5
10 Comments
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 39176595
You want the user to download the vcard?

Check your mime types
text/x-vcard .vcf
0
 
LVL 3

Author Comment

by:taz8020
ID: 39177504
How do you do it
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 39177677
which operating system and which version of iis ? or are you using apache?
0
 
LVL 3

Author Comment

by:taz8020
ID: 39177696
hi yes its .net4 and iis 7, So if i alter the mime types it will auto download the file?
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 39177706
if the user clicks on it yes the user will download the file
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 3

Author Comment

by:taz8020
ID: 39177754
do i alter it in the web.config file and if so how?
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 39177777
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
 
LVL 3

Author Comment

by:taz8020
ID: 39177787
Hi thanks for the video, there was no sound though, do i delete it or edit it?
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 39178008
edit it.

No sound because I am deaf
0
 
LVL 3

Author Comment

by:taz8020
ID: 39178355
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now