Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8851669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:12:41+00:00 2026-06-14T13:12:41+00:00

I have a div and inside this div, a ContentPlaceHolder , and inside the

  • 0

I have a div and inside this div, a ContentPlaceHolder, and inside the holder a Linkbutton.

I am trying to remove the link button dynamically but I am getting this error:

Error: DOM Exception: NOT_FOUND_ERR (8).

Here is my code:

<div id="leftcol" style="z-index: 0">
    <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
    <asp:LinkButton  CssClass="childLI" ID="tblRSManswers" runat="server" Text="RS Manswers" OnClick="ChildLink_Click" >

Javascript code:

var child = document.getElementById("tblRSManswers"));
alert(child);
var parent = document.getElementById("ContentPlaceHolder2"));
alert(parent);
parent.removeChild(child);

P.S: The alerts are not NULL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:12:42+00:00Added an answer on June 14, 2026 at 1:12 pm

    removeChild expects an immediate parent. Your pasted HTML seems to be only excerpts of the most relevant code, so even though it looks like it in your code, I’m not sure this is the case in your real application?

    Try

    child.parentNode.removeChild(child);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a div click-able and but inside this <div> i have
I have this div inside a repeater, where i set the class, onmouseover and
Suppose I have an div. Inside this div, I have two divs floating left,
I have a div having a css class MyClass. Inside this div, I can
I have an outside div, inside this is a lot of P elements and
Ok, I have a label, inside this label is a div, which contains an
I have an image inside a div like this <div><img /><div> The image is
I want to have 3 divs aligned inside a container div, something like this:
I have a list of <p> inside a <div id=someDiv> I use this code
I have a div and inside of this, there are a lot of spans

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.