What I am trying to do is open a popup window on a linkbutton click on a radgrid. Tried 2 methods and alls the page does is postback and produce no window. What I would like is a window to open so that they can email someone from the window that pops up.
1st method, not working
2nd method not working
1st method, not working
<telerik:GridTemplateColumn HeaderText="RESCHEDULE"> <ItemTemplate> <asp:ImageButton ID="imgSched" runat="server" CommandName="reSched" CommandArgument='<% #Bind("intEOLId") %>' ImageUrl="~/Images/Bones.png" OnClientClick="javascript:window.open('../Admin/Email.aspx?EolId);" Height="30px" Width="30px" /> </ItemTemplate> </telerik:GridTemplateColumn>2nd method not working
If (e.CommandName = "reSched") Then Dim EolId As Integer = Convert.ToInt32(e.CommandArgument) Dim item As GridDataItem = TryCast(e.Item, GridDataItem) Dim linkSched As ImageButton = DirectCast(item.FindControl("imgSched"), ImageButton) Dim Vreturn As String = "" linkSched.Attributes.Add("onclick", "javascript:window.open('../Admin/Email.aspx?EolId=" & EolId & "'); return false;") 'sql = "Execute usp_EOLResched " & EolId 'Vreturn = getData(sql).Rows(0)(0) 'If Vreturn = "1" Then ' Fillgrid = True ' myRadGrid.Rebind() 'End If End If