public string path { get { return (string)File1.PostedFile.FileName ; } }
I think it is more complicated than you thought, you need to create a custom designer for your controlsee Writing Custom Designers for .NET Components http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/custdsgnrdotnet.asp
{
get
{
return (string)File1.PostedFile.FileName ;
}
}
Writing Custom Designers for .NET Components
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/custdsgnrdotnet.asp