Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Iam Gettin gthis kind of error when i try to create tabs using ajax controls
error in creating the ajax tab container
ajaxcontroltoolkit.tabpanel' does not have a public property named 'div'

here is my code
i have 5 tabs like personal details,project details,visa,greencard,documents
with some fields in each tabs
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" >
<asp:TabPanel ID="tbpnlPersonaldetails" runat="server" CssClass="per_details">
<HeaderTemplate>
Personal Details
</HeaderTemplate>
<contenttemplate>
<%--
--%>


Personal Information





First Name:


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txtfname" runat="server">






Last Name:


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txtlname" runat="server">






Employee/Consultant:


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txtemployee" runat="server">






Phone:


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtphone" runat="server">






Home Phone:


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txthphone" runat="server">






Email:


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtemail" runat="server">






Marital Status


<%-- <input name="Marital" type="radio" value="">
Single
<input name="Marital" type="radio" value="">
Married
--%>
<asp:RadioButtonList ID="rbmartialstatus" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="1" Text="Single">
<asp:ListItem Value="2" Text="Married">







Primary Skill:


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txtprimaryskill" runat="server">






Address:


<%--<textarea name="" cols="" rows=""></textarea>--%>
<asp:TextBox ID="txtaddress" runat="server" TextMode="MultiLine">




Education and Experience





Bachelor Degree


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtdegree" runat="server">






Masters Degree


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtmasterdegree" runat="server">






Masters in US


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtmasterinus" runat="server">






Years of experience


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtyearsofexp" runat="server">






VISA Information





VISA Status:


<%-- <select name="status">
<option value="Active">Active</option>
<option value="Inactive">Inactive</option>
<option value="NA">NA</option>
</select>--%>
<asp:DropDownList ID="ddlvisastatus" runat="server">
<asp:ListItem Value="1" Text="Active">
<asp:ListItem Value="2" Text="Inactive">







Expire Date:


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txtexpdate" runat="server">








H1B Information





H1B:


<%-- <select name="status">
<option value="Yes">Yes</option>
<option value="No">No</option>
<option value="NA">NA</option>
</select>--%>
<asp:DropDownList ID="ddlh1b" runat="server">
<asp:ListItem Value="1" Text="Yes">
<asp:ListItem Value="2" Text="No">
<asp:ListItem Value="3" Text="NA">







Start Date:


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txth1bsdate" runat="server">






Expire Date:


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txth1bexpdate" runat="server">








Green Card Information





GC


<%--<select name="status">
<option value="Yes">Yes</option>
<option value="No">No</option>
<option value="NA">NA</option>
</select>--%>
<asp:DropDownList ID="ddlgc" runat="server">
<asp:ListItem Value="1" Text="Yes">
<asp:ListItem Value="2" Text="No">
<asp:ListItem Value="3" Text="NA">







Start Date:


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txtgcsdate" runat="server">






Expire Date:


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txtgcedate" runat="server">







<%--<input name="" type="button" value="Next" id="per_info">--%>
<asp:Button ID="btnnext1" runat="server" Text="Next" OnClick="btnnext1_Click" />





<%----%>


<asp:TabPanel ID="tbpnlProjectdetails" runat="server" CssClass="pro_details">
<HeaderTemplate>
Project Details
</HeaderTemplate>
<contenttemplate>
<%--
--%>


Client Details





Name


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtname2" runat="server">






Address


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtaddress2" runat="server">






Joined Date


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtjoindate2" runat="server">






Completion Date


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtcompletiondate2" runat="server">






LCA Filed


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtlcafiled2" runat="server">






Current Client:


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtcurrentclient2" runat="server">






Vendor Name1


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtvendorname1" runat="server">






Vendor Name2


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtvendorname2" runat="server">






Vendor Name3


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtvendorname3" runat="server">






LCA Salary


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtlcasalary2" runat="server">






LCA Title


<%-- <input name="" type="text">--%>
<asp:TextBox ID="txtlcatitle" runat="server">






Job Responsibilities


