Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 17th, 2004, 11:02 AM
Authorized User
 
Join Date: Jun 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default The server tag is not well formed ---- DATAGRID

Hi Experts,

I am trying to authenticate users through Soap headers
so that the user can consume a small web service by executing
an SQl query on the .aspx file.
While I am trying to run the code written below , I get
the server tag is not well formed error. I think the error is something to do with the <asp:DataGrid.... on line 43.
Can U give me hint. Please help,
Thank you.
...............
The error is.
...............
Parser Error
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 41: <asp:Button id="btSubmit" runat="server" text="Submit" Onclick="Submit" /><p>
Line 42:
Line 43: <asp:DataGrid id="DataGrid1" runat="server"
Line 44: BorderColor="Black"
Line 45: GridLines="Vertical"


Source File: c:\inetpub\wwwroot\AspNET\secureDatabaseService.as px Line: 43


............
the code I have used is
.................

<%@ Page Language="VB" %>
<%@ Import NameSpace="System.Data" %>

<script runat="server">

sub Submit(Sender as Object , e as EventArgs)
      dim objService as new DATABASER.Clients.SecureDatabaseService
      dim sHeader as new DATABASER.Clients.Authenticator
      dim objDS as new DataSet

      sHeader.UserName = tbUser.Text
      sHeader.Password = tbPass.Text
      objService.Authenticator = sHeader

      try
         objDs = objService.SelectSQl(tbQuery.Text)

         if objDs is Nothing Then
            Response.Write("Invalid username or Password")

         else
            DataGrid1.DataSource = objDS
            DataGrid1.DataMember = "tblUsers"
            DataGrid1.Databind()
        end if

     catch ex as exception
         Response.Write("Invalid username and password")
    end try
end sub
</script>

<html><body>
      <form runat="server">
             Username:
             <asp:TextBox id="tbUser" runat="server"/><br>
             Password:
             <asp:TextBox id="tbPass" runat="server" TextMode="Password"/><p>
             Enter a Query:
             <asp:TextBox id="tbQuery" runat="server"/>
             <asp:Button id="btSubmit" runat="server" text="Submit" OnClick="Submit"/><p>

             <asp:DataGrid id="DataGrid1"
                  runat="server" BorderColor="black"
                  GridLines="Vertical" cellpadding="4"
                  cellspacing="0" width="100%"
                  Font-Name="Arial" Font-Size"="8pt"
                  HeaderStyle-BackColor="#cccc99"
                  ItemStyle-BackColor="#ffffff"
                  AlternatingItemStyle-BackColor="#cccccc" />

        </form>
</body></html>

What is wrong on line 43????????????

Thanks

 
Old June 17th, 2004, 01:10 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Code:
Font-Size"="8pt"
---------^
 
Old June 17th, 2004, 03:18 PM
Authorized User
 
Join Date: Jun 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown Server Tag sharon5469 ASP.NET 1.0 and 1.1 Basics 3 June 18th, 2008 03:03 PM
"The server tag is not well formed" Newbie... daveyboy ASP.NET 1.0 and 1.1 Basics 5 June 6th, 2008 10:54 AM
XML That Is Not Well Formed rvanandel Ajax 3 July 2nd, 2007 11:46 AM
The server tag is not well formed. binici ASP.NET 2.0 Basics 6 May 15th, 2007 04:41 PM
Well formed HTML dkb XSLT 1 October 27th, 2003 01:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.