473,569 Members | 2,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The server tag is not well formed

I am very new at all of this and am using a book to put together an
e-commerce website using VS.NET 2003. I have run into a problem and have
looked around the web but with no help. I am getting the following error
when I try to load my website.

Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The server tag is not well formed.

Source Error:

Line 6: <SelectedItemTe mplate>
Line 7: »
Line 8: <asp:HyperLin k id=HyperLink2 runat="server"
Line 9: NavigateUrl='<% # "../default.aspx?De partmentID=" &
Line 10: DataBinder.Eval (Container.Data Item, "department ID") &

If any one would like to check out the error my website's address is
http://surfnsun.gasner.com

Thanks very much in advance

Davey

Jul 21 '05 #1
5 7097
Open the page with the designer, drag and drop a link control
on the form. Compare it to yours. You are missing the end
tag for the link control.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com .
http://www.eggheadcafe.com/forums/merit.asp

"df******@hotma il.com" <df************ ****@discussion s.microsoft.com > wrote
in message news:3F******** *************** ***********@mic rosoft.com...
I am very new at all of this and am using a book to put together an
e-commerce website using VS.NET 2003. I have run into a problem and have
looked around the web but with no help. I am getting the following error
when I try to load my website.

Description: An error occurred during the parsing of a resource required
to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The server tag is not well formed.

Source Error:

Line 6: <SelectedItemTe mplate>
Line 7: »
Line 8: <asp:HyperLin k id=HyperLink2 runat="server"
Line 9: NavigateUrl='<% # "../default.aspx?De partmentID=" &
Line 10: DataBinder.Eval (Container.Data Item, "department ID") &

If any one would like to check out the error my website's address is
http://surfnsun.gasner.com

Thanks very much in advance

Davey

Jul 21 '05 #2
It's not showing the error totally clearly (is that suppose to be &amp;
?) but...

try
<asp:HyperLin k NavigateUrl="bl ah.asp?blah=<%# DataBinder%>" ...

I am assuming that your basic syntax is correct :
<SelectedItemTe mplate>
<asp:Hyperlin k runat="server" ... />
-or -
<asp:Hyperlin k runat="server> ... </asp:hyperlink>
</SelectedItemTem plate>

Just make sure it's closed, or you can post the whole selected item
template code. I would also try without the <%..%> part first, in case
that is the problem.

Jul 21 '05 #3
Hi

You haven't posted the whole link so I think there is a problem with tag
ending. I tested the follwing code and it works properly.

Complete Code :

»<asp:HyperLin k id=Hyprelink2 runat="server" NavigateUrl='<% #
"../default.aspx?De partmentID=" & DataBinder.Eval (Container.Data Item,
"Department id") %>' >Your link text</asp:HyperLink>

regards,
Bhavesh Patel
"df******@hotma il.com" wrote:
I am very new at all of this and am using a book to put together an
e-commerce website using VS.NET 2003. I have run into a problem and have
looked around the web but with no help. I am getting the following error
when I try to load my website.

Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The server tag is not well formed.

Source Error:

Line 6: <SelectedItemTe mplate>
Line 7: »
Line 8: <asp:HyperLin k id=HyperLink2 runat="server"
Line 9: NavigateUrl='<% # "../default.aspx?De partmentID=" &
Line 10: DataBinder.Eval (Container.Data Item, "department ID") &

If any one would like to check out the error my website's address is
http://surfnsun.gasner.com

Thanks very much in advance

Davey

Jul 21 '05 #4
Ok I'l do my best to put most of the code from the user control out here but
there is a problem and the &amp things dont show up as what they are supposed
to. Here is the entire code for the page witht the problems.

