Mohd Abrar Ahmed Mohd Abrar Ahmed - 1 year ago 156
jQuery Question

By default in web forms it will have two aspNetHidden Divs, How do I remove that

When i create a empty webform page in it create the code like below:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Threetier.WebForm1" %>
<!DOCTYPE html>
<html xmlns="">
<head runat="server">
<form id="form1" runat="server">


additionally i added googleapis jquery in head tag using:

<script src=""></script>

Now, this means that it has only one div in form and when I console the below code I should get object of one div:


but the result is

Object[div.aspNetHidden, div.aspNetHidden, div ]

Answer Source

Try following code

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download