Author: mycwcgr | Posted on: 7/16/2010 10:32:09 PM | Views : 492

There are many repeat code in the two functions, could you tell me how to  merger two functions into one function?
Thanks!
 
        public static void AddClientURLForButton(Button myButton, string fileName,string size)
        {
            myButton.OnClientClick = "return window.open('" + fileName + "','WindowName" + DateTime.Now.Millisecond.ToString() + "'," + size + ");";
        }

        public static void AddClientURLForLinkButton(ImageButton aImageButton, string fileName,string size)
        {
            aImageButton.OnClientClick = "return window.open('&quo ...

Go to the complete details ...