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