Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Actually i am using telerik radrotator to display users.in that telerik radrotator i taken link button to display users. my problem is when i click on link button it is going to radrotator_itemclick event and i am finding the linkbutton value it is working on IE8 browser but it is not working on IE10,google crome,mozila.....for resolving that again i taken a on_Click event of linkbutton now i want to get the value of linkbutton i mean in which event of a linkbutton i can get the value...is it possible. bellow is my code

XML
<asp:LinkButton ID="lblphyname" runat="server"  CommandName="Selected"
                                            ForeColor="#0489B5" Font-Size="11pt"
                                       CommandArgument='<%# Eval("AssignedTo") %>' Text='<%# Eval("FullName") %>'
                                            Font-Underline="false" Font-Overline="false"  onclick="lblphyname_Click" >
                                        </asp:LinkButton>


C#
protected void RadRotator1_ItemClick(object sender, RadRotatorEventArgs e)
        {
            CheckBox chk = (CheckBox)e.Item.FindControl("chk");
            if (chk.Checked != true)
            {
                LinkButton lblphyname = (LinkButton)e.Item.FindControl("lblphyname");
                Session["MsgUserID"] = lblphyname.CommandArgument.ToString();
                Session["PatientName"] = Session["PatientID"];
                Response.Redirect("MsgDetails.aspx?PatName=" + lblPatName.Text);
            }
        }



C#
protected void lblphyname_Click(object sender, EventArgs e)
        {


            
        }
Posted
Updated 9-May-13 18:33pm
v4

It should be like following..

C#
Response.Redirect("MsgDetails.aspx?PatName=" + lblphyname.Text);

Thanks
 
Share this answer
 
C#
protected void lblphyname_Click(object sender, EventArgs e)
       {
           string id = ((LinkButton)sender).CommandName;
           string id1 = ((LinkButton)sender).CommandArgument.ToString();
           
       }
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900