0
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?

0

1 Answer 1

3

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

new Bitmap(Server.MapPath(templateFileName)).
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.