Microsoft jscript runtime error object required document.getelementbyid
Hi, yes you are right the error occurs as you assumed, but that happens because the label is hidden when user choose from radiobuttonlist, for example when user choose 'YES' it hides the label and 'NO' brings it back. I think that you are confused as to the display property that hides an element. It is not 'block'. It is 'none'. Try this:. I think, you are setting label visibility from codebehind. Dont set visibility. Use display:none and display:block.
Thanks for the tip. It worked for me, I used an asp:panel and tried to hide it using java script, it worked on the first page load, but after a postback i got a java script error. Then I looked at the source to see that the panel doesn't exist.
Update: Here's the solution T. If you're only validating a few fields, this is the simplest fix to your situation:. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 11 years, 9 months ago. Active 10 years, 6 months ago. Viewed 18k times. Later I linked it to aspx page like a external js file. I'm unable to know where I went wrong. Improve this question. Gokul Gokul 1, 5 5 gold badges 21 21 silver badges 36 36 bronze badges. Add a comment. Active Oldest Votes. The only problem is that is kind of difficult to work on the webpage locally on the computer when no images are seen as they really fill out the layout of the page.
I dont know if declaring all images in the javascript could be the solution, because there will be the only place where the images can be loaded from. But then they will not be seen in the design view when working?
The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums.
Answered by:. Archived Forums. Sign in to vote. Tuesday, July 20, PM.
0コメント