![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have a problem, with a gridview, i won't a javascript function, OpenPopUP(sCMD,bBoolean,iregID) to run when a image is clicked. So i add an onclick event to the img tag like this. (this is in the itemtemplate off the gridview) img src="img/edit.gif" style="width: 18px; height: 18px" onclick="OpenPopUp('EDIT','true',<%#Container.Data Item("RegistrationID")%>)" / this works fine, but why isnt the folowing code working: asp:ImageButton ID="btnEdit" runat="server" OnClientClick="OpenPopUp('Edit', 'true',<%#Container.DataItem("RegistrationID")%>)" ImageUrl="img/edit.gif" / I get some kind of error, server tag not well formed?? Can someone help me?? Thanks in regard.. |
#3
| |||
| |||
|
|
Hello, I have a problem, with a gridview, i won't a javascript function, OpenPopUP(sCMD,bBoolean,iregID) to run when a image is clicked. So i add an onclick event to the img tag like this. (this is in the itemtemplate off the gridview) img src="img/edit.gif" style="width: 18px; height: 18px" onclick="OpenPopUp('EDIT','true',<%#Container.Data Item("RegistrationID")%>)" / this works fine, but why isnt the folowing code working: asp:ImageButton ID="btnEdit" runat="server" OnClientClick="OpenPopUp('Edit', 'true',<%#Container.DataItem("RegistrationID")%>)" ImageUrl="img/edit.gif" / I get some kind of error, server tag not well formed?? Can someone help me?? Thanks in regard.. |
#4
| |||
| |||
|
|
Hello, I have a problem, with a gridview, i won't a javascript function, OpenPopUP(sCMD,bBoolean,iregID) to run when a image is clicked. So i add an onclick event to the img tag like this. (this is in the itemtemplate off the gridview) img src="img/edit.gif" style="width: 18px; height: 18px" onclick="OpenPopUp('EDIT','true',<%#Container.Data Item("RegistrationID")%>)" / this works fine, but why isnt the folowing code working: asp:ImageButton ID="btnEdit" runat="server" OnClientClick="OpenPopUp('Edit', 'true',<%#Container.DataItem("RegistrationID")%>)" ImageUrl="img/edit.gif" / I get some kind of error, server tag not well formed?? Can someone help me?? Thanks in regard.. Try something like this. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |