:)

On Wed, Dec 1, 2010 at 10:55 AM, milind mahajan
<[email protected]>wrote:

>  Instead of this "document.getElementById(*<%= p.UniqueID %>*)." in c# use
> *p.ClientID. Try this *
>
> Thanks & Regards,
>
> Milind Mahajan
>
>
>
>
>
>
> ------------------------------
> From: [email protected]
> Date: Wed, 1 Dec 2010 05:25:04 +0200
> Subject: [DotNetDevelopment] onmouseover problem
> To: [email protected]
>
>
> Hello. My brain is not working anymore :)
> Why is this like that on source? I'm giving this event from repeater
> itemdatabound event like:
>  imgAlbum.Attributes.Add("onmouseover", "document.getElementById(*<%=
> p.UniqueID %>*).style.display = '';");
> imgAlbum.Attributes.Add("onmouseout", "document.getElementById(*<%=
> p.UniqueID %>*).style.display = 'none';");
>
> But source is like that:
>  onmouseover="document..getElementById(''*&lt;%= p.UniqueID %>*')
> <img src="/photos/2.jpg"
> id="ctl00_ContentPlaceHolder1_rptPhotoAlbums_ctl01_imgAlbum" width="133"
> height="100" border="0" onmouseover="document.getElementById(''*&lt;%=
> p.UniqueID %>'*).style.display = '';"
> onmouseout="document.getElementById('*&lt;%= p.UniqueID %>*').style.display
> = 'none';" />
>
>
> kadir avci (mcpd)
> software/web developer
> web: kad1r weblogs | freelance web developer | kad1r's twitter
> loc: izmir (turkey)
> sta: freelance
>
>


-- 
Ravindra kumar
delhi

Reply via email to