<%--<textarea name="" cols="" rows=""></textarea>--%>
<asp:TextBox ID="txtjobresponsibilites2" runat="server" TextMode="MultiLine">






Masters in US


<%--<input name="" type="text">--%>
<asp:TextBox ID="txtmasterinus2" runat="server">





<%--<input name="" type="button" value="Add Client" style="margin-top:5px;">--%>
<asp:Button ID="btnaddclient" runat="server" Text="Add Client" OnClick="btnaddclient_Click" />





<%--
Name Address Joined Date Completion Date LCA Filed
Web App Technologies Michigon, USA 25/10/2012 20/11/2014 Yes ----- <img src="images/edit-icon.png" width="18" height="18" alt="edit">
<img src="images/delete-icon.png" width="18" height="18" alt="delet">
----- ----- ----- ----- ----- ----- <img src="images/edit-icon.png" width="18" height="18" alt="edit">
<img src="images/delete-icon.png" width="18" height="18" alt="delet">
--%>
<asp:GridView ID="gvprojectdetails" AutoGenerateColumns="false" CssClass="main_tbl2"
runat="server">
<columns> <asp:TemplateField HeaderText="Project_id" Visible="false">
<itemtemplate>
<asp:Label ID="lblproject_id" runat="server" Text='<%# Eval("Project_Id") %>'>


<asp:TemplateField HeaderText="Name">
<itemtemplate>
<asp:Label ID="lblname" runat="server" Text='<%# Eval("Name") %>'>


<asp:TemplateField HeaderText="Address">
<itemtemplate>
<asp:Label ID="lbladdress" runat="server" Text='<%# Eval("Address") %>'>


<asp:TemplateField HeaderText="Joined Date">
<itemtemplate>
<asp:Label ID="lbljoineddate" runat="server" Text='<%# Eval("Joined_Dt") %>'>


<asp:TemplateField HeaderText="Completion Date">
<itemtemplate>
<asp:Label ID="lblcompletiondate" runat="server" Text='<%# Eval("Completion_Dt") %>'>


<asp:TemplateField HeaderText="LCA Filed">
<itemtemplate>
<asp:Label ID="lbllcafiled" runat="server" Text='<%# Eval("Lca_Filed") %>'>


<asp:TemplateField>
<itemtemplate>
<asp:ImageButton ID="btn_edit2" runat="server" ImageUrl="images/edit-icon.png" CommandName="Edit" />
<asp:ImageButton ID="btn_del2" runat="server" ImageUrl="images/delete-icon.png" CommandName="Delete"
OnClick="btn_del2" />





<%--<input name="" type="button" value="Next" id="pro_dtl">--%>
<asp:Button ID="btnprodetails" runat="server" Text="Next" />




<%--
--%>


<asp:TabPanel ID="tbpnlvisadetails" runat="server" CssClass="visa_details">
<HeaderTemplate>
Visa Details
</HeaderTemplate>
<contenttemplate>
<%--
--%>

<!--


Current VISA Status:


<input name="" type="text">





Expire Date:


<input name="" type="text">





H1B Field:


<select name="status">
<option value="Yes">Yes</option>
<option value="No">No</option>
<option value="NA">NA</option>
</select>


-->



VISA Details





VISA Status


<input name="" type="text">






LCA Address


<input name="" type="text">






Role/Type


<input name="" type="text">






Filed Date


<input name="" type="text">






Expire Date


<input name="" type="text">






Client


<input name="" type="text">






Notes


<input name="" type="text">






Status


<select name="status">
<option value="Filed">Filed</option>
<option value="RFE">RFE</option>
<option value="Approved">Approved</option>
<option value="RFE Approved">RFE Approved</option>
<option value="NA">NA</option>
</select>






RFE Response Date


<input name="" type="text">







<input name="" type="button" value="Add VISA Details">






VISA Status
LCA Address
Role/Type
Filed Date
Expire Date
Client
Notes
Status
RFE Response Date
Active
Address 1, Address2
Employee
21/05/2015
15/09/2018
Web App Technologies
----
yes
09/06/2015

<img src="images/edit-icon.png" width="18" height="18" alt="edit">

