Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 708611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:24:38+00:00 2026-05-14T04:24:38+00:00

I have to add a textbox inside a form that is composed of a

  • 0

I have to add a textbox inside a form that is composed of a lot of textboxes, and one button at the end. It has a datasource, all data is loaded in formload, and the button updates the values of the textboxes. The thing is: this particular textbox won’t be in the datasource, I want to get this from the web.config, and I’ve already managed to change the web.config in other page, but in this case, the textbox ID won’t appear in intellisense in the code-behind of the page itself, so I figured it’s unaccessible to anything besides the pure binding of the form.

<asp:FormView>
<EditItemTemplate>
    <asp:TextBox ID="id" runat="server" Text='<%# bind("field") %>'/>
    <asp:TextBox ID="id2" runat="server" Text='<%# bind("field2") %>'/>
    <asp:TextBox ID="id3" runat="server" Text='<%# bind("field3") %>'/>

    <asp:TextBox ID="THIS_ONE" runat="server"></asp:TextBox> <!--HERE-->

    <asp:Button ID="UpdateButton" runat="server" SkinID="UpdateButton" CommandName="Update"/>

</EditItemTemplate>
</asp:FormView>

Above, I have an unaccessible textbox.

<asp:FormView>
<EditItemTemplate>
    <asp:TextBox ID="id" runat="server" Text='<%# bind("field") %>'/>
    <asp:TextBox ID="id2" runat="server" Text='<%# bind("field2") %>'/>
    <asp:TextBox ID="id3" runat="server" Text='<%# bind("field3") %>'/>

    <asp:Button ID="UpdateButton" runat="server" SkinID="UpdateButton" CommandName="Update"/>

</EditItemTemplate>
</asp:FormView>

    <asp:TextBox ID="THIS_ONE" runat="server"></asp:TextBox><!--HERE-->

Above, I have an accessible textbox, but BELOW the update button.

I’ve already tried closing EditItemTemplate before the textbox and re-opening it afterwards. Doesn’t work.

I could of course put it below the button, below where the form ends, then they wouldn’t be part of the form, and that would work, but what if I want the textboxes ABOVE the button ? I want accessible unbinded textboxes inside an ASP.NET formview. Is that possible ?

ps.: I know the implications of messing with web.config in run-time and I know that this doesn’t seem well planned, but I didn’t say some details that don’t matter for this question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:24:38+00:00Added an answer on May 14, 2026 at 4:24 am

    If your issue trying to access the textbox? You can use FormView1.FindControl() to obtain a reference to the control within the formview…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a textbox in a form that I created. I want to add
I have: Textbox(Multi-line) Panel Different controls inside panel (buttons,textbox) Scenario: I need to add
I have a textbox with an 'Add to clipboard' button next to it. Whenever
I have an add this button on the website that is rendering a border
I have a Panel control. And inside the panel users can add combobox's, textbox's
Inside of an asp.net mvc partial view, I have an Ajax form that posts
I have a form (AddNewCamper), which contains a textbox and a submit button. In
I have 4 jQuery autocomplete textboxes. I need to add some style to one
I have one TextBox inside a UserControl , and this UserControl is repeating inside
i have form where i have text box value and link (add). when user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.