By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,083 Members | 2,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,083 IT Pros & Developers. It's quick & easy.

How to MIME outlook from web download using asp.net

P: 1
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.Clear()
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
Share this question for a faster answer!
Share on Google+

Post your reply

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