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

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

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Cor
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
Jul 21 '05 #2

P: n/a
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

Jul 21 '05 #3

P: n/a
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:no*@non.com?subject=C or demo&body=I hope this
helps?';"
End If
End Sub
I hope this helps a little bit?

Cor
Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.