How to check current page URL address for null ID.. How to do this ?
This is my code, but not correct..
private int id = -1;
protected override void CreateChildControls()
{
try
{
if (SPContext.Current.ListItem != null)
{
id = SPContext.Current.ListItem.ID;
MyLogic HERE.....
}
}
}