Hi
I have a linkbutton that open radwindow, in the image "vista1.jpg" you see this link.
In the first clik of this link the radwindow open OK. In the image "vista2.jpg" you see stage, but when i close the radwindow and i clik the link immediately the radwindow opens as shown in the image "viasta3.jpg"
this is my code:
file .aspx
<%@ Page Title="" Language="VB" MasterPageFile="~/templates/Templateadmin.master" AutoEventWireup="false" CodeFile="puntogestioncarga.aspx.vb" Inherits="admin_Gestion_Control_puntogestioncarga" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
var saqtemp = jQuery.noConflict();
function openWinMiPerfil(usuariosel) {
var oWnd = radopen("rutacarga_completa.aspx?txtusuariosel=" + usuariosel, "RadWindowchangepassw");
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanelScriptppal" EnableAJAX="true" EnableEmbeddedScripts="true">
</telerik:RadAjaxPanel>
<telerik:RadWindowManager ID="RadWindowManager1"
ShowContentDuringLoad="false"
VisibleStatusbar="false"
ReloadOnShow="true"
runat="server"
Skin="Black"
EnableShadow="true"
DestroyOnClose="true"
Modal="true">
<Windows>
<telerik:RadWindow CssClass="sobretodo"
ID="RadWindowchangepassw"
runat="server"
Behaviors="Resize,Close,Maximize,Move,Reload"
Width="980"
Height="485">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<asp:LinkButton ID="LinkButton1"
runat="server"
Text="Visualizar Ruta Seleccionada"
OnClick="abrircambiocontra"
CssClass="txt110066CC"
CausesValidation="false">
</asp:LinkButton>
</asp:Content>
file aspx.vb
Protected Sub abrircambiocontra(ByVal sender As Object, ByVal e As EventArgs)
Dim scriptfinal As String = "openWinMiPerfil('" & lblusuarioensession.Text & "'); return false;"
RadAjaxPanelScriptppal.ResponseScripts.Add(scriptfinal)
End Sub
please help me, I do not understand why this happens.
I have a linkbutton that open radwindow, in the image "vista1.jpg" you see this link.
In the first clik of this link the radwindow open OK. In the image "vista2.jpg" you see stage, but when i close the radwindow and i clik the link immediately the radwindow opens as shown in the image "viasta3.jpg"
this is my code:
file .aspx
<%@ Page Title="" Language="VB" MasterPageFile="~/templates/Templateadmin.master" AutoEventWireup="false" CodeFile="puntogestioncarga.aspx.vb" Inherits="admin_Gestion_Control_puntogestioncarga" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
var saqtemp = jQuery.noConflict();
function openWinMiPerfil(usuariosel) {
var oWnd = radopen("rutacarga_completa.aspx?txtusuariosel=" + usuariosel, "RadWindowchangepassw");
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanelScriptppal" EnableAJAX="true" EnableEmbeddedScripts="true">
</telerik:RadAjaxPanel>
<telerik:RadWindowManager ID="RadWindowManager1"
ShowContentDuringLoad="false"
VisibleStatusbar="false"
ReloadOnShow="true"
runat="server"
Skin="Black"
EnableShadow="true"
DestroyOnClose="true"
Modal="true">
<Windows>
<telerik:RadWindow CssClass="sobretodo"
ID="RadWindowchangepassw"
runat="server"
Behaviors="Resize,Close,Maximize,Move,Reload"
Width="980"
Height="485">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<asp:LinkButton ID="LinkButton1"
runat="server"
Text="Visualizar Ruta Seleccionada"
OnClick="abrircambiocontra"
CssClass="txt110066CC"
CausesValidation="false">
</asp:LinkButton>
</asp:Content>
file aspx.vb
Protected Sub abrircambiocontra(ByVal sender As Object, ByVal e As EventArgs)
Dim scriptfinal As String = "openWinMiPerfil('" & lblusuarioensession.Text & "'); return false;"
RadAjaxPanelScriptppal.ResponseScripts.Add(scriptfinal)
End Sub
please help me, I do not understand why this happens.