Pop Up Menus in web forms when i click right mouse button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to have a Pop Up Menu on a web form when i click right mouse button. I want to have some options in that menu as New ,Edit etc., . Suppose if i want to escape then i can escape it by pressing esc button from the keyboard or by clicking left mouse button
How can i achieve this
Any suggestions are appreciated

Thank you
 
Hi Santhu

Have a look at this,

It is not a popup but for that you have to change the window.open in this.
(There are more posibilities with Register.....script

\\\
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///

I hope this helps a little bit?

Cor
 
Hi Cor,
Thank you for your reply.
I can i open the user control when i right click the mouse in this way.

Thank you.

----- Cor wrote: -----

Hi Santhu

Have a look at this,

It is not a popup but for that you have to change the window.open in this.
(There are more posibilities with Register.....script

\\ Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///

I hope this helps a little bit?

Cor
 
Hi Santhu,

I do not know direct how to invoke the right click in IE, Netscape, Mozila
etc.

But when you use a button on a aspx page you can also use this code, is even
easier.
(This opens outlook from a button you can of course place that window.open
where now is that window.location )

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.Button1.Text = "Send Mail"
Me.Button1.Attributes("onClick") =
"window.location='mailto:[email protected]?subject=Cor demo&body=I hope this
helps?';"
End If
End Sub


I hope this helps a little bit?

Cor
 
Back
Top