"<%@ Control Language="vb" AutoEventWireup ="false"
Codebehind="Dep artmentList.asc x.vb"
Inherits="surfn sun.gasner.com. DepartmentList"
TargetSchema="h ttp://schemas.microso ft.com/intellisense/ie5" %>"
<asp:DataList id="list" runat="server" CellPadding="0" >
<HeaderTemplate >
<IMG alt="" src="Images/DeptHeader.gif" border="0">
</HeaderTemplate>
<SelectedItemTe mplate>
&nbsp;»
<asp:HyperLin k id=HyperLink2 runat="server"
NavigateUrl="'< %# "../default.aspx?De partmentID=" &
DataBinder.Eval (Container.Data Item, "department ID") &
"&DepartmentInd ex=" & Container.ItemI ndex %>'"
Text="'<%# DataBinder.Eval (Container.Data Item, "Name") %>'"
CssClass="Depar tmentSelected">
</asp:HyperLink>
</SelectedItemTem plate>
<FooterTemplate >
<IMG alt="" src="Images/DeptFooter.gif" border="0">
</FooterTemplate>
<ItemStyle BackColor="Yell ow"></ItemStyle>
<ItemTemplate >
»
<asp:HyperLin k ID=HyperLink1 Runat="server"
NavigateUrl="'< %# "../default.aspx?De partmentID=" &
DataBinder.Eval (Container.Data Item, "Department ID") &
"&DepartmentInd ex=" & Conatiner.ItemI ndex %>'"
Text="'<%# DataBinder.Eval (Container.Data Item, "Name") %>'"
CssClass="Depar tmentUnselected ">
</asp:HyperLink>
</ItemTemplate>
<HeaderStyle BackColor="Yell ow"></HeaderStyle>
</asp:DataList>

Thank you very much for your help if you would like to see anything else
just tell me it is very much apprietiated.
Davey

"df******@hotma il.com" wrote:
I am very new at all of this and am using a book to put together an
e-commerce website using VS.NET 2003. I have run into a problem and have
looked around the web but with no help. I am getting the following error
when I try to load my website.

Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The server tag is not well formed.

Source Error:

Line 6: <SelectedItemTe mplate>
Line 7: »
Line 8: <asp:HyperLin k id=HyperLink2 runat="server"
Line 9: NavigateUrl='<% # "../default.aspx?De partmentID=" &
Line 10: DataBinder.Eval (Container.Data Item, "department ID") &

If any one would like to check out the error my website's address is
http://surfnsun.gasner.com

Thanks very much in advance

Davey

Jul 21 '05 #5
Dear Friend

You have made a small mistake in Hyperlink formation.I parsed your code and
noted that you have set the Text and NavigateUrl property wrongly.

Just remove the double quote from the start and end of the each
property,your code will definately work.So the NavigateUrl and Text property
should be like

True Assignment:
NavigateUrl ='www.microsoft .com'
Text='Microsoft '

Wrong assignment:
NavigateUrl =" 'www.microsoft. com' "
Text=" 'Microsoft' "

Well there is not a problem with the "&" in your code.If you have still
problem than let me know I'll try to solve it.

Thanks,
Bhavesh Patel.
"df******@hotma il.com" wrote:
Ok I'l do my best to put most of the code from the user control out here but
there is a problem and the & things dont show up as what they are supposed
to. Here is the entire code for the page witht the problems.

"<%@ Control Language="vb" AutoEventWireup ="false"
Codebehind="Dep artmentList.asc x.vb"
Inherits="surfn sun.gasner.com. DepartmentList"
TargetSchema="h ttp://schemas.microso ft.com/intellisense/ie5" %>"
<asp:DataList id="list" runat="server" CellPadding="0" >
<HeaderTemplate >
<IMG alt="" src="Images/DeptHeader.gif" border="0">
</HeaderTemplate>
<SelectedItemTe mplate>
»
<asp:HyperLin k id=HyperLink2 runat="server"
NavigateUrl="'< %# "../default.aspx?De partmentID=" &
DataBinder.Eval (Container.Data Item, "department ID") &
"&DepartmentInd ex=" & Container.ItemI ndex %>'"
Text="'<%# DataBinder.Eval (Container.Data Item, "Name") %>'"
CssClass="Depar tmentSelected">
</asp:HyperLink>
</SelectedItemTem plate>
<FooterTemplate >
<IMG alt="" src="Images/DeptFooter.gif" border="0">
</FooterTemplate>
<ItemStyle BackColor="Yell ow"></ItemStyle>
<ItemTemplate >
»
<asp:HyperLin k ID=HyperLink1 Runat="server"
NavigateUrl="'< %# "../default.aspx?De partmentID=" &
DataBinder.Eval (Container.Data Item, "Department ID") &
"&DepartmentInd ex=" & Conatiner.ItemI ndex %>'"
Text="'<%# DataBinder.Eval (Container.Data Item, "Name") %>'"
CssClass="Depar tmentUnselected ">
</asp:HyperLink>
</ItemTemplate>
<HeaderStyle BackColor="Yell ow"></HeaderStyle>
</asp:DataList>

