返回首页

我想保存在ASP中的链接按一下按钮的帮助与Outlook中的联系人。净。
它的工作,但它再次给一个对话框,它open.close和尝试的消息。代码如下。


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);

回答

评论会员: 时间:2