Entry
Delphi: v8: Control DBWebGrid of type TextBox must be placed inside form tag with runat=server
May 24th, 2004 16:15
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 25 May 2004 - 01:09 am ------------------------
Delphi: v8: Control DBWebGrid of type TextBox must be placed inside
form tag with runat=server
---
You can e.g. manually insert the tags <form runat=server> ... </form>
around that control:
1. If you compile your application (press green '>' or F9)
at this point (make sure your Microsoft Internet
Information Server (IIS)
is running), you should see a html page, e.g. with URL
http://localhost/WebApplicationxx/webform1.aspx
but I got the error
'Control 'DBWebGrid2__ctl3__ctl0' of type 'TextBox' must
be placed inside a form tag with runat=server'
I then went to the webform1.aspx page and manually
inserted
<form runat=server>
</form>
so all together you get:
--- cut here ---------------------------------------------------------
<form runat="server">
<borland:dbwebgrid id=DBWebGrid2
style="Z-INDEX: 2; LEFT: 38px; POSITION: absolute; TOP: 30px"
runat="server" tablename="Employees"
dbdatasource="<%# DBWebDataSource1 %>">
</borland:dbwebgrid>
</form>
--- cut here ---------------------------------------------------------
---
---
Internet: see also:
---
Delphi: v8: Database: Microsoft SQL Server: Northwind: Overview: Can
you give an overview?
http://www.faqts.com/knowledge_base/view.phtml/aid/30029/fid/175
----------------------------------------------------------------------