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

How to catch the click event of ASPX page in Outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 24th 08, 11:18 AM posted to microsoft.public.outlook.program_addins
Ravi[_2_]
external usenet poster
 
Posts: 3
Default How to catch the click event of ASPX page in Outlook

Hi,

My requirement is to refresh the folder structure in the Outlook on click of
a button on a ASPX form.
The webpage is at the web server and displayed within the outlook trough a
compatible outlook Add-in.
Is it possible to catch the Button click event of the web form inside the
Outlook so that the folder structure could be refresh with the data displayed
in the webpage?

Thanks in advance for your help and time.

Ravi
Ads
  #2  
Old January 24th 08, 03:01 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to catch the click event of ASPX page in Outlook

Outlook code can't respond directly to a click in server-side ASPX code.
You'd have to find a way to notify the Outlook code that the click had
occurred. Perhaps a Web service or something like that?

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


"Ravi" wrote in message
...
Hi,

My requirement is to refresh the folder structure in the Outlook on click
of
a button on a ASPX form.
The webpage is at the web server and displayed within the outlook trough a
compatible outlook Add-in.
Is it possible to catch the Button click event of the web form inside the
Outlook so that the folder structure could be refresh with the data
displayed
in the webpage?

Thanks in advance for your help and time.

Ravi


  #3  
Old January 25th 08, 07:42 AM posted to microsoft.public.outlook.program_addins
Neetu
external usenet poster
 
Posts: 19
Default How to catch the click event of ASPX page in Outlook

Hello Ken,

Thanks for your valuable suggestion.

We Could find out about the how to send alerts from webserice to outlook.
we are planning to call a webservice at aspx page button event handler.
webservice will send a required response to outllook. for this we need a
listener at outlook end which can be a alert configured at client machines.

we are not in possible to create a custom alert programmatically inside
addin outlook code.
so please suggest ways to create custom alerts in outlook addin and access
those events.

Thanks In advance.



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

Outlook code can't respond directly to a click in server-side ASPX code.
You'd have to find a way to notify the Outlook code that the click had
occurred. Perhaps a Web service or something like that?

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


"Ravi" wrote in message
...
Hi,

My requirement is to refresh the folder structure in the Outlook on click
of
a button on a ASPX form.
The webpage is at the web server and displayed within the outlook trough a
compatible outlook Add-in.
Is it possible to catch the Button click event of the web form inside the
Outlook so that the folder structure could be refresh with the data
displayed
in the webpage?

Thanks in advance for your help and time.

Ravi



  #4  
Old January 25th 08, 03:15 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to catch the click event of ASPX page in Outlook

If the code is running on the client machine you can iterate the
Outlook.Application.COMAddIns collection. That has all addins. You can
locate yours and reference it. This little snippet assumes using VB.NET, it
would be different using C#:

' In Connect class:

Private addInInstance As Office.COMAddIn = Nothing

' In OnConnection() event handler

addInInstance = TryCast(addInInst, Office.COMAddIn)
addInInstance.Object = Me ' critical setting

' Public Sub that can be called from outside the addin
Public Sub CalledFromOutside()
' do whatever you want
End Sub

Your external code that works with the Web service can then get your COM
addin from the Outlook.Application.COMAddIns collection and use code like
this to call that CalledFromOutside() method:

Dim myAddin As Office.COMAddIn = olApp.COMAddIns.Item("myAddin.Connect")
If (myAddin IsNot Nothing) Then
myAddin.Object.CalledFromOutside()
End If

That CalledFromOutside() method can take arguments like a flag or whatever.

--
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,

Thanks for your valuable suggestion.

We Could find out about the how to send alerts from webserice to outlook.
we are planning to call a webservice at aspx page button event handler.
webservice will send a required response to outllook. for this we need a
listener at outlook end which can be a alert configured at client
machines.

we are not in possible to create a custom alert programmatically inside
addin outlook code.
so please suggest ways to create custom alerts in outlook addin and access
those events.

Thanks In advance.


  #5  
Old January 29th 08, 10:16 AM posted to microsoft.public.outlook.program_addins
Neetu
external usenet poster
 
Posts: 19
Default How to catch the click event of ASPX page in Outlook

in our case, outside code is inside aspx page hosted inside outlook, which
gets open on click of addin folder in folder struture of outlook.


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

If the code is running on the client machine you can iterate the
Outlook.Application.COMAddIns collection. That has all addins. You can
locate yours and reference it. This little snippet assumes using VB.NET, it
would be different using C#:

' In Connect class:

Private addInInstance As Office.COMAddIn = Nothing

' In OnConnection() event handler

addInInstance = TryCast(addInInst, Office.COMAddIn)
addInInstance.Object = Me ' critical setting

' Public Sub that can be called from outside the addin
Public Sub CalledFromOutside()
' do whatever you want
End Sub

Your external code that works with the Web service can then get your COM
addin from the Outlook.Application.COMAddIns collection and use code like
this to call that CalledFromOutside() method:

Dim myAddin As Office.COMAddIn = olApp.COMAddIns.Item("myAddin.Connect")
If (myAddin IsNot Nothing) Then
myAddin.Object.CalledFromOutside()
End If

That CalledFromOutside() method can take arguments like a flag or whatever.

--
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,

Thanks for your valuable suggestion.

We Could find out about the how to send alerts from webserice to outlook.
we are planning to call a webservice at aspx page button event handler.
webservice will send a required response to outllook. for this we need a
listener at outlook end which can be a alert configured at client
machines.

we are not in possible to create a custom alert programmatically inside
addin outlook code.
so please suggest ways to create custom alerts in outlook addin and access
those events.

Thanks In advance.



  #6  
Old January 29th 08, 03:59 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to catch the click event of ASPX page in Outlook

Is there a question there?

--
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 case, outside code is inside aspx page hosted inside outlook, which
gets open on click of addin folder in folder struture of outlook.


 




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
Can I catch the event when the End Time comes on Appointment? soworl Outlook - Calandaring 5 January 18th 08 06:46 PM
how to catch delete event(appointments) in outlook2003 us c# abdullah baig Outlook - Using Forms 0 January 15th 08 08:37 AM
How to trigger Custom Tab Click Event - Outlook 2003 Khyati Outlook - Using Forms 2 August 8th 07 11:38 PM
catch the mail item on_focus event john Outlook and VBA 1 September 28th 06 12:33 PM
Outlook Addin CommandBarButton Click Event Not Firing Stu Add-ins for Outlook 0 January 17th 06 02:10 AM


All times are GMT +1. The time now is 08:37 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.