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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:15:23+00:00 2026-06-15T06:15:23+00:00

What I want to do: I would like to implement a gridview where the

  • 0

What I want to do:

I would like to implement a gridview where the user can select rows and have the text from cells within the selected row appear on multiple textboxes on the page to be edited. I would also like for an image to be updated depending on the text in the selected row.

How I’m doing it now:

Currently, I’m using a custom clickable gridview control found here. In essence, the custom control causes a postback on clicking anywhere in the row as well as provides an “OnRowClicked” event which I can attach an event handling function. Within this function, I save the rowindex in a viewstate and then use code like:

protected void GridViewClicked(object sender, GridViewRowClickedEventArgs e){
    TextBox1.Text = System.Net.WebUtility.HtmlDecode(e.Row.Cells[0].Text);
}

To fill the text in textboxes and code like:

string filepath = "~/Bitmaps/" + TextBox1.Text + ".bmp";
    if (File.Exists(Server.MapPath(filepath)))
    {
        bitmap.ImageUrl = filepath;
    }
    else
    {
        bitmap.ImageUrl = "~/Bitmaps/NoImage.bmp";
    }

To update the image (max size 500kb) on my webpage based on the row clicked.

So what’s the problem?

Well, everything is functioning as it should. However, the issue is that each row click has a notable delay between when the mouseclick occurs and when the fields/image is updated (~0.5s) which is quite annoying. However, I don’t know what I can do to improve the performance or even if it’s an issue with the code or with the hosting service. Therefore, what I’m asking is whether or not the delay experienced is something that can be fixed or whether it’s something I just have to deal with? Or perhaps I implemented this solution in a really inefficient way? Any input is appreciated.

  • 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-15T06:15:25+00:00Added an answer on June 15, 2026 at 6:15 am

    Is this grid an Ajax control? If not, the delay may be just that you are posting back for every click. For every post back, the grid needs to regenerate all the HTML and send it back and then the browser has to render it. That’s a lot of activity!

    You can look into ways to reduce the amount of data you have to send, such as turning off view state for some controls. Or, you can look at an Ajax solution. The only thing you have to do on the server side is check for the existence of the image: everything else could be done in Javascript. An Ajax call to check the file’s existence would not be very costly in terms of performance, and would be relatively simple to write.

    A rule of thumb (and I apologize if you’re an advanced coder and know this already): the more responsive something needs to be, the fewer postbacks and calls to the server you want to make, and the less data you want to send back and forth.

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

Sidebar

Related Questions

I would like to implement MVC from scratch in PHP because I want full
Suppose I want to implement an interpreter for a functional language. I would like
I would like my users to select the columns of table they want to
I would like to build a generic class that I can use to implement
I would like to implement a drag&drop operation from TextBox to another control. The
I would like to display items from a Queue in a Gridview in Windows
I would like to implement a thread pool in Java, which can dynamically resize
I would like to implement a feature in my application that allows the user
I would like to implement per-directory quotas for a multi-user web application we're developing.
I would like to implement a URL rewrriter for DotNetNuke. Have questions as to

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.