run time event create
-
i have face a problem for creating run time event. i have a button on page. when i have click on button , i create another button in page in run time. i want , when i click on new button so display an message on screen. i hope , my friends , you have a solution
-
i have face a problem for creating run time event. i have a button on page. when i have click on button , i create another button in page in run time. i want , when i click on new button so display an message on screen. i hope , my friends , you have a solution
It would be best to use JavaScript here, whereby you can create elements dynamically at runtime using the
document.createElement()
function. Take a look at this article which may be of use. Regards, --PerspxDon't trust a computer you can't throw out a window
-- Steve Wozniak
-
i have face a problem for creating run time event. i have a button on page. when i have click on button , i create another button in page in run time. i want , when i click on new button so display an message on screen. i hope , my friends , you have a solution
If you create controls dynamically, you have to recreate them on every postback. If you create the second button in the click event of the first button, it will only be created on the first postback. When you click the second button it will not be recreated, so there won't be any control to handle the click event. If the controls that you want to create are limited in number, it's easier to create them from the start as invisible controls. Then you can just make them visible to have them rendered in the page.
Despite everything, the person most likely to be fooling you next is yourself.