faqts : Computers : Programming : Languages : Delphi

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes

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

----------------------------------------------------------------------