473,321 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Popup picture on web page

I have the following code:

Expand|Select|Wrap|Line Numbers
  1. protected void contactsGrid_ItemDataBound(object sender, DataGridItemEventArgs e)
  2.     {
  3. if (e.Item.ItemType == ListItemType.SelectedItem)
  4.         {
  5.             e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='LightBlue'");
  6.             e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='#EFF3FB'");
  7.             LoadStaffImage(e.Item.Cells[6].Text);
  8.         }
  9. }
  10.  
I would like to be able to load a picture, based on ther row the user has currently hovered their mouse over in the DataGrid. When I tried debugging it, the:

LoadStaffImage(e.Item.Cells[6].Text);

line seems to load repeatedly for each row in the grid but it is not called again when the user hovers over the row. Why does this happen and can you point me in the right direction of what event I should use to do this task if the _ItemDataBound event is not the correct one?

I've also tried impleenting this in the SelectIndexChanged and EditCommand events. The ItemDataBound event appears to be the only one which has DataGridItemEventArgs as its event argument.

Many thanks
Matt
May 18 '09 #1
3 1538
NeoPa
32,556 Expert Mod 16PB
As this code looks more like c than VBA, I'm wondering if Access is the best place for this. You're welcome to leave it here if you feel it is, but I can't see too many Access experts giving this more than a quick glance I'm afraid Matt.

That's not to say you won't get lucky. I'm just wondering if another forum may not be more help to you?
May 18 '09 #2
Thanks NeoPa, my fault for putting it in the wrong place!
May 19 '09 #3
NeoPa
32,556 Expert Mod 16PB
I will happily move it for you if you tell me where the right place is (which language is it? Simple c? One of the other flavours?) ;)
May 19 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows...
1
by: MJEASSOC | last post by:
I need some help with closing a popup window. I'm making an online portfolio, that has one base page with text and thumbnails. When a user clicks on a thumb, a new window opens containing a larger...
5
by: Bob Bedford | last post by:
From my page, I've to create a page wich shows some images. I'd like to show those images without the IE or Netscap toolbar. I've two ways: 1- window.open, wich let me do everything (remove bar,...
6
by: Stevie D | last post by:
Hi I'm a Javascript newbie I'm doing a 'simple' (basically adding pages and changing text in frontpage 2000) update of a web site for a friend - what I have done 'should not' have done anything...
23
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div...
9
by: Rathtap | last post by:
I want to popup a window from my codebehind. The reason is that during the postback the code needs to do some validations and to build the arguments that are passed in the url. How can I achieve...
1
by: Jennyfer J Barco | last post by:
Hello I have a datagrid and a linkbuttom in the datagrid that says Picture, every time I click on the link "Picture" my program opens a popup window showing a picture of the item the selected and...
1
by: Giovanni Cobos | last post by:
Hello I am developing a web page in VB .NET. I am using a popup to show pictures of dresses. Mi probles is: When the used cliks on the button that calls the popup it is loaded (until this point...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.