Note that there are some explanatory texts on larger screens.

plurals
  1. POASPxTextbox.Text is empty
    text
    copied!<p>I have a textbox named ASPxTextBox1 in a gridview's footer. I get the textbox in codebehind:</p> <pre><code> var tbox = (DevExpress.Web.ASPxEditors.ASPxTextBox)grdCommunication.FindFooterCellTemplateControl(grdCommunication.Columns[3],"ASPxTextBox1"); </code></pre> <p>The textbox is not null, so I have it in my hands. Still, tbox.Text is always empty (""). Any idea? </p> <p>Here's the aspx, just in case:</p> <pre><code> &lt;dx:ASPxGridView ID="grdCommunication" runat="server" DataSourceID="CommunicationSQLDataSource" Settings-ShowFooter="True" OnRowInserting="grdCommunication_RowInserting" AutoGenerateColumns="False" Width="500px"&gt; &lt;Columns&gt; &lt;dx:GridViewCommandColumn VisibleIndex="0"&gt; &lt;/dx:GridViewCommandColumn&gt; &lt;dx:GridViewDataDateColumn FieldName="Date" VisibleIndex="1"&gt; &lt;/dx:GridViewDataDateColumn&gt; &lt;dx:GridViewDataTextColumn FieldName="UserName" VisibleIndex="2"&gt;&lt;/dx:GridViewDataTextColumn&gt; &lt;dx:GridViewDataTextColumn FieldName="Message" VisibleIndex="3"&gt; &lt;FooterTemplate&gt; &lt;dx:ASPxTextBox ID="ASPxTextBox1" runat="server" Height="32px" Width="169px"&gt;&lt;/dx:ASPxTextBox&gt; &lt;dx:ASPxButton ID="ASPxButton1" runat="server" Height="19px" Text="ASPxButton" Width="255px" CommandName="Insert" OnClick="ASPxButton1_Click1"&gt;&lt;/dx:ASPxButton&gt; &lt;/FooterTemplate&gt; &lt;/dx:GridViewDataTextColumn&gt; &lt;/Columns&gt; &lt;Settings ShowColumnHeaders="False"&gt;&lt;/Settings&gt; &lt;/dx:ASPxGridView&gt; </code></pre> <p>The Page_Load:</p> <pre><code> protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { Response.Redirect("~/Account/Login.aspx?ReturnUrl=" + HttpContext.Current.Request.Url.AbsolutePath); } else { activeuserID = Membership.GetUser(User.Identity.Name).ProviderUserKey.ToString(); } pid = "05811de5-6345-4806-b489-154576c69e6d"; CommunicationSQLDataSource.SelectParameters["ProjectID"].DefaultValue = pid; grdCommunication.DataBind(); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload