late binding
-
req: button in design mode(asp.net using c#) i need to write java script function for the mentioned button which has to be excuted dynamically. plz help me out with regards d.ravi kiran reddy
-
req: button in design mode(asp.net using c#) i need to write java script function for the mentioned button which has to be excuted dynamically. plz help me out with regards d.ravi kiran reddy
I m not getting what exactly u want can u elaborate some more... u can write in code behind like this to add JSFunction at runtime objButton.Attribute.add("onclick","javascript:return functionName();"); string strScript= ""; strScript = ""; strScript = strScript + "function functionName(){"; strScript = strScript + "if (confirm('Are you sure to perform this action?')==true)"; strScript = strScript + "{return true;}"; strScript = strScript + "else"; strScript = strScript + "{return false;}}"; strScript = strScript + ""; Response.Write(strScript); Thanx Anuj Kamthan
-
I m not getting what exactly u want can u elaborate some more... u can write in code behind like this to add JSFunction at runtime objButton.Attribute.add("onclick","javascript:return functionName();"); string strScript= ""; strScript = ""; strScript = strScript + "function functionName(){"; strScript = strScript + "if (confirm('Are you sure to perform this action?')==true)"; strScript = strScript + "{return true;}"; strScript = strScript + "else"; strScript = strScript + "{return false;}}"; strScript = strScript + ""; Response.Write(strScript); Thanx Anuj Kamthan
thank u for reply,ok i want to execute a javascript function at runtime how can i with regards d.ravi kiran reddy -- modified at 7:11 Monday 22nd May, 2006
-
thank u for reply,ok i want to execute a javascript function at runtime how can i with regards d.ravi kiran reddy -- modified at 7:11 Monday 22nd May, 2006
-
req: button in design mode(asp.net using c#) i need to write java script function for the mentioned button which has to be excuted dynamically. plz help me out with regards d.ravi kiran reddy
button.attributes.add("onclick","javascript function name") in code behind thanks Bhasker