Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Missing property in Microsoft Toolbar webcontrol


Message #1 by "Kan Yu Ting" <yu-ting.kan@p...> on Mon, 24 Jun 2002 14:26:59
Hi all,

Thanks for all help in solving previous problems.
I trying to set the Microsoft ToolBar Web Control, I found that it does 
not define the property "ImageUrl" to be set programatically.

The code
myToolbar.Items[buttonIndex].ImageUrl = "abc.gif";
returns following errors

C:\powerbase\LoginAuth\UserControl\PWR_XPToolBar.ascx.cs
(81): 'Microsoft.Web.UI.WebControls.ToolbarItem' does not contain a 
definition for 'ImageUrl'

but it can set the 'ImageUrl' in aspx code.

Why not all property can be set in program?

Kan

  Return to Index