Can anyone please explain what exactly wrong in following code. and what is correct way to write it?
Error: Cannot specify accessibility modifiers for both accessors of the property or indexer
public FileUpload ucFileUpload
{
protected get
{
return this.FileUpload1;
}
private set
{
this.FileUpload1 = value;
}
}
public HiddenField ucHiddenContainer
{
protected get
{
return this.hfContainerNo;
}
private set
{
this.hfContainerNo = value;
}
}