Using the following Eval script for setting ID property causes error. Error message: the server tag is not well formed.
As Silky said, you can't do this. The attributes can't be dynamic in none code behind. One solution is to subclass the Panel:
public class MyPanel : Panel { public override string ID { get { return "get from my datasource"; } set { // noop } } }