<img src="images/delete-icon.png" width="18" height="18" alt="delet">

---------
----
----
----
----
----
----
----
----

<img src="images/edit-icon.png" width="18" height="18" alt="edit">

<img src="images/delete-icon.png" width="18" height="18" alt="delet">

---------
----
----
----
----
----
----
----
----

<img src="images/edit-icon.png" width="18" height="18" alt="edit">

<img src="images/delete-icon.png" width="18" height="18" alt="delet">




<input name="" type="button" value="Next" id="visa_dtl">




<%--
--%>


<asp:TabPanel ID="tbpnlgreencarddetails" runat="server" CssClass="gc_details">
<HeaderTemplate>
GreenCard Details
</HeaderTemplate>
<contenttemplate>
<%--
--%>

<!--


Current VISA Status:


<input name="" type="text">





Expire Date:


<input name="" type="text">





GC Field:


<select name="status">
<option value="Yes">Yes</option>
<option value="No">No</option>
<option value="NA">NA</option>
</select>



-->


GC Details





Role/Title


<input name="" type="text">






Current Step


<select name="status">
<option value="Labor">Labor</option>
<option value="I-140">I-140</option>
<option value="EAD">EAD</option>
<option value="NA">NA</option>
</select>






Filed Date


<input name="" type="text">






Status


<select name="status">
<option value="Filed">Filed</option>
<option value="RFE">RFE</option>
<option value="Approved">Approved</option>
<option value="RFE Approved">RFE Approved</option>
<option value="NA">NA</option>
</select>






Client


<input name="" type="text">






Notes


<input name="" type="text">






RFE Response Date


<input name="" type="text">






Deadline Date


<input name="" type="text">





<input name="" type="button" value="Add GC Details" style="margin-top: 10px;">






Role/Title
Current Step
Filed Date
Status
Client
Notes
RFE Response Date
Next Step Deadline Date
-----
-----
-----
-----
-----
-----
-----
-----

<img src="images/edit-icon.png" width="18" height="18" alt="edit">

<img src="images/delete-icon.png" width="18" height="18" alt="delet">

-----
-----
-----
-----
-----
-----
-----
-----

<img src="images/edit-icon.png" width="18" height="18" alt="edit">

<img src="images/delete-icon.png" width="18" height="18" alt="delet">






<input name="" type="button" value="Next" id="gc_dtl">



<%--
--%>




<asp:TabPanel ID="tbpnlodcument" runat="server" CssClass="gc_details">
<HeaderTemplate>
Document
</HeaderTemplate>
<contenttemplate>
<%--
--%>


Documents





Document Type


<select name="">
<option value="Select">Select</option>
<option value="Type1">Type1</option>
<option value="Type2">Type2</option>
<option value="Type3">Type3</option>
<option value="Type4">Type4</option>
</select>






Document Title


<input name="" type="text">





<input name="" type="file" style="margin-top: 10px;">






<input name="" type="button" value="Submit">





class="main_tbl2">
Document Type
Document Title
Document
Appointment Letter
Company Appointment letter
company_appointmentletter.jpg

<img src="images/edit-icon.png" width="18" height="18" alt="edit">

<img src="images/delete-icon.png" width="18" height="18" alt="delet">

Joining Letter
Company Joining Letter
company_joiningletter.jpg

<img src="images/edit-icon.png" width="18" height="18" alt="edit">

<img src="images/delete-icon.png" width="18" height="18" alt="delet">


<%--
--%>
Posted
Updated 1-Jul-15 22:23pm
v3
Comments
Herman<T>.Instance 2-Jul-15 5:37am    
16 pages of unformatted text is unreadable. And what is the question?
manognya kota 3-Jul-15 6:41am    
Hi,
I dont see any closing for the tab container nor the proper tab panel closing.
Please check .

<ajaxToolkit:TabContainer runat="server"
OnClientActiveTabChanged="ClientFunction"
Height="150px">
<ajaxToolkit:TabPanel runat="server"
HeaderText="Signature and Bio"
<contenttemplate>
...

/>
format.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900