Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
document.getElementById(), error in content page content page
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Göran Andersson, post: 4037193"] The problem is that you can't have a script tag inside the Button tag. The easiest is to set the OnClientClick value from code behind: btnPopUp.OnClientClick = "PopUp('" + TransID.ClientID + "')"; (Note that the javascript: protocol is only used when you put script in an URL, e.g. in the href attribute of a link. If you use it in the onclick attribute, it will instead be interpreted as a label.) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
document.getElementById(), error in content page content page
Top