how to open outlook asyncronously

Posted by Praveen7k under ASP.NET AJAX on 2/26/2011 | Points: 10 | Views : 2105 | Status : [Member] | Replies : 10
I have a gridview control in a page. i have a column called 'VIEW' when i click any row in view column it should open popup window called "Comments Window" there will be 3 buttons in this popup 'Approve,Reject, Question' when he clicks question it should open MS outlook and when he click approve or reject should close the popup window....
and the comments window should be a usercontrol.




Responses

Posted by: Madhu.b.rokkam on: 2/26/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Place this line of code when one click on Question button

System.Diagnostics.Process.Start("outlook.exe");

this will open the outlook application.

Thanks and Regards
Madhu

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/27/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
But how it will open asyncronously??

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Praveen7k on: 2/27/2011 [Member] Starter | Points: 25

Up
0
Down
when i added this code it gives exception...the system cannot find the file specified"

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/27/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Check if you have outlook installed in your machine or not?
If installed check the exe name that you have for outlook.

for office 2007 it is outlook.exe

So it should work.

Thanks and Regards
Madhu

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/27/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Wat's the location to check for the same?

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/28/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
c:\program files\microsoft office\office11\outlook.exe


Thanks and Regards
Madhu

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/28/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Got it from here :

C:\program files\microsoft office\Office12

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/28/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Cool.. It varies with office version

Thanks and Regards
Madhu

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/28/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Yes..I have 2007

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: pankajupadhyay29-9230 on: 2/28/2011 [Member] Starter | Points: 25

Up
0
Down
i think u can done this by making that button as link

<a href="mailto:email?subject=mailsubject&body=msg"><input type="button" value="Question"></a>


Praveen7k, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response