M
Mark
Hello
Ok, I have this datagrid an in the itemdatabound sub I have this code
strTemp = _strProgressImagesURL & e.Item.Cells(2).Text &
".jpg?e=2&w=105&h=70"
_myImage = New System.Web.UI.WebControls.Image
_myImage.ImageUrl = strTemp
_myImage.BorderStyle = BorderStyle.Inset
_myImage.BorderWidth = Unit.Pixel(5)
_myImage.ID = "img" & e.Item.Cells(0).Text
e.Item.Cells(2).Text = ""
_myImage.Attributes.Add("onclick", "GetImage()")
e.Item.Cells(2).Controls.Add(_myImage)
Now everything works fine except i cant get the attribute to work. on the
aspx file I have this just to tell me its working
<script language=vb runat=server>
sub GetImage(sender as object,e as eventargs)
response.write "Made it"
end sub
But it dont work. Help please
Thansk
Ok, I have this datagrid an in the itemdatabound sub I have this code
strTemp = _strProgressImagesURL & e.Item.Cells(2).Text &
".jpg?e=2&w=105&h=70"
_myImage = New System.Web.UI.WebControls.Image
_myImage.ImageUrl = strTemp
_myImage.BorderStyle = BorderStyle.Inset
_myImage.BorderWidth = Unit.Pixel(5)
_myImage.ID = "img" & e.Item.Cells(0).Text
e.Item.Cells(2).Text = ""
_myImage.Attributes.Add("onclick", "GetImage()")
e.Item.Cells(2).Controls.Add(_myImage)
Now everything works fine except i cant get the attribute to work. on the
aspx file I have this just to tell me its working
<script language=vb runat=server>
sub GetImage(sender as object,e as eventargs)
response.write "Made it"
end sub
But it dont work. Help please
Thansk