Fórum Chamar codebehind pelo javascript #456853
27/09/2013
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | private void VisualisarMotivosGlosa(string _codItem) { DefinePagina(TelasPesquisa.DetalhamentoConta); //string idItem = e.Parameter.Substring((e.Parameter.LastIndexOf('_')) + 1).ToString(); DataTable dtRetorno = DAL_Pesquisa.getMotivosGlosaByCodServico(_codItem); if (dtRetorno != null && dtRetorno.Rows.Count > 0) { gvMotivosGlosa.DataSource = dtRetorno; gvMotivosGlosa.DataBind(); ppcMotivosGlosa.ShowOnPageLoad = true; gvMotivosGlosa.Visible = true; } else { ltAvisoItem.Text = "Nenhuma informação encontrada para o item selecionado.< br /> Para mais informações entre em contato com a equipe de suporte e informe o ID_ITEM=" + idItem; ltAvisoItem.Visible = true; gvMotivosGlosa.Visible = false; ppcMotivosGlosa.ShowOnPageLoad = true; } ListaDetalhesConta(hdnCodigoGuiaPrestador.Value, true); return; } |
Essa era a antiga chamada quando era via callback da devexpress
1 2 3 4 5 | < a onclick="javascript:ListaMotivosGlosa('<%# Container.KeyValue %>');" style="cursor:pointer"> < dxe:ASPxImage ID = "imgMotivosGlosaP" runat = "server" ImageUrl = "Images/IconList.png" ToolTip = "Clique aqui para visualiazar os motivos de glosa desse item" > </ dxe:ASPxImage > </ a > |
Como eu faço isso com a nova chamada

Pjava
Curtir tópico
+ 0Posts
27/09/2013
Joel Rodrigues
Gostei + 0
11/10/2013
Pjava
Gostei + 0
11/10/2013
Joel Rodrigues
Tópico concluído.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)