Display Data from database | ASP .NET CORE (MVC) C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024

ความคิดเห็น • 102

  • @shamanth4207
    @shamanth4207 2 ปีที่แล้ว +1

    I just saw for few seconds .
    Welcome music remembered my every day morning.
    I think we don't value where we are.
    Thank you.

  • @mylesduah8036
    @mylesduah8036 2 ปีที่แล้ว

    Honestly, God richly bless you. You’re doing his work. Just saved me!

  • @garapatigokulsairam5889
    @garapatigokulsairam5889 2 ปีที่แล้ว +1

    I want to send the retrieved data to Angular project is it possible . If possible how ?

  • @darenkoch
    @darenkoch 2 ปีที่แล้ว +1

    "foreach (var Data in Model)" does not work.
    I get the following error:
    "CS1579 foreach statement cannot operate on variables of type 'IndexModel' because 'IndexModel' does not contain a public instance or extension definition for 'GetEnumerator'"
    I am on Visual Studio 2022. Is there another object I can reference. I have tried many, to no avail.

  • @AAlmurik
    @AAlmurik 3 ปีที่แล้ว +2

    It is osooom, but i didnt get where u get the "Model" :/ im just learning

  • @vusimahlangu9154
    @vusimahlangu9154 ปีที่แล้ว

    Thank you so much, this was the most helpful video.

  • @gabytesrido3962
    @gabytesrido3962 2 ปีที่แล้ว

    Why do I have this error? (No parameterless constructor defined for this object)

  • @isachells9859
    @isachells9859 3 ปีที่แล้ว

    Hey this video was amazing, perfect pace, its worht atleast 4 Pluralsight videos content wise. Thx again and greetings from Sweden, cheers

  • @aChannel13813
    @aChannel13813 2 ปีที่แล้ว

    i like the background music.

  • @王智立-i8m
    @王智立-i8m ปีที่แล้ว

    謝謝你的教學視頻,我學會了

  • @sweetlobster3939
    @sweetlobster3939 4 ปีที่แล้ว +1

    great tuto, just straight to the point ty !

  • @thabangthabza9405
    @thabangthabza9405 4 ปีที่แล้ว +1

    wonderfull video, it really helped me alot...thanks👍

  • @SG-yz6pq
    @SG-yz6pq 3 ปีที่แล้ว +1

    Hey great video, haven't had any problems until 14:34 . For some reason i can't add "Model" in there, i'm sure i followed every step but i can't seem to add "Model". Would you help me out please ?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      in the description you'll find source code link, get the code from github repository and try to compare.

    • @SG-yz6pq
      @SG-yz6pq 3 ปีที่แล้ว

      @@CSharpCodeAcademy First of all, thank you for answering. Secondly, i did try with your code that was in the description, but it still gave me the same error. I can't seem to type Model in there.

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      use @{ try to type inside these parenthesis }

    • @SG-yz6pq
      @SG-yz6pq 3 ปีที่แล้ว

      @@CSharpCodeAcademy still the same error unfortunately. I have Microsoft.sqlserver.types and system.data.sqlclient installed but still doesn't work. Do I need to install something else ?

    • @emmann6395
      @emmann6395 3 ปีที่แล้ว +1

      I have the same error, if you find how to fix it please tell me

  • @etiennedelrieux6938
    @etiennedelrieux6938 4 ปีที่แล้ว +1

    Oh, also, could you make a follow-up to this video on how to do pagination with the database you've already displayed? I'm currently doing an intership in a company and I have to display data from a database like what's on this video, and I'd like to put it in multiple pages

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  4 ปีที่แล้ว +1

      Best of luck for your internship and i'll upload video on pagination soon.

    • @etiennedelrieux6938
      @etiennedelrieux6938 4 ปีที่แล้ว

      @@CSharpCodeAcademy Thank you very much !

  • @tosreancomputer7351
    @tosreancomputer7351 3 ปีที่แล้ว

    I am glad to see your videos. I hope you will upload other videos that relate that. Thanks

  • @rakarjammdha
    @rakarjammdha 3 ปีที่แล้ว

    Cool..nice work

  • @muhammadfaris8316
    @muhammadfaris8316 ปีที่แล้ว

    Hi great video, May i know how to make a hyperlink on the certain collumn?

  • @daytodays1466
    @daytodays1466 3 ปีที่แล้ว

    thanks for this video. iit's really helpful to me.

  • @marcinpawlikowski6306
    @marcinpawlikowski6306 3 ปีที่แล้ว

    What about other types not only string, if I want to fetch int or (what's more difficult) varbinary, image or file?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      Definitely you can create other types, it depends on what you are fetching and what you'll do with the data, in this tutorial we are fetching text data and we need only string data to display so there are all string types.

    • @marcinpawlikowski6306
      @marcinpawlikowski6306 3 ปีที่แล้ว

      ​@@CSharpCodeAcademy Can You give some samples how to do that? Some link? I'm asking because in this video ExecuterReader has limited number of methods. One of them is toString(). And how to make a conversion to other format, for exaple decimal, but first of all I mean byte, or IFile, Image etc.?

  • @shampurnadas7664
    @shampurnadas7664 2 ปีที่แล้ว

    Hello your video is awesome but I cannot find nugget package on visual studio 2022

  • @halaalomeiria3185
    @halaalomeiria3185 3 ปีที่แล้ว

    it is display this error to me why ? SqlException: Incorrect syntax near 'Time'.
    System.Data.SqlClient.SqlConnection.OnError(SqlException exception, bool breakConnection, Action wrapCloseInAction)

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      your sql query has incorrect syntax

    • @halaalomeiria3185
      @halaalomeiria3185 3 ปีที่แล้ว

      @@CSharpCodeAcademy THANK YOU dear now it is work

  • @sarjeevram462
    @sarjeevram462 3 ปีที่แล้ว

    Hi, thanks a lot for the video. I am new to this, so bare with me regarding my question. I am trying this out using Visual Studio 2019 mac. I was following this video step by step and so far so good until I reach the timeline at 7.30. I don't find option "Resource" in the Visual Studio 2019 mac version. Can you please HELP ME? Thanks a lot.

    • @anantsingh7443
      @anantsingh7443 ปีที่แล้ว

      That is your personal problem😮

  • @quentineby4068
    @quentineby4068 3 ปีที่แล้ว

    Great video, I learned a lot. Thank you !

  • @muhammadafzal237
    @muhammadafzal237 3 ปีที่แล้ว

    I'm just beginner in asp.net.
    Are asp.net and asp.net core the same or different? And what is mean by MVC?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      I'd recommend you to read about .Net Framework & .Net Core and MVC is software architectural pattern,

  • @wilsonmoraisfreire5223
    @wilsonmoraisfreire5223 3 ปีที่แล้ว

    hello please i have the error "System.Data.SqlClient.SqlException: 'Windows logins are not supported in this version of SQL Server." Can you help me?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      are you trying to connect to Azure Sql Db?

    • @gladiator06m
      @gladiator06m 3 ปีที่แล้ว

      i have same probleme but me i have a warning with Microsoft.SqlServer.Types. after that i have an exception with con.ConnectionString = Data_Grid.Properties.Resources.ConnectionString;

  • @basemabdellatiff5213
    @basemabdellatiff5213 4 ปีที่แล้ว

    Nice & Helpful Video

  • @etiennedelrieux6938
    @etiennedelrieux6938 4 ปีที่แล้ว +1

    Great video, very clear and informative, though a few comments on what you're doing would be nice for a beginner like me... Also it would be nice to have the source code for training purposes, otherwise great job !

  • @hiepao3617
    @hiepao3617 2 ปีที่แล้ว

    Please can share db and source code project? Thanks you!

  • @ryank9001
    @ryank9001 3 ปีที่แล้ว

    Very helpful - thank you. Would it be possible for a user to select the table to be display via a dropdown menu for example? Do you have any guidance for this? Thanks again.

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว +1

      Do you want to display data based on dropdown selection? Correct me if I'm wrong

    • @ryank9001
      @ryank9001 3 ปีที่แล้ว

      Correct, display as in the video but let the user choose what table is displayed (tables would be identical headers but different data within). Thanks

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      use ajax call to call method & fetch data from controller and use some JS to remove old data & add new data in the table.

    • @ryank9001
      @ryank9001 3 ปีที่แล้ว

      Thanks for your reply. Do you have any example of this or point in direction of some example for this?

    • @abal6127
      @abal6127 3 ปีที่แล้ว

      we demands a short video on drop down(table attributes" :)

  • @shubhamchavan7338
    @shubhamchavan7338 3 ปีที่แล้ว

    How to add search box for searching record from local browser data.

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      Define a method inside a controller and make ajax call to get data

    • @shubhamchavan7338
      @shubhamchavan7338 3 ปีที่แล้ว

      @@CSharpCodeAcademy can you share me a demo of that how to call ajax to get data?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      Sure, I'll post it

    • @shubhamchavan7338
      @shubhamchavan7338 3 ปีที่แล้ว

      @@CSharpCodeAcademy okay thanks

  • @hwdsuranga
    @hwdsuranga 3 ปีที่แล้ว

    Thank you very much

  • @tamashaetv5405
    @tamashaetv5405 3 ปีที่แล้ว

    excellent

  • @dariuswurzbacher4067
    @dariuswurzbacher4067 4 ปีที่แล้ว

    Thanks so much more for the video, you might have literally save my A level, however when I try and open the page with the table on it doesn't load and in the code it says:
    System.Data.SqlClient.SqlException: 'Windows logins are not supported in this version of SQL Server.'
    This is a long shot for help but thought I might aswell try, thank you so much either way.

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  4 ปีที่แล้ว

      Try the connection string without the authentication, I mean use trusted connection = true instead the user & pass

    • @dariuswurzbacher4067
      @dariuswurzbacher4067 4 ปีที่แล้ว

      @@CSharpCodeAcademy I'm really sorry but I'm very new to this, where do I change that, its not in the resources file is it? sorry again for my lack of knowledge
      edit: or is this the "settings" of the actual database?
      edit edit: I just figured it out, Thank you soo so much again, I straight up would have failed my project without this

  • @guduro7632
    @guduro7632 2 ปีที่แล้ว

    Thanks ❤️❤️❤️❤️❤️❤️

  • @armandtello
    @armandtello 3 ปีที่แล้ว

    thanks so much it's very helpful, but, how can i connect with a db with user and password from sql server authentication using the resources file??... please, can you aswer??

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      Here is the connection string format,
      Server=YouServerAddress; Database=databaseName;User Id=YourUsername; Password= YourPassword;

    • @armandtello
      @armandtello 3 ปีที่แล้ว

      @@CSharpCodeAcademy thank you so much!! you're amazing

  • @lulustudio3702
    @lulustudio3702 4 ปีที่แล้ว

    Want you to teach
    how to consume Authantication with
    web service soap asmx 😢 asp.net core mvc

  • @uckhaiong2093
    @uckhaiong2093 3 ปีที่แล้ว

    Thank you for the video.How to pagging the data ?

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      check out this video th-cam.com/video/U0zYxZ6OzDM/w-d-xo.html

  • @JosephSivits
    @JosephSivits 3 ปีที่แล้ว

    This video is great.

  • @RashidZana
    @RashidZana 3 ปีที่แล้ว

    Thank you great job

  • @amannur8604
    @amannur8604 4 ปีที่แล้ว

    nice video, can you please make video on login by Microsoft and Amazon in .netcore

  • @realhistory765
    @realhistory765 2 ปีที่แล้ว

    OMG , 20 Minutes only to write fetch data code!!! . when you host your server visitor will drinks coffee during fetching.

  • @ClaudioJrTsuyosa
    @ClaudioJrTsuyosa 3 ปีที่แล้ว

    Thank you 🙏❤🌹

  • @jijeshraj6012
    @jijeshraj6012 3 ปีที่แล้ว

    Thanks a ton!!!

  • @User_00128
    @User_00128 4 ปีที่แล้ว +2

    please stop the music

  • @preslavdobrev6702
    @preslavdobrev6702 3 ปีที่แล้ว +1

    honestly this was way too complicated to follow and had multiple errors along the way for me

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      Thanks for your feedback, I'll try my best to improve it for future videos. However in case, the tutorial becomes complicated, you can get the source code from the Github repository and you can find the link in the video description.

  • @LuciSheppyLive
    @LuciSheppyLive 3 ปีที่แล้ว

    I would really like it if there was no music, it's loud and distracting

    • @CSharpCodeAcademy
      @CSharpCodeAcademy  3 ปีที่แล้ว

      Press M to get rid of it 😅

    • @LuciSheppyLive
      @LuciSheppyLive 3 ปีที่แล้ว

      @@CSharpCodeAcademy But... then I can't hear the voiceover???