Click here to Skip to main content
15,913,090 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Cross site scripting poor validation for asp.net labels Pin
Richard Deeming13-Aug-17 23:49
mveRichard Deeming13-Aug-17 23:49 
GeneralRe: Cross site scripting poor validation for asp.net labels Pin
Member 1335715616-Aug-17 6:05
Member 1335715616-Aug-17 6:05 
GeneralRe: Cross site scripting poor validation for asp.net labels Pin
Richard Deeming16-Aug-17 10:11
mveRichard Deeming16-Aug-17 10:11 
AnswerRe: Cross site scripting poor validation for asp.net labels Pin
viprat18-May-20 23:10
viprat18-May-20 23:10 
QuestionMaintaining sessions in Web Applications with Web Api Pin
indian14310-Aug-17 8:32
indian14310-Aug-17 8:32 
AnswerRe: Maintaining sessions in Web Applications with Web Api Pin
F-ES Sitecore10-Aug-17 22:14
professionalF-ES Sitecore10-Aug-17 22:14 
QuestionWebsite down frequently in windows server 2008 standard IIS 7 Pin
ramesh1080@yahoo.co.in9-Aug-17 19:28
ramesh1080@yahoo.co.in9-Aug-17 19:28 
AnswerRe: Website down frequently in windows server 2008 standard IIS 7 Pin
Nathan Minier11-Aug-17 1:37
professionalNathan Minier11-Aug-17 1:37 
QuestionTrying to create modal dialog using jQuery Pin
indian1439-Aug-17 6:50
indian1439-Aug-17 6:50 
AnswerRe: Trying to create modal dialog using jQuery Pin
Richard Deeming9-Aug-17 8:28
mveRichard Deeming9-Aug-17 8:28 
GeneralRe: Trying to create modal dialog using jQuery Pin
indian1439-Aug-17 9:39
indian1439-Aug-17 9:39 
GeneralRe: Trying to create modal dialog using jQuery Pin
Richard Deeming9-Aug-17 9:46
mveRichard Deeming9-Aug-17 9:46 
GeneralRe: Trying to create modal dialog using jQuery Pin
indian1439-Aug-17 9:59
indian1439-Aug-17 9:59 
In registerbundles I have written this:
bundles.Add(new StyleBundle("~/Content/themes/bsc/css").Include(
                          "~/Content/themes/bsc/jquery-ui.min.css",
                          "~/Content/themes/bsc/jquery-ui.structure.min.css",
                          "~/Content/themes/bsc/jquery-ui.theme.min.css"));

And in the cshtml, I have written like below:
@section head{
    @Styles.Render("~/Content/css")
    @Styles.Render("~/bundles/bootstrap")
    @Styles.Render("~/bundles/jquery")
    @Styles.Render("~/bundles/jqueryval")    
    @Scripts.Render("~/bundles/jqueryui")
    @Scripts.Render("~/Content/themes/bsc/css")    
}

And in the .js file I have written as below:
        $('#btnViewJob').click(function (event) {
            event.preventDefault();

            var mytext = 'My first modal dialog using MVC: <input type="text" value="Some value comes from parent page" id="temp" />';

            var dialog = $("#dialog");
            if (!dialog.length) {<br />
                dialog = $("<div/>").attr("id", "dialog").appendTo("body");

                dialog.dialog({
                    autoOpen: false,
                    width: 400,
                    resizable: false,
                    title: "hi there",
                    modal: true,
                    buttons: {
                        "Close": function () {
                            $(this).dialog("close");
                        }
                    }
                });
            }

            dialog.empty().html("<table><tr><td>" + mytext + "</td></tr></table>");
            dialog.dialog("open");
        });

In the css I have written like below:
table#tableDisplay2 {
    border-collapse: collapse;<br />
}
<h1>tableDisplay2 th {</h1>

<pre>
background-color: #eee;
border-top: 1px solid #fff;

}

tableDisplay2 tr:hover {

background-color: #ccc;

}

tableDisplay2 tr::selection {

background-color: #ccc;

}

tableDisplay2 tr.selected { background-color:#ccc !important; }

tableDisplay2 td:hover {


cursor: pointer;
}


CSS part is working fine it is changing the color of the table row when selected, but only thing is when button clicked, its not opening the new modal dialog, and giving the same error that is: Uncaught TypeError: dialog.dialog is not a function. Any help my friend?

Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."
GeneralRe: Trying to create modal dialog using jQuery Pin
Richard Deeming9-Aug-17 10:10
mveRichard Deeming9-Aug-17 10:10 
GeneralRe: Trying to create modal dialog using jQuery Pin
indian1439-Aug-17 11:44
indian1439-Aug-17 11:44 
GeneralRe: Trying to create modal dialog using jQuery Pin
F-ES Sitecore9-Aug-17 23:11
professionalF-ES Sitecore9-Aug-17 23:11 
GeneralRe: Trying to create modal dialog using jQuery Pin
indian14310-Aug-17 13:03
indian14310-Aug-17 13:03 
GeneralRe: Trying to create modal dialog using jQuery Pin
F-ES Sitecore10-Aug-17 22:09
professionalF-ES Sitecore10-Aug-17 22:09 
GeneralRe: Trying to create modal dialog using jQuery Pin
indian14311-Aug-17 13:13
indian14311-Aug-17 13:13 
GeneralRe: Trying to create modal dialog using jQuery Pin
F-ES Sitecore13-Aug-17 22:18
professionalF-ES Sitecore13-Aug-17 22:18 
QuestionProcedure or function 'sp_getchech' expects parameter '@ID', which was not supplied Pin
samflex9-Aug-17 5:24
samflex9-Aug-17 5:24 
AnswerRe: Procedure or function 'sp_getchech' expects parameter '@ID', which was not supplied Pin
Richard Deeming9-Aug-17 8:14
mveRichard Deeming9-Aug-17 8:14 
GeneralRe: Procedure or function 'sp_getchech' expects parameter '@ID', which was not supplied (SOLVED) Pin
samflex9-Aug-17 14:54
samflex9-Aug-17 14:54 
QuestionWhat is better solutions for complex application and databases Pin
Lakhpat-Singh8-Aug-17 7:22
Lakhpat-Singh8-Aug-17 7:22 
AnswerRe: What is better solutions for complex application and databases Pin
F-ES Sitecore9-Aug-17 0:00
professionalF-ES Sitecore9-Aug-17 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.