Jan 23, 2008 #1 compu66 Programmer Dec 19, 2007 71 US Hi all, I have a linkbutton,how to pop up a javascript for it. I tried but it does come up. btnSave.Attributes.Add("onclick", "javascript:ShowAlert();") Thanks for any help in advance
Hi all, I have a linkbutton,how to pop up a javascript for it. I tried but it does come up. btnSave.Attributes.Add("onclick", "javascript:ShowAlert();") Thanks for any help in advance
Jan 23, 2008 #2 dwarfthrower Programmer Apr 22, 2003 1,625 AU Code: btnSave.onclick = ShowAlert; Never be afraid to share your dreams with the world. There's nothing the world loves more than the taste of really sweet dreams. Webflo Upvote 0 Downvote
Code: btnSave.onclick = ShowAlert; Never be afraid to share your dreams with the world. There's nothing the world loves more than the taste of really sweet dreams. Webflo
Jan 26, 2008 #3 Lowet Programmer Jan 10, 2008 121 NO or [tt][maroon]btnSave.onclick = function () {ShowAlert();};[/maroon][/tt] if you want to add arguments to the function. - Lowet [gray]Why can't all browsers parse pages the same way? It should be the Web designer who decides how to display the content, not the browser![/gray] Upvote 0 Downvote
or [tt][maroon]btnSave.onclick = function () {ShowAlert();};[/maroon][/tt] if you want to add arguments to the function. - Lowet [gray]Why can't all browsers parse pages the same way? It should be the Web designer who decides how to display the content, not the browser![/gray]