Pages

Monday, 30 January 2012

Asp.NET(C#) Code to Set the Button click property dynamicaly...

IMGbut.Click += new ImageClickEventHandler(IMGbut_Click);

4 comments:

  1. Admin:If there any other ideas then you can add this to here....

    ReplyDelete
  2. Can You Fix an apropreate function that works on this property?Plz help me

    ReplyDelete
  3. //Code that sets the property will be like this..
    IMGbut.Click += new ImageClickEventHandler(IMGbut_Click);
    /*Which calls the functin IMGbut_Click when it clicks at runtime..which is given below*/
    protected void IMGbut_Click(object sender, ImageClickEventArgs e)
    {
    //Code that works when the funclion clicks
    Label1.text="It Works..";
    }

    ReplyDelete