Hi,
I have a radgrid that is opening a new radwindow when i click on any row using this code...
This works fine, except one thing...
It runs twice which gives me two instances of "newwindow"
how do i stop it running twice?
Thanks
Ryan
I have a radgrid that is opening a new radwindow when i click on any row using this code...
Protected Sub RadGrid1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RadGrid1.SelectedIndexChanged If RadGrid1.SelectedItems.Count > 0 Then For Each item As GridDataItem In RadGrid1.SelectedItems Dim strid As String strid = item("UniqueID").Text Session("Selected") = "Selected" Session("ID") = strid 'Response.Redirect("MessageForm1.aspx") 'Dim script As String 'script = "<script type='text/javascript'>" 'script += "Message();" 'script += "</" + "script>" 'InjectScript.Text = "<script type='text/javascript'>Return Message();</" + "script>" Dim newwindow As New RadWindow newwindow.NavigateUrl = "MessageForm1.aspx" RadWindow1.Windows.Add(newwindow) newwindow.Width = Unit.Pixel(600) newwindow.Height = Unit.Pixel(650) newwindow.Title = "Message" Next End IfEnd SubIt runs twice which gives me two instances of "newwindow"
how do i stop it running twice?
Thanks
Ryan
