Click here to Skip to main content
15,884,472 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionIIS Rewrite rule: Attach country code with all hyperlinks in page Pin
Mou_kol23-Nov-17 0:53
Mou_kol23-Nov-17 0:53 
Rant[REPOST] IIS Rewrite rule: Attach country code with all hyperlinks in page Pin
Richard Deeming23-Nov-17 1:01
mveRichard Deeming23-Nov-17 1:01 
QuestionLooking for MCSD Web Applications sample test Q/A Pin
Mou_kol22-Nov-17 22:12
Mou_kol22-Nov-17 22:12 
AnswerRe: Looking for MCSD Web Applications sample test Q/A Pin
Richard MacCutchan22-Nov-17 22:55
mveRichard MacCutchan22-Nov-17 22:55 
AnswerRe: Looking for MCSD Web Applications sample test Q/A Pin
F-ES Sitecore23-Nov-17 1:18
professionalF-ES Sitecore23-Nov-17 1:18 
QuestionProblem with wrap text in a column in gridview and reportviewer Pin
Member 1351227419-Nov-17 14:33
Member 1351227419-Nov-17 14:33 
AnswerRe: Problem with wrap text in a column in gridview and reportviewer Pin
Richard MacCutchan19-Nov-17 21:54
mveRichard MacCutchan19-Nov-17 21:54 
QuestionDataTable in .Net Core looks plain Pin
sn_lorun19-Nov-17 14:21
sn_lorun19-Nov-17 14:21 
Hi All,

I just tried put DataTable in my project. It look cool and robust. For quick result. I put this instruction  into html file and it worked like charm. This is the screenshot.

Confidence with that html result, then, I created a new project in .Net Core and put those code into About/Contact template. What I remove html code to cshtml are head and body tag. But I got plain table like this screenshot.

What I tried to do debugged the javascript by using F12 Developer Tools and I found "Object doesn't support property or method 'DataTable.'"

Why this could happen in VS 2017 CE .net core 2 ? Meanwhile, it works well in html file.
I emphasize the link (css and js) just works fine in html.

JavaScript
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js" type="text/javascript" ></script>
<script>
    $(document).ready(function() {
        $('#example').DataTable();
    } );
</script>


I also tried by using VS 2015 CE .net Core 1.1, it gave me the same result.
How to overcome this ? Please, advice....


Rgds,

modified 19-Nov-17 20:32pm.

AnswerRe: DataTable in .Net Core looks plain Pin
Richard Deeming20-Nov-17 2:14
mveRichard Deeming20-Nov-17 2:14 
GeneralRe: DataTable in .Net Core looks plain Pin
sn_lorun20-Nov-17 16:03
sn_lorun20-Nov-17 16:03 
QuestionHow to add country code or culture in url Pin
Mou_kol17-Nov-17 9:31
Mou_kol17-Nov-17 9:31 
QuestionLightbox questions based on a decision tree showed and updated in background Pin
Member 800771316-Nov-17 3:07
Member 800771316-Nov-17 3:07 
AnswerRe: Lightbox questions based on a decision tree showed and updated in background Pin
Richard MacCutchan16-Nov-17 3:17
mveRichard MacCutchan16-Nov-17 3:17 
GeneralRe: Lightbox questions based on a decision tree showed and updated in background Pin
Member 800771316-Nov-17 3:55
Member 800771316-Nov-17 3:55 
QuestionWebBrowser Control Pin
Michael Clinton8-Nov-17 7:15
Michael Clinton8-Nov-17 7:15 
AnswerRe: WebBrowser Control Pin
jkirkerx8-Nov-17 9:24
professionaljkirkerx8-Nov-17 9:24 
AnswerRe: WebBrowser Control Pin
Richard Deeming9-Nov-17 1:41
mveRichard Deeming9-Nov-17 1:41 
QuestionCode tag Pin
Otekpo Emmanuel5-Nov-17 12:05
Otekpo Emmanuel5-Nov-17 12:05 
AnswerRe: Code tag Pin
ZurdoDev8-Nov-17 7:43
professionalZurdoDev8-Nov-17 7:43 
GeneralRe: Code tag Pin
debasish mishra23-Jan-18 20:21
professionaldebasish mishra23-Jan-18 20:21 
QuestionRegular Expression to get only the first 30 alphabets from a big string Pin
indian1432-Nov-17 8:37
indian1432-Nov-17 8:37 
AnswerRe: Regular Expression to get only the first 30 alphabets from a big string Pin
A_Griffin2-Nov-17 9:41
A_Griffin2-Nov-17 9:41 
AnswerRe: Regular Expression to get only the first 30 alphabets from a big string Pin
Richard Deeming2-Nov-17 10:19
mveRichard Deeming2-Nov-17 10:19 
Question.net web form application using javascript Pin
dcof31-Oct-17 4:33
dcof31-Oct-17 4:33 
AnswerRe: .net web form application using javascript Pin
ZurdoDev31-Oct-17 5:49
professionalZurdoDev31-Oct-17 5:49 

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.