Solved

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

Posted on 2013-05-17
10
465 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 80

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 80

Expert Comment

by:David Johnson, CD, MVP
ID: 39177677
which operating system and which version of iis ? or are you using apache?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 80

Expert Comment

by:David Johnson, CD, MVP
ID: 39177706
if the user clicks on it yes the user will download the file
0
 
LVL 3

Author Comment

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

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 80

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

740 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