Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Highlight text and right click for a custom context menu

Status
Not open for further replies.

theabdalla

Programmer
Mar 23, 2006
1
GB
Dear All

I have a project on making a UI of a Web page that allows users to:

1. select any text by highlighting it,

2. do some action on it by right-clicking on the highlighted text and choose an action among those options presented by the context menu items that appears,

3. send the chosen action along with the text and its attributes to the server as the user clicks on the desired menu item.

The next stage is to make the menu items customised by the type of the selected text, e.g. a link or an ordinary body text.

Does anyone know if all these can be done fully using ASP.Net at the server side? If not, how can this be collaborated with a server code, e.g. with server control?

Could anyone help, please?

Many thanks in advance.

 
It can't be done with ASP.NET as it's a server-side language and you want to do somthing on the client side.

You could use DHTML or JavaScript to do something like you want, but you'd be overriding the default context menu if you want the users see your menu when they right-click, and I think that's a bad idea.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top