解决此问题后,将打开一个对话框.关闭它,然后在Outlook 7中重试. [英] solve this problem a dialog box is open. close it and try again in outlook 7.

查看:618
本文介绍了解决此问题后,将打开一个对话框.关闭它,然后在Outlook 7中重试.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想借助asp.net中的链接按钮单击来在Outlook中保存联系人.
它正在工作,但会显示一条消息,提示您打开对话框.将其关闭,然后重试.
代码如下.


I want to save contact in outlook with the help of link button click in asp .net.
it is working but it give a message a dialog box is open.close it and try again.
code are given below.


OutlookInterop.ContactItem newContact = (OutlookInterop.ContactItem)app.CreateItem(OutlookInterop.OlItemType.olContactItem);
                  newContact.FirstName = (txtfirstname.Text);
                  newContact.LastName = (txtlastname.Text);
                  newContact.Email1Address = (txtemail.Text);
                  newContact.WebPage = (txtwebpage.Text);

                  newContact.BusinessTelephoneNumber = (txtlandline.Text);
                  newContact.BusinessFaxNumber = (txtFaxno.Text);
                  newContact.MobileTelephoneNumber = (txtmobileno.Text);

                  newContact.BusinessAddressStreet = (txtstreet1.Text);
                  newContact.BusinessAddressCity = (txtcity1.Text);
                  newContact.BusinessAddressState = (txtstate1.Text);
                  newContact.BusinessAddressPostalCode = (txtpostal1.Text);
                  newContact.BusinessAddressCountry = (txtcountry1.Text);
                  newContact.Display(true);

推荐答案

Outlook是客户端应用程序,它将在ASP.net服务器中不起作用.
Outlook is a client side application it will not work in a ASP.net server.


这篇关于解决此问题后,将打开一个对话框.关闭它,然后在Outlook 7中重试.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