What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 410 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > user control error in asp.net and c# ...
Reddysankark@Yahoo.Com

user control error in asp.net and c#

Replies: 1 | Posted by: Reddysankark@Yahoo.Com on 8/9/2012 | Category: ASP.NET Forums | Views: 297 | Status: [Member] | Points: 10  


hi,

i got error in user control its showing error in my page as error rendering control-UcHeader1 an unhandled exception has ocurred html anchor properties.why this type of error is coming please tell me i am new in this field

my page

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="frmBrandsDetails.aspx.cs" Inherits="Admin_CatalogManagement_frmBrandsDetails" Title="E-Postal Services Network" %>

<%@ Register Src="Controls/ucBrandsList.ascx" TagName="ucBrandsList" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
&nbsp;
</asp:Content>

my user contraol

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucBrandsList.ascx.cs" Inherits="Admin_CatalogManagement_Controls_ucProductList" %>
<table style="width:100%; border:0" cellpadding="0" cellspacing="0">
<tr>
<td style="width:100%" align="left">
<asp:LinkButton ID="lbtnAddRecord" Text="Add New Record" runat="server"></asp:LinkButton>
</td>
</tr>
<tr>
<td style="width:100%" align="left">
<asp:Panel ID="pnlProductList" runat="server" ScrollBars="None" Width="100%">
<asp:DataList ID="dlResult" runat="server" RepeatColumns="1" Width="100%" OnSelectedIndexChanged="dlResult_SelectedIndexChanged">
<HeaderStyle BackColor="Navy" />
<ItemStyle BackColor="ActiveBorder" />
<AlternatingItemStyle BackColor="ButtonFace" />
<HeaderTemplate>
<table style="width:100%; border:0" cellpadding="0" cellspacing="0">
<tr>


</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>

sankarreddy


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Vikash
Vikash  
Posted on: 8/12/2012 8:01:45 AM
Level: Starter | Status: [Member] | Points: 25

Sir, first of all you have only opening tag of the <HeaderTemplate> tag .
So make approriate closing tag & then try again............

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucBrandsList.ascx.cs" Inherits="Admin_CatalogManagement_Controls_ucProductList" %>
<table style="width:100%; border:0" cellpadding="0" cellspacing="0">
<tr>
<td style="width:100%" align="left">
<asp:LinkButton ID="lbtnAddRecord" Text="Add New Record" runat="server"></asp:LinkButton>
</td>
</tr>
<tr>
<td style="width:100%" align="left">
<asp:Panel ID="pnlProductList" runat="server" ScrollBars="None" Width="100%">
<asp:DataList ID="dlResult" runat="server" RepeatColumns="1" Width="100%" OnSelectedIndexChanged="dlResult_SelectedIndexChanged">
<HeaderStyle BackColor="Navy" />
<ItemStyle BackColor="ActiveBorder" />
<AlternatingItemStyle BackColor="ButtonFace" />
<HeaderTemplate>
<table style="width:100%; border:0" cellpadding="0" cellspacing="0">
<tr>
</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>


Regards,
Vikash Pathak

Reddysankark@Yahoo.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/24/2013 9:51:30 PM