Thank you very much for your help if you would like to see anything else
just tell me it is very much apprietiated.
Davey

"df******@hotma il.com" wrote:
I am very new at all of this and am using a book to put together an
e-commerce website using VS.NET 2003. I have run into a problem and have
looked around the web but with no help. I am getting the following error
when I try to load my website.

Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: The server tag is not well formed.

Source Error:

Line 6: <SelectedItemTe mplate>
Line 7: »
Line 8: <asp:HyperLin k id=HyperLink2 runat="server"
Line 9: NavigateUrl='<% # "../default.aspx?De partmentID=" &
Line 10: DataBinder.Eval (Container.Data Item, "department ID") &

If any one would like to check out the error my website's address is
http://surfnsun.gasner.com

Thanks very much in advance

Davey

Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3530
by: Stop Bsod | last post by:
Hello, I'm quite a newbie in XML. What I wanted to do is just a simple web page (html or xhtml) that use XML. The point of the page is to show all my links/bookmarks, wherever I want to see them through a browser. So, I wrote a simple XML file and a simple XSL-T file that process the XML. I like it : really easy to maintain, change the...
0
1827
by: dfgasner | last post by:
I am very new at all of this and am using a book to put together an e-commerce website using VS.NET 2003. I have run into a problem and have looked around the web but with no help. I am getting the following error when I try to load my website. Description: An error occurred during the parsing of a resource required to service this...
21
1789
by: Agoston Bejo | last post by:
Hi, I would like to achieve the equivalent of META REFRESH but without the HTML meta refresh and without JavaScript. In other words, on server side I would like to wait some seconds, then redirect the page. Is there any way to do this?
2
2170
by: Arpan | last post by:
I came across the following statement at http://windowssdk.msdn.microsoft.com/en-us/library/hdf992b8.aspx: Although an XML document is considered to be well formed if it meets all the syntactical requirements defined by the World Wide Web Consortium (W3C) Extensible Markup Language (XML) 1.0 Recommendation, it is not considered valid unless...
2
6937
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
1
4589
by: alien_attack | last post by:
I have the a repeater which is databound to an XmlDatasource. Inside the repeater is a Label as follows: <asp:Label ID="lbl" runat="server" Text='<%# XPath("Asset_Metadata/@Value")%>' /> This gives me a "The server tag is not well formed". It seems to be because of the single quotes in the XPath statement. I've tried changing the...
3
506
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi,misters I'll try put an attribute runat="server" to TR in ItemTemplate of DAtalist .... <ItemTemplate> <tr id="filaListado<%# Eval("idtareasworkflow") %>" onclick="SeleccionarFilaLis('<%# Eval("idtareasworkflow") %>', '<%# Eval("Offset") %>');"
3
8787
by: preeti13 | last post by:
Hi friends i am getting the error into my applictaion The server tag is not well formed.i am trying to get the eomid here is my code please help me friends. Page language="c#" Codebehind="Accomplishment.aspx.cs" AutoEventWireup="false" Inherits="Accomplishments.Accomplishment" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >...
1
20202
by: LiveCycle | last post by:
Hi, I've got a longstanding project that's been working fine for about a year. I was working on one of the pages, a simple download page. After making a little tweak on the page, I tried to re-run the project and got the error: The server block is not well formed. Page: FileDownload.aspx, line 23935. Now, there are only about 50 lines...
0
7922
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8119
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7668
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.