tags:

views:

263

answers:

1
private void LoadButtonImage()
{
    if(buttonPicture != null)
        buttonPicture.Dispose();

    string templateFileName = "PicTemplate/RoundedRectangle.png";
    buttonPicture = new Bitmap(templateFileName);
}

This is my coding ..... parameter is not valid in runtime ... what can i do? Please Give result for this error very urgent....... any one help me.......... very urgent

+1  A: 

Most likely you're pointing to the wrong location. Try switching it to

new Bitmap(Server.MapPath(templateFileName)).
JaCraig