problem with web controls
-
i am making a website in VS 2005 wth framework 2.0. i have created a masterpage.and placed a content holder there. in the next default page,which is inherited the masterpage contains a table with 10 x 10 rows and columns.problem is that i cant place any textbox or other web controls in that table.when placing this error is coming**:"Control 'ctl00_ContentPlaceHolder1_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server."** all other labels are coming.how to solve this?
"I am burning...the only thing rest in me is you..."
-
i am making a website in VS 2005 wth framework 2.0. i have created a masterpage.and placed a content holder there. in the next default page,which is inherited the masterpage contains a table with 10 x 10 rows and columns.problem is that i cant place any textbox or other web controls in that table.when placing this error is coming**:"Control 'ctl00_ContentPlaceHolder1_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server."** all other labels are coming.how to solve this?
"I am burning...the only thing rest in me is you..."
COOl... In the design mode keep the cursor within content then you can drag and drop any control(here textbox),after getting that you can place it where ever you want(here table cell) Try it out let me know the result 'coz i am new to programming "HAPPY PROGRAMMING"
-
i am making a website in VS 2005 wth framework 2.0. i have created a masterpage.and placed a content holder there. in the next default page,which is inherited the masterpage contains a table with 10 x 10 rows and columns.problem is that i cant place any textbox or other web controls in that table.when placing this error is coming**:"Control 'ctl00_ContentPlaceHolder1_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server."** all other labels are coming.how to solve this?
"I am burning...the only thing rest in me is you..."
-
COOl... In the design mode keep the cursor within content then you can drag and drop any control(here textbox),after getting that you can place it where ever you want(here table cell) Try it out let me know the result 'coz i am new to programming "HAPPY PROGRAMMING"
-
i am making a website in VS 2005 wth framework 2.0. i have created a masterpage.and placed a content holder there. in the next default page,which is inherited the masterpage contains a table with 10 x 10 rows and columns.problem is that i cant place any textbox or other web controls in that table.when placing this error is coming**:"Control 'ctl00_ContentPlaceHolder1_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server."** all other labels are coming.how to solve this?
"I am burning...the only thing rest in me is you..."
Can You write here your default page html code.........
Deepak :) Smile a Lots,Its Costs Nothing
-
Can You write here your default page html code.........
Deepak :) Smile a Lots,Its Costs Nothing
-
while removing that,it shows an error in the cell itself:"Error creating control-Text box: no "runat=server" ttribute is present on the text tag.
"I am burning...the only thing rest in me is you..."
-
@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
Are you using one or more content palce holder into your masterpage if yes then use the following code in ur aspx page Now put ur table's code here * this is ur masterpage content place holder ID Hope this'll help u now time for leave if u want to more help thn write to here i'll able to solve this tomarow.... till thn njoy your error or njoy your output.... Deepak :) Smile a Lots,Its Costs Nothing
-
i am making a website in VS 2005 wth framework 2.0. i have created a masterpage.and placed a content holder there. in the next default page,which is inherited the masterpage contains a table with 10 x 10 rows and columns.problem is that i cant place any textbox or other web controls in that table.when placing this error is coming**:"Control 'ctl00_ContentPlaceHolder1_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server."** all other labels are coming.how to solve this?
"I am burning...the only thing rest in me is you..."
Please check the following things. 1. Do you have form tag in your master page? 2. All web controls are in form tag??
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
Please checked "Ignore HTML tags in this message (good for code snippets)" when you post your code..
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
i am making a website in VS 2005 wth framework 2.0. i have created a masterpage.and placed a content holder there. in the next default page,which is inherited the masterpage contains a table with 10 x 10 rows and columns.problem is that i cant place any textbox or other web controls in that table.when placing this error is coming**:"Control 'ctl00_ContentPlaceHolder1_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server."** all other labels are coming.how to solve this?
"I am burning...the only thing rest in me is you..."
This message means that you are trying to place a text box outside the page form. You need to ensure that you place the textbox between a form tag with runat="server". For example:
<asp:TextBox id="textbox1" runat="server" />
If you want the textbox to be in the table then ensure that the table is between the form tags. The simplest solution is to add the form tag to the master page so that it wraps the content place holder, this means that any page that inherits the master page will automatically have the form tag. This is not best practice because it will mean that pages that do not use forms will have the form and therefore view state sent with them which increase page download times and eats your bandwidth, but for quick test solution its job done. Hope this helps. -
This message means that you are trying to place a text box outside the page form. You need to ensure that you place the textbox between a form tag with runat="server". For example:
<asp:TextBox id="textbox1" runat="server" />
If you want the textbox to be in the table then ensure that the table is between the form tags. The simplest solution is to add the form tag to the master page so that it wraps the content place holder, this means that any page that inherits the master page will automatically have the form tag. This is not best practice because it will mean that pages that do not use forms will have the form and therefore view state sent with them which increase page download times and eats your bandwidth, but for quick test solution its job done. Hope this helps. -
Can You write here your default page html code.........
Deepak :) Smile a Lots,Its Costs Nothing
-
Please check the following things. 1. Do you have form tag in your master page? 2. All web controls are in form tag??
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
Its working fine now.Thank you very much.Actually i m new to frame work 2.0 and form tag.
"I am burning...the only thing rest in me is you..."
glad to hear that. :)
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
Its working fine now.Thank you very much.Actually i m new to frame work 2.0 and form tag.
"I am burning...the only thing rest in me is you..."
Thanks And Regards
Deepak :) Smile a Lots,Its Costs Nothing