msoutlook.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to catch the click event of ASPX page in Outlook

 
Post new topic   Reply to topic    msoutlook.org Forum Index -> Outlook Programs Add-Ins
Author Message
Ravi



Joined: 15 Jan 2008
Posts: 2

PostPosted: Thu Jan 24, 2008 8:18 am    Post subject: How to catch the click event of ASPX page in Outlook Reply with quote

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

Archived from group: microsoft>public>outlook>program_addins
Back to top
View user's profile Send private message
Ken Slovak - [MVP - Outlo



Joined: 12 Aug 2007
Posts: 405

PostPosted: Thu Jan 24, 2008 3:01 pm    Post subject: Re: How to catch the click event of ASPX page in Outlook Reply with quote

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 @microsoft.com...
> 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
Back to top
View user's profile Send private message
Neetu



Joined: 25 Jan 2008
Posts: 2

PostPosted: Fri Jan 25, 2008 4:42 am    Post subject: Re: How to catch the click event of ASPX page in Outlook Reply with quote

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
> @microsoft.com...
> > 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
>
>
Back to top
View user's profile Send private message
Ken Slovak - [MVP - Outlo



Joined: 12 Aug 2007
Posts: 405

PostPosted: Fri Jan 25, 2008 3:15 pm    Post subject: Re: How to catch the click event of ASPX page in Outlook Reply with quote

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 @microsoft.com...
> 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.
Back to top
View user's profile Send private message
Neetu



Joined: 25 Jan 2008
Posts: 2

PostPosted: Tue Jan 29, 2008 7:16 am    Post subject: Re: How to catch the click event of ASPX page in Outlook Reply with quote

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
> @microsoft.com...
> > 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.
>
>
Back to top
View user's profile Send private message
Ken Slovak - [MVP - Outlo



Joined: 12 Aug 2007
Posts: 405

PostPosted: Tue Jan 29, 2008 3:59 pm    Post subject: Re: How to catch the click event of ASPX page in Outlook Reply with quote

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 @microsoft.com...
> 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.

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Ribbon : What is the IdMso to catch "Message" with Outlook 2 Hi, I want to customize my Ribbon with Addin, I would want to know the Imdso to catch "Message" which is the first tab when i wite or reponse a mail. Tanks

New Inspector event in OL2000 when using Word as Editor Hi, We're working on an OL2000 COM addin that adds menu to New Mail window. Based on online literature, we should handle the New Inpsector event, however we found this event will not fire when using Word as email editor. We found the following KB which co

Outlook und Outlook Connector? Fehler! Hallo zusammen Ich habe Office 2003 (ohne Outlook) und Office 2007 (mit Outlook) installiert. Nun wollte ich heute den Outlook Connector installieren. Bei der Installation ergaben sich eigentlich keine Probleme. Ich kann jetzt nur kein Konto hinzufügen. W

Outlook Connector I've been using the Outlook Connector for Domino for over a year with pretty good success. This past weekend it looks like the Domino changed something and all of my Domino mail now looks different. instead of showing the sender's short nam

Error deleting second attach from RTF Msg w/ Outlook 2007 I get an error, 0x80030002 "%1 could not be found.", when I try to delete the second attachment from an rtf email message only in Outlook 2007. The first attachment gets processed with no problems. I've tried getting a new and a
Post new topic   Reply to topic    msoutlook.org Forum Index -> Outlook Programs Add-Ins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group