Avatar of welcome 123
welcome 123

asked on 

code block in javascript

I have below javascript function calling a panel open as popup and all i need is to pass a variable that I can assign in code behind (code block) for title of the window:

$(function () {
    $("#<%=pnlDetails.ClientID %>").dialog({
        modal: true,
        show: 'Slow',
        width: '30%',
        appendTo: Form1,
        title: 'Follow Up Detail Information', buttons: { Close: function () {
            $(this).dialog('close');
        }
        }
    });
 something like:

$(function () {
    $("#<%=pnlDetails.ClientID %>").dialog({
        modal: true,
        show: 'Slow',
        width: '30%',
        appendTo: Form1,
        title: '#<%=LanguageNumber%>', buttons: { Close: function () {
            $(this).dialog('close');
        }
        }
    });
JavaScript.NET Programming

Avatar of undefined
Last Comment
Alexandre Simões

8/22/2022 - Mon