A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Folder WebViewURL



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 12th 08, 01:19 PM posted to microsoft.public.outlook.program_addins
Neetu
external usenet poster
 
Posts: 19
Default Folder WebViewURL

in our addin we have folders and
for each folder some URL setting is done. like ..

MAPIfolder lobjmfCustomer;

lobjmfCustomer.WebViewURL = lstrUrl;
lobjmfCustomer.WebViewOn = true;
lobjmfCustomer.WebViewAllowNavigation = true;

on click of a folder ( f1) we are able to browse specfied url.
we do some operation like adding of data into webpages.after that page get
refreshed. after this if we clicks some other folder (f2) and browsed url
and again clicks on last clicked folder (f1),
specified web page get displayed without any update made in last browsing.

we also noticed , when we click back a folder 2nd time ( like from f2- f1)
.. there is no web server hit.( we tried it by putting breakpoint of server
web page).
but if we do some operation , send data back to server via web pages , it
hits the server and update the webpage.

so each time, after clicking another folder and coming back to same folder,
data is not refreshing as equivalent to requesting page 1st time for server.
but if we clicks some button over pages, it updated the page with last time
entered data.

Any issue or in built bug is this with outlook?
I am using c# and VSTO for outlook 2007




  #2  
Old April 14th 08, 02:14 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Folder WebViewURL

Does it help if you handle the Explorer.BeforeFolderSwitch event and if the
switch is to your folder turning off then on the WebViewOn property?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Neetu" wrote in message
...
in our addin we have folders and
for each folder some URL setting is done. like ..

MAPIfolder lobjmfCustomer;

lobjmfCustomer.WebViewURL = lstrUrl;
lobjmfCustomer.WebViewOn = true;
lobjmfCustomer.WebViewAllowNavigation = true;

on click of a folder ( f1) we are able to browse specfied url.
we do some operation like adding of data into webpages.after that page get
refreshed. after this if we clicks some other folder (f2) and browsed url
and again clicks on last clicked folder (f1),
specified web page get displayed without any update made in last browsing.

we also noticed , when we click back a folder 2nd time ( like from f2-
f1)
. there is no web server hit.( we tried it by putting breakpoint of server
web page).
but if we do some operation , send data back to server via web pages , it
hits the server and update the webpage.

so each time, after clicking another folder and coming back to same
folder,
data is not refreshing as equivalent to requesting page 1st time for
server.
but if we clicks some button over pages, it updated the page with last
time
entered data.

Any issue or in built bug is this with outlook?
I am using c# and VSTO for outlook 2007





  #3  
Old April 14th 08, 02:39 PM posted to microsoft.public.outlook.program_addins
Neetu
external usenet poster
 
Posts: 19
Default Folder WebViewURL

Hello ken,

I m catching Explorer.BeforeFolderSwitch event and Set WebViewOn property.

however still , when i m navigating from one folder to another same 1st
state is
visible at internet explorer of Outlook.

"Ken Slovak - [MVP - Outlook]" wrote:

Does it help if you handle the Explorer.BeforeFolderSwitch event and if the
switch is to your folder turning off then on the WebViewOn property?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Neetu" wrote in message
...
in our addin we have folders and
for each folder some URL setting is done. like ..

MAPIfolder lobjmfCustomer;

lobjmfCustomer.WebViewURL = lstrUrl;
lobjmfCustomer.WebViewOn = true;
lobjmfCustomer.WebViewAllowNavigation = true;

on click of a folder ( f1) we are able to browse specfied url.
we do some operation like adding of data into webpages.after that page get
refreshed. after this if we clicks some other folder (f2) and browsed url
and again clicks on last clicked folder (f1),
specified web page get displayed without any update made in last browsing.

we also noticed , when we click back a folder 2nd time ( like from f2-
f1)
. there is no web server hit.( we tried it by putting breakpoint of server
web page).
but if we do some operation , send data back to server via web pages , it
hits the server and update the webpage.

so each time, after clicking another folder and coming back to same
folder,
data is not refreshing as equivalent to requesting page 1st time for
server.
but if we clicks some button over pages, it updated the page with last
time
entered data.

Any issue or in built bug is this with outlook?
I am using c# and VSTO for outlook 2007






  #4  
Old April 14th 08, 04:16 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Folder WebViewURL

Are you setting WebViewURL = "" and WebViewOn = false, then setting the URL
and view on again for NewFolder before exiting the BeforeFolderSwitch event
handler?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Neetu" wrote in message
...
Hello ken,

I m catching Explorer.BeforeFolderSwitch event and Set WebViewOn property.

however still , when i m navigating from one folder to another same 1st
state is
visible at internet explorer of Outlook.


  #5  
Old April 14th 08, 09:03 PM posted to microsoft.public.outlook.program_addins
SvenC[_2_]
external usenet poster
 
Posts: 40
Default Folder WebViewURL

Hi Neetu,
I m catching Explorer.BeforeFolderSwitch event and Set WebViewOn
property.

however still , when i m navigating from one folder to another same
1st state is
visible at internet explorer of Outlook.


Maybe the IE control is just caching the web site. Are you in control of
the web site which is called? If yes, try to set the expires header to the
current time so that the client recognizes that it must reload the page
content.
If you are not in control of the website, you need to add some bogus
URL parameter like yourUrl&dummy=currentTimeStamp. So you
woule need the above events and change the webview-URL each time
your folder is selected.

--
SvenC
  #6  
Old April 15th 08, 05:43 AM posted to microsoft.public.outlook.program_addins
Neetu
external usenet poster
 
Posts: 19
Default Folder WebViewURL

It got resolved.
I set %@ OutputCache Duration="1" Location="Client" VaryByParam="none"
% at my aspx page


Thanks for guidance.


"SvenC" wrote:

Hi Neetu,
I m catching Explorer.BeforeFolderSwitch event and Set WebViewOn
property.

however still , when i m navigating from one folder to another same
1st state is
visible at internet explorer of Outlook.


Maybe the IE control is just caching the web site. Are you in control of
the web site which is called? If yes, try to set the expires header to the
current time so that the client recognizes that it must reload the page
content.
If you are not in control of the website, you need to add some bogus
URL parameter like yourUrl&dummy=currentTimeStamp. So you
woule need the above events and change the webview-URL each time
your folder is selected.

--
SvenC

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default folder to Public folder when Exporting outlook form data toexcel Cass Outlook - General Queries 1 January 11th 08 12:33 PM
Cannot display the folder. Microsoft Office Outlook cannot access thespecified folder location. Boppy Outlook - General Queries 1 December 19th 07 12:16 AM
Folders WebViewUrl Anyone for Coffee? Outlook and VBA 3 May 4th 07 06:21 AM
Folders WebViewUrl Anyone for Coffee? Add-ins for Outlook 0 May 1st 07 09:30 PM
activate contact folder from public folder with "show this folder as email address book using a prf file Frankie K. Outlook - Using Contacts 7 July 25th 06 05:37 PM


All times are GMT +1. The time now is 10:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.