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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:33:03+00:00 2026-06-04T13:33:03+00:00

In my sample asp.net app, that can be found here , I create dynamic

  • 0

In my sample asp.net app, that can be found here , I create dynamic controls on Page Init.
Then if the user enters text in the controls and the button is clicked, all the controls should be recreated with new values.

The page overwrites the populated values in the first row with the user’s manually entered data.

Any ideas on how to prevent this without changing to html controls or MVC ?

  • 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-04T13:33:04+00:00Added an answer on June 4, 2026 at 1:33 pm

    I ended up doing a workaround to keep state myself where I add a querystring variable to tell my code if its first load or postback. The I redirected to the same page with the new variable which forced the controls to be cleared.

    Another way would have been to check IsPostBack on form load and replaced the ViewState assigned values again from my stored object values.

    Still cant see why by disabling Viewstate on page and controls it still populates my dynamic controls with viewstate values.

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

Sidebar

Related Questions

My ASP.NET MVC intranet app has a data repository that uses current user's Windows
I'm doing shared hosting with GoDaddy and I developed a sample ASP.NET MVC app
i'm currently trying to make a asp.net mvc3 app. in the sample application which
I'm trying to add simple login page to ASP.NET MVC app. I actually use
how can I display labels for the asp.net chart? I attached a sample chart.
In a rather simple ASP.NET application where the user can upload a image, mostly
I am writing an asp.net MVC app that drives an IPhone application. I want
I have a function that updates a user in the asp.net membership provider. <AcceptVerbs(HttpVerbs.Post)>
Does anyone have a sample of how to patch a running asp.net app? The
I have an iPad app that submits orders to an ASP.NET MVC web site

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.