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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:08:47+00:00 2026-05-16T11:08:47+00:00

So, here’s the scenario : I have a page in my asp.net c# based

  • 0

So, here’s the scenario:

I have a page in my asp.net c# based website, which displays data dynamically after taking the request from query strings.
For example:
Brand=HTC&model=Wildfire

Now, in this page I want to display all the deals available in each network separately.
So, on the first pageload, I retrieve the data from the tables of each network that has the requested handset in a deal, store it as a datatable in the cache.
I have a datalist for displaying the imagebuttons of the networks that have the deals of that handset. The user will click on the imagebutton of a network to view the deals of that network.

To display the deals, I am using a gridview which retrieves its datasource from the cache. Also, I have provided filtering of the rows through dropdowns in each columns’ header of the gridview.

All this is inside an updatepanel.

Everything’s working fine.

The Problem:
I want that whenever the user clicks a network’s image button, an image should appear above the gridview, containing the logo of that network.

Things that I have tried:
I am storing the networkname in the cache(which also required for filtering the gridview), whenever an imagebutton is clicked. Then, on pageload, I’m doing this:

if(ScriptManager1.IsInAsyncPostBack)
{
    Image img = new Image();
    img.ImageUrl = "images/" + Cache["network"] + "_logo.jpg";
    nw_image.Controls.Clear();
    nw_image.Controls.Add(img);
}

where, nw_image is a tablecell which i’m using to display the selected network logo.
and also I’ve saved the network logos in the images folder as: ‘network’_logo.jpg
eg: 3_logo.jpg, orange_logo.jpg

The result of this is that when I click a new image button, the image that is displayed is that of the previous network, i.e. the cache is always one postback late.

Please Help!
Thanks!

  • 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-16T11:08:48+00:00Added an answer on May 16, 2026 at 11:08 am

    At last I’ve got it to work.

    I’ve now put a static image without any properties except id = "net_img" , runat = "server" and EnableViewState = "true".

    And instead of taking the network name from the cache, I’m changing the image in the click event of the ImageButton according to the Imagebutton that is clicked.

    And it works now! 🙂

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

Sidebar

Related Questions

Here is my scenario. I have a website running under AppPool1 and that works
Here the scenario is I have many .aspx pages if any page gives error,
Here is my code (Say we have a single button on the page that
Here's my scenario - I have an SSIS job that depends on another prior
Here is a small demonstration of what my problem is: http://jsfiddle.net/k2Pqw/4/ After sizing the
Here are the tables I have: Table A which has entries with item and
Here is the Javascript I currently have <script type=text/javascript> $(function() { $('.slideshow').hover( function() {
Here is the scenario. I'm writing my geo-ruby oracle adapter for Ruby On Rails
I used javascript for loading a picture on my website depending on which small
Here's the basic setup: I have a thin bar at the top of a

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.