path of imagebutton in javascript [modified]
-
Hai, i used an file upload and image button in my aspx page, i give two image paths for save and update(\images\save.gif and \images\update.gif) , i want the checkin in javascript path of image button is \images\save.gif then one alert otherwise another? how please help me?(asp.net,c#),first i used the button for save and update,at that time in javasript i used the code is if(document.getelementbyid("ct100..._btnave").value=0) { if(document.getelementbyid("ct100..._fileimage").value.length==0) { alert("icon field cant be empty") } } at that time,working is correct after that i changed button to image button? text property is not in image button,but i ysed two image url for save and update?how to writ this code image button instead of button?
modified on Thursday, March 5, 2009 10:50 PM
-
Hai, i used an file upload and image button in my aspx page, i give two image paths for save and update(\images\save.gif and \images\update.gif) , i want the checkin in javascript path of image button is \images\save.gif then one alert otherwise another? how please help me?(asp.net,c#),first i used the button for save and update,at that time in javasript i used the code is if(document.getelementbyid("ct100..._btnave").value=0) { if(document.getelementbyid("ct100..._fileimage").value.length==0) { alert("icon field cant be empty") } } at that time,working is correct after that i changed button to image button? text property is not in image button,but i ysed two image url for save and update?how to writ this code image button instead of button?
modified on Thursday, March 5, 2009 10:50 PM
Please post your Question very clearly.
R.Palanivel 10:01 4 Jan '06