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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:21:06+00:00 2026-05-26T18:21:06+00:00

You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages.

  • 0

You are implementing an ASP.NET application that uses data-bound GridView controls in multiple
pages. You add JavaScript code to periodically update specific types of data
items in these GridView controls. You need to ensure that the JavaScript code can locate the
HTML elements created for each row in these GridView controls, without needing
to be changed if the controls are moved from one page to another. What should
you do?

A. Replace the GridView control with a ListView control.
B. Set the ClientIDMode attribute to Predictable in the web.config file.
C. Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.
D. Set the @ OutputCache directives VaryByControl attribute to the ID of the GridView control

  • 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-26T18:21:06+00:00Added an answer on May 26, 2026 at 6:21 pm

    Using Predictable for everything is not that great. You can find a good article on the whole topic of ClientIDMode here:

    http://www.west-wind.com/weblog/posts/2009/Nov/07/ClientIDMode-in-ASPNET-40

    In short:

    • Add ClientIDMode=”Static” to each Page (or in web.config’s setting)
    • Add ClientIDMode=”Predictable” explicitly to each List Control Children in Databound Template
    • Override explicitly to Predictable where naming conflicts are a problem and to AutoId for the extreme edge case
    • For Control Development leave at default behavior if possible (ie. Inherit from parent)
    • Override only when necessary and preferrably on individual subcontrols
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing a logging feature on a asp.net mvc2 application, that uses SqlServer2008 as
I am implementing Javascript Validation on an ASP.Net page that is inside a Master
I'm implementing the Enterprise Library Exception Handling Application Block in an ASP.NET application that
I'm implementing some asp.net application in .NET Framework 1.1. Within that application I want
I am implementing a new ASP.NET MVC 3 application that will use a form
I have an ASP.net application that uses some common business object that we have
I am implementing the URL Routing in my asp.net application, in that my some
I've written some custom model binders (implementing IModelBinder) in our ASP.NET MVC application. I'm
I'm implementing a cache in a class library that i'm using in an asp.net
I'm implementing StructureMap in a multi-tenant ASP.NET MVC application to inject instances of my

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.