I would like on client side to get confirmation like "Are you sure?" when a button on webtoolbar is clicked. I am trying with following script.
{
}
else
The script errors out on this line. var btext = oItem.getText();
I do not know what is wrong?
Personally, I always use a switch on the button key, like so:
case "<%=ToolbarKey_History%>": { processSelectedRows(null, "<%=ResolveUrl("~/Pages/Application/ApplicationHistory.aspx")%>"); break; }
Hurray for HTML whitespace. :)