Then I have to show the jquery UI dialogue with codebehind.
I have tried to do everything: ,,, test to change those answers, if it works with me, but is not working.
I am using the first solution because it is systematic, it works if I use the warning ('whatever') instead of my jquery communication code, so I know its work, but something with the dialogue Not even I have tried with colorbox, and it is not working either.
Can anyone give me an alternative solution? It will be apreciated. Thanks.
My aspx:
HEAD & lt; Script type = "text / javascript" & gt; Function BindEvents () {$ .fx.speeds._default = 1000; . $ (Document) .ready (function () {var dlg = $ ("# DivMostrarIguales") dialog ({AutoOpen: false, show: "folding", hide: "clip", width: 500, height: 500}); Dlg.parent (). Attachments (jQuery ("Form: First"));); } & Lt; / Script & gt; Endhead & amp; Lt; ASP: Content ID = "Content 2" content placeholder ID = "main content" run = "server" & gt; & Lt; Asp: UpdatePanel runat = "server" id = "upTotal" & gt; & Lt; ContentTemplate & gt; & Lt; Script type = "text / javascript" & gt; Sys.Application.add_load (BindEvents); & Lt; / Script & gt; .... & lt; Tr & gt; & Lt; Td square = "isjarda" & gt; (*) Nmoreo Nico: & Lt; Td class = "camp" & gt; & Lt; ASP: Text Box ID = "TBNU Mieronico" Runat = "Server" & gt; & Lt; / Asp: text box & gt; & Lt; ASP: Button ID = "btMostrarIgualesEntrante" runat = "server" text = "revisar si then existe" onclick = "MostrarVentanaIgualesEntrante" ValidationGroup = "none" CausesValidation = "false" CssClass = "button" /> & Lt; ASP: label runat = "server" id = "lbNumeroUnicoEntrante" text = "Debe digitar L format Correcto del Número único (full)" viewable = "false" CssClass = "ErrorCampo" & gt; & Lt; / ASP: Labels & gt; & Lt; / TD & gt; & Lt; / Tr & gt; ... & lt; Div id = "divMostrarIguales" heading = "NAMMRA à nko iGuyi" & gt; WhatEver & lt; / Div & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt; & Lt; / ASP: Content & gt; My .cs work:
private string getjQueryCode (string jsCodetoRun) {StringBuilder sb = new StringBuilder (); Sb.AppendLine ("$ (document) .ready (function () {"); sb.AppendLine (jsCodetoRun); sb.AppendLine ("});"); Return sb.ToString (); } Private Zero runjQueryCode (string jsCodetoRun) {ScriptManager requestSM = ScriptManager.GetCurrent (this); If (requestSM = Null & amp;; and requestSM.IsInAsyncPostBack) {ScriptManager.RegisterClientScriptBlock (this, typeof (page), Guid.NewGuid () toString (), getjQueryCode (jsCodetoRun), true.); } Else {ClientScript.RegisterClientScriptBlock (typeof (Page), Guid.NewGuid () toString (), getjQueryCode (jsCodetoRun), true.); }} Protected Zero MostrarVentanaIgualesEntrante (Object Sender, EventArgs e) {CargarGridMostrarIgualesEntrante (); RunjQueryCode ("$ ('# DivMostrarIguales') dialog ('open')."); }
Call to call it first.
.dialog ({autoOpen: false}) // {} = Settings and then open it.
< Code> .dialog ('open')
Comments
Post a Comment