Hi i looking for a some help.
I have a master page whit the next controls
then i have a aspx file based in this masterpage, into the content place holder i have a simple form:
then, i am working in asp.net framework 4, and visual studio 2010 (under c#).
The problem is, when i do clic in the button "Editar" ocured this:
1) Testing in visualstudio whit IExplorer 9 = works fine
2) Testing in visualstudio whit mozillafirefox = Detalles de la excepción: System.FormatException:
3) Testing compiled files in a webserver using IExplorer 9 = the AjaxLoadingPanel1 view never finish (loading loading loading)
4) Testing compiled files in a webserver using mozillafirefox = Detalles de la excepción: System.FormatException:
i try to assess step by step in both navigators but both never entry in itemcomand event
i try to negate the ajax request using this:
but i founded that arguments.EventTarget equals 'ctl00$ContentPlaceHolder1$dgListaPrincipal$ctl01$ctl04$ctl00'
i need execute code in the itemcommandevent (the best way with the visualization of the loading screen).
all this works fine if i execute proyect code whitout masterpage and radajaxpanel
thaks for reply e.e
I have a master page whit the next controls
<
div
class
=
"Contenedor_Principal"
>
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
>
</
asp:ScriptManager
>
<
radA:RadAjaxManager
ID
=
"RadAjaxManager2"
runat
=
"server"
>
<
AjaxSettings
>
<
radA:AjaxSetting
AjaxControlID
=
"RadAjaxPanel1"
>
<
UpdatedControls
>
<
radA:AjaxUpdatedControl
ControlID
=
"RadAjaxPanel1"
/>
</
UpdatedControls
>
</
radA:AjaxSetting
>
</
AjaxSettings
>
</
radA:RadAjaxManager
>
<
radA:RadAjaxPanel
ID
=
"RadAjaxPanel1"
runat
=
"server"
ClientEvents-OnRequestStart
=
"OnRequestStart"
LoadingPanelID
=
"AjaxLoadingPanel1"
>
<
asp:ContentPlaceHolder
ID
=
"ContentPlaceHolder1"
runat
=
"server"
>
</
asp:ContentPlaceHolder
>
</
radA:RadAjaxPanel
>
<
radA:AjaxLoadingPanel
ID
=
"AjaxLoadingPanel1"
runat
=
"server"
>
<
asp:Image
ID
=
"Image1"
runat
=
"server"
AlternateText
=
"Loading..."
ImageUrl
=
"~/Imagenes/Aplicacion/ajax-loader2.gif"
/>
</
radA:AjaxLoadingPanel
>
</
div
>
then i have a aspx file based in this masterpage, into the content place holder i have a simple form:
<
table
>
<
tr
>
<
td
align
=
"left"
>
<
asp:Label
ID
=
"Label2"
runat
=
"server"
CssClass
=
"ElementoDeFormulario_Etiqueta"
Text
=
"Comandos"
></
asp:Label
>
<
asp:ImageButton
ID
=
"btnEliminar"
runat
=
"server"
ImageUrl
=
"~/Imagenes/Iconos/Eliminar.png"
OnClick
=
"btnEliminar_Click"
OnClientClick
=
"return Confirmar('¿Seguro desea eliminar los registros seleccionados?')"
/>
</
td
>
</
tr
>
<
tr
>
<
td
align
=
"center"
>
<
radG:RadGrid
ID
=
"dgListaPrincipal"
runat
=
"server"
AutoGenerateColumns
=
"False"
GridLines
=
"None"
AllowPaging
=
"True"
OnItemCommand
=
"dgListaPrincipal_ItemCommand"
OnPageIndexChanged
=
"dgListaPrincipal_PageIndexChanged"
PageSize
=
"20"
Skin
=
"Office2007"
>
<
MasterTableView
>
<
RowIndicatorColumn
Visible
=
"False"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"False"
>
<
HeaderStyle
Width
=
"19px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<
radG:GridTemplateColumn
UniqueName
=
"TemplateColumn"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"chkSeleccion"
runat
=
"server"
/>
</
ItemTemplate
>
</
radG:GridTemplateColumn
>
<
radG:GridBoundColumn
HeaderText
=
"Identificación"
UniqueName
=
"column"
DataField
=
"pIdentficacion"
>
</
radG:GridBoundColumn
>
<
radG:GridBoundColumn
HeaderText
=
"Tipo"
UniqueName
=
"column"
DataField
=
"pId_TiposDeDocumento.pNombre"
>
</
radG:GridBoundColumn
>
<
radG:GridBoundColumn
HeaderText
=
"Nombre"
UniqueName
=
"column"
DataField
=
"pNombre"
>
</
radG:GridBoundColumn
>
<
radG:GridBoundColumn
HeaderText
=
"Telefono 1"
UniqueName
=
"column"
DataField
=
"pTelefono_1"
>
</
radG:GridBoundColumn
>
<
radG:GridBoundColumn
HeaderText
=
"@mail"
UniqueName
=
"column"
DataField
=
"pEmail"
>
</
radG:GridBoundColumn
>
<
radG:GridButtonColumn
ButtonType
=
"ImageButton"
HeaderText
=
"Editar"
UniqueName
=
"jajaXD"
ImageUrl
=
"~/Imagenes/Iconos/Editar.png"
CommandName
=
"Editar"
>
</
radG:GridButtonColumn
>
</
Columns
>
</
MasterTableView
>
<
PagerStyle
Font-Underline
=
"false"
Mode
=
"NextPrevAndNumeric"
NextPageText
=
"Siguiente"
PrevPageText
=
"Anterior"
Position
=
"TopAndBottom"
/>
</
radG:RadGrid
>
</
td
>
</
tr
>
</
table
>
then, i am working in asp.net framework 4, and visual studio 2010 (under c#).
The problem is, when i do clic in the button "Editar" ocured this:
1) Testing in visualstudio whit IExplorer 9 = works fine
2) Testing in visualstudio whit mozillafirefox = Detalles de la excepción: System.FormatException:
3) Testing compiled files in a webserver using IExplorer 9 = the AjaxLoadingPanel1 view never finish (loading loading loading)
4) Testing compiled files in a webserver using mozillafirefox = Detalles de la excepción: System.FormatException:
i try to assess step by step in both navigators but both never entry in itemcomand event
i try to negate the ajax request using this:
<script type=
"text/javascript"
>
function
OnRequestStart(target, arguments) {
try
{
if
(arguments.EventTarget ==
"<%= dgListaPrincipal.UniqueID %>"
) {
arguments.EnableAjax =
false
;
}
else
{
arguments.EnableAjax =
true
;
}
}
catch
(err) {
//Handle errors here
}
}
</script>
but i founded that arguments.EventTarget equals 'ctl00$ContentPlaceHolder1$dgListaPrincipal$ctl01$ctl04$ctl00'
i need execute code in the itemcommandevent (the best way with the visualization of the loading screen).
all this works fine if i execute proyect code whitout masterpage and radajaxpanel
thaks for reply e.e