PC Review


Reply
Thread Tools Rate Thread

ASP.NET controls that are required/not required to be inside form runat=server

 
 
Gary Bagen
Guest
Posts: n/a
 
      11th Feb 2004
Hello,

I am working on a page transition scheme and was wondering what the
quickest way is to find out which ASP.NET controls need to be inside a
form with runat=server. I've determined that asp:Label does not need
to have the form runat=server and that asp:Textbox requires it.

Thanks,
Gar
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VmlwdWwgUGF0ZWw=?=
Guest
Posts: n/a
 
      12th Feb 2004
Hi,

All controls which trigger control-specific evenst on the server will require runat=="server" tag... E.g. text box. (all server controls are included in this)

On the other hand, HTML Controls can trigger only page- level events on server (postback).

Since Label control happens to occurs in both Server controls and HTML controls, you may be getting confused. And I am asuming that you are talking about the HTML Label control, in your reference to remove the runat="server" tag.

FYI: If you have the runat="server' tag on the Label control, it will act as server controls, else
a HTML control.



----- Gary Bagen wrote: -----

Hello,

I am working on a page transition scheme and was wondering what the
quickest way is to find out which ASP.NET controls need to be inside a
form with runat=server. I've determined that asp:Label does not need
to have the form runat=server and that asp:Textbox requires it.

Thanks,
Gar

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time error: <Control Name> must be placed inside a form tag with runat=server Matthew Louden Microsoft ASP .NET 6 12th Oct 2006 07:54 AM
'DataGridLinkButton' must be placed inside a form tag with runat=server. Sen Mathew via .NET 247 Microsoft ASP .NET 2 7th Apr 2005 01:29 PM
Control 'X' of type 'RadioButton' must be placed inside a form tag with runat=server. Tom wilson Microsoft ASP .NET 7 10th Feb 2005 06:47 PM
must be placed inside a form tag with runat=server with inheritanc =?Utf-8?B?dHJpbml0eXBldGU=?= Microsoft ASP .NET 2 22nd Dec 2004 02:59 AM
html tag, runat server - cant find required properties!!??? Milsnips Microsoft ASP .NET 2 4th Nov 2004 05:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:30 AM.