Click here to Skip to main content
15,885,278 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAnything new exist to test EF repository instead of Mock lib in .Net Core Pin
Mou_kol17-Aug-17 23:46
Mou_kol17-Aug-17 23:46 
AnswerRe: Anything new exist to test EF repository instead of Mock lib in .Net Core Pin
Richard MacCutchan18-Aug-17 1:34
mveRichard MacCutchan18-Aug-17 1:34 
QuestionRich Textbox Pin
Member 1336179216-Aug-17 0:16
Member 1336179216-Aug-17 0:16 
AnswerRe: Rich Textbox Pin
Afzaal Ahmad Zeeshan16-Aug-17 1:36
professionalAfzaal Ahmad Zeeshan16-Aug-17 1:36 
QuestionASP and SQL web application help Pin
Member 1336148915-Aug-17 18:12
Member 1336148915-Aug-17 18:12 
AnswerRe: ASP and SQL web application help Pin
Richard MacCutchan15-Aug-17 21:20
mveRichard MacCutchan15-Aug-17 21:20 
QuestionUnable to delete a dynamically generated row in Repeater Pin
samflex13-Aug-17 17:23
samflex13-Aug-17 17:23 
AnswerRe: Unable to delete a dynamically generated row in Repeater Pin
Kornfeld Eliyahu Peter13-Aug-17 19:09
professionalKornfeld Eliyahu Peter13-Aug-17 19:09 
GeneralRe: Unable to delete a dynamically generated row in Repeater Pin
samflex14-Aug-17 2:18
samflex14-Aug-17 2:18 
AnswerRe: Unable to delete a dynamically generated row in Repeater Pin
Kornfeld Eliyahu Peter14-Aug-17 4:03
professionalKornfeld Eliyahu Peter14-Aug-17 4:03 
GeneralRe: Unable to delete a dynamically generated row in Repeater Pin
samflex14-Aug-17 5:06
samflex14-Aug-17 5:06 
QuestionCross site scripting poor validation for asp.net labels Pin
Member 1335715611-Aug-17 3:19
Member 1335715611-Aug-17 3:19 
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."

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.