views:

28

answers:

2

my linkbutton is in datalist, this datalist is in panel, this panel is in ajax updatepanel

if linkbutton is not selected then need to alert a message...

how can i achieve this...

A: 

Hi Ramakrishna, There are many ways you can achieve this, here is an example:


aspx:
<asp:LinkButton ID="lnk1" runat="server" OnClientClick="fireMyClick(this)"></asp:LinkButton>
js:
function fireMyClick(lnk)
{
    alert(lnk.id);
}
lakhlaniprashant.blogspot.com
@lakhani.... good
Ramakrishna
A: 

page.findcontrol(panlid).findcontrol(datalistid).findcontrol(linkbutonid)

i wrote code like this....

Ramakrishna