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

  • Home
  • SEARCH
  • 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 5841991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:57:36+00:00 2026-05-22T11:57:36+00:00

I have this HTML. <asp:FormView ID=FormView1 runat=server DataSourceID=SqlDataSource1> <asp:FormView ID=FormView2 runat=server DefaultMode=Insert DataSourceID=SqlDataSource2> <asp:TextBox

  • 0

I have this HTML.

<asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1">
    <asp:FormView ID="FormView2" runat="server" DefaultMode="Insert" DataSourceID="SqlDataSource2">
       <asp:TextBox runat="Server" Text='<%# Eval("Terms") %>'></asp:TextBox>
    </asp:FormView>
</asp:FormView>

The code above works without any error but I want to get terms in the textbox fetched from SqlDataSource1 of FormView1 instead of FormView2 (SqlDataSource2). What I am missing here?

  • 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-22T11:57:37+00:00Added an answer on May 22, 2026 at 11:57 am

    You can access the value of Parent formView DataSource value in child formview as what you are currently doing. But there is another way you set value. like..

    protected void ChildFormWiew_DataBound(object sender, EventArgs e)
    {
        if (ChildFormView.CurrentMode == FormViewMode.Edit)
        {
            TextBox txtTemrs = ParentFormView.FindControl("Terms") as TextBox;
            ((TextBox)ChildFormView.FindControl("Terms")).Text = txtTemrs.Text;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this simple code: <html> <body> <form name=f1> <asp:Label name=lbl runat=server Text=Label onclick=lblClick()></asp:Label>
I have this CheckBoxList on a page: <asp:checkboxlist runat=server id=Locations datasourceid=LocationsDatasource datatextfield=CountryName datavaluefield=CountryCode />
I have this much HTML <asp:Button ID=btnSaveContest runat=server Text=Save &amp; Publish Contest OnClientClick= ValidateCreateContest();
I have this label control in my web page <asp:Label ID=Label1 runat=server Text=test></asp:Label> And
I have this HTML input in a asp.net MVC page: <%=Html.TextBox(Submission.FirstName, null, new {
I have this repeater: <asp:Repeater ID=rptContentPageGetAll runat=server OnLoad=rptContentPagesGetAll_Load> <HeaderTemplate> <ul class=contentPageTree> </HeaderTemplate> <ItemTemplate> <li><%#
I have this HTML tag: <span id=pricea runat=server>13323223</span> and I am changing this value
I have this html code <table id=rounded runat=server style=position:relative;left:-45px; > <thead> <tr> <th scope=col
I have this that gets bound in my code behind: <asp:DropDownList id=ddlPopulation runat=server DataTextField=population
i have this code in one of my asp.net mvc views: <%Html.RenderFile(@C:\Members\newsletters\welcome.html);%> I have

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.