467,075 Members | 965 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

How to MIME outlook from web download using asp.net

In outlook, I've setup an advanced search (Ctrl-Shift-F) and saved the search as msgsrch.oss. Next, I've uploaded this file to a field in my web sql server. In my web app, when I click on an email address I'm 1) loading the mshsrch.oss field into a variable, 2) replacing the email address with the one that is clicked on, 3) pushing the file out so that the search pops up un outlook.

This is really cool - if it worked. My problem is in step 3. I've got this so far:

Response.Buffer = true
Response.AddHeader("content-disposition", "attachement; filename=msgsrch.oss") 'have also tried inline instead of attachment
Response.ContentType = "application/vnd.ms-outlook"
Response.BinaryWrite( reader("msgsrch") )

This will give me the open/save dialog. Hitting open gives a beep and nothing happens. Hitting Save allows me to save the file and pops up another dialog offering to open it. If I open it, it works and the outlook search dialog comes up.

I don't mind getting the open/save dialog but how can I hit open and have the outlook search dialog come up?

Can I bypass the open/save dialog so that the outlook search dialog comes up immeadiately?

I've got a GoDaddy hosted account so I can't read/write files. The trust level is medium and set not to change. (I think.) I'm using IE7 and outlook 2003 on a XP SP2 machine. Also using asp.net 2.0.

Thanks in advance.
Jun 7 '07 #1
  • viewed: 1226

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by John Mark Howell | last post: by
3 posts views Thread by Jyothi | last post: by
reply views Thread by PIKACHU | last post: by
reply views Thread by Klaus Bonadt | last post: by
1 post views Thread by fabrizio.viggiani@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.