web part verbs

C

cmh

I have been looking at this article on web parts
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/webparts.asp
and I was making some webparts for a Sharepoint v3 site.
I want to add verbs all witht he same click handler (like in listing 5 of
the article).
My handler looks like
void click_handler(object sender, WebPartEventArgs e)
{
string txt=((WebPartVerb)sender).text;
}
Basically i just want to get the text from the verb that was clicked, but
when a verb is clicked, it passes a refernce to the webpart in sender, and
not a refernce to the specific verb clicked, thus throwing a casting
exception. How can i know what verb was clicked?
 

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top