highlight text and right click on it for a custom context menu

A

Abdalla

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

Interestingly, 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?
Could anyone help, please?

Many thanks in advance.
 
B

Bob Barrows [MVP]

Abdalla said:
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, and
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.

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

No. Server-side code can only respond to form submissions. It cannot respond
to client events unless client-side script causes a postback to occur. In
this case a postback may be a less-than-ideal experience for the user. You
might want to look into AJAX (google for this term). In any case, you will
probably get more help in a client-side scripting or dhtml newsgroup
Could anyone help, please?

There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-savvy person here who can
answer your question, you can eliminate the luck factor by posting your
question to a newsgroup where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.

HTH,
Bob Barrows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top