There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox firewall freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware motherboard mouse network networking outlook outlook 2007 popups power printer problem ram router screen slow sound trojan usb virus vista vista 32-bit windows windows xp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
server tag is not well formed asp:label


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
jat's Avatar
jat jat is offline
Junior Member with 1 posts.
 
Join Date: Aug 2003
Location: Leicestershire
09-Aug-2003, 08:17 AM #1
Question server tag is not well formed asp:label
Hi I am trying to learn ASP.NET and I admit I don't know much at the minute so this might be a stupid question

I am running Windows Server 2000 with IIS, Microsoft .NET Framework SDK v1.1

This is error I get:

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

Source Error:


Line 14: <asp:button id="btSubmit" Text="Submit"
Line 15: OnClick="btSubmit_Click" runat="server"/><p>
Line 16: <asp:label id="lblMessage" font.size="20pt" runat="server"/>
Line 17: </form>
Line 18: </body></html>

This is my code:

<%@ Page Language="VB" %>
<script language="VB" runat="server">
Sub btSubmit_Click(Sender As Object, E As EventArgs)
lblMessage.Text=Cint(tbNumber1.Text) * _
Cint(tbNumber2.Text)
End Sub
</script>
<html>
<body>
<font size="5">I hope this page works!</font><hr><p>
<form runat="server">
Number One: <asp:textbox id="tbNumber1" runat="server"/>
Number Two: <asp:textbox id="tbNumber2" runat="server"/>
<asp:button id="btSubmit" Text="Submit"
OnClick="btSubmit_Click" runat="server"/><p>
<asp:label id="lblMessage" font.size="20pt" runat="server"/>
</form>
</body></html>

I would be grateful for any help!
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
10-Aug-2003, 10:32 PM #2
Could be as simple as Line 14 carrying over to line 15. Make sure that in your editor, word-wrap is turned off and the asp button codeis actually all on one line. If not that, try getting rid of the p tag for second to see if that's the cause.
__________________
10 ? "a line as the unending horizon"
20 ? "a curve as the rolling hillside"
30 ? "a point as a distant bird"
40 ? "a ray as the rising sun"
run

Last edited by Shadow2531 : 10-Aug-2003 10:56 PM.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:08 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.