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 8900739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:10:17+00:00 2026-06-15T01:10:17+00:00

I have a FormView that has a repeater inside. In order to render the

  • 0

I have a FormView that has a repeater inside. In order to render the ItemTemplate I do a fake datasource and databind.
Then I look for the Repeater with FindControl and do another DataSource and DataBind.
So in this case HardCodedData is just a placehoder to get me to renter the FormView ItemTemplate.

FormView1.DataSource = HardCodedData;
FormView1.DataBind();

Repeater r = ((Repeater)FormView1.FindControl("repeater1"));
r.DataSource = GetMyData();
r.DataBind(); 

Is there a better way? Can I just get FormView to renter without giving it fake data? Or can I pass the repeater data through the FormView DataSource?

  • 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-06-15T01:10:18+00:00Added an answer on June 15, 2026 at 1:10 am

    As a repeater control is inside the form view than you should bind this repeater control inside the form view’s event DataBound threw that you will be get exact data which you want to get. Put your following code inside your FormView1_DataBound event.

    Repeater r = ((Repeater)FormView1.FindControl("repeater1"));
    r.DataSource = GetMyData();
    r.DataBind();
    

    May be this solution can help you….

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

Sidebar

Related Questions

Greetings! I have a Repeater control that's using an XmlDataSource control. <asp:FormView id=myFormView runat=server
I have a ListView inside a FormView that, for some strange reason, doesn't fire
the problem is that I do have an ASP.NET TextBox in a FormView with
I have an asp:FormView with an ItemTemplate. I'd like to design the content within
I have an asp:FormView control bound to a datasource. Everything is working fine. If
I have a fileupload control inside a formview. I would like it to cause
I have a FormView (with paging enabled) that is bound to a LinqDataSource on
I have a view which handles a form. This form has an event that
I have an ASP.NET Web Application that has a dropdownlist which pulls up student
I have a View that has a UIWebView, and an OptionsPane (Custom UIViewController with

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.