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

Поделиться
HTML-код
  • Опубликовано: 25 окт 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!

  • @vusimahlangu9154
    @vusimahlangu9154 Год назад

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

  • @aChannel13813
    @aChannel13813 2 года назад

    i like the background music.

  • @rakarjammdha
    @rakarjammdha 3 года назад

    Cool..nice work

  • @sweetlobster3939
    @sweetlobster3939 3 года назад +1

    great tuto, just straight to the point ty !

  • @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

  • @darenkoch
    @darenkoch Год назад +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.

  • @tosreancomputer7351
    @tosreancomputer7351 3 года назад

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

  • @王智立-i8m
    @王智立-i8m Год назад

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

  • @thabangthabza9405
    @thabangthabza9405 4 года назад +1

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

  • @JosephSivits
    @JosephSivits 3 года назад

    This video is great.

  • @daytodays1466
    @daytodays1466 3 года назад

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

  • @garapatigokulsairam5889
    @garapatigokulsairam5889 2 года назад +1

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

  • @quentineby4068
    @quentineby4068 3 года назад

    Great video, I learned a lot. Thank you !

  • @AAlmurik
    @AAlmurik 2 года назад +2

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

  • @basemabdellatiff5213
    @basemabdellatiff5213 3 года назад

    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 !

  • @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 !

  • @guduro7632
    @guduro7632 2 года назад

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

  • @tamashaetv5405
    @tamashaetv5405 3 года назад

    excellent

  • @jijeshraj6012
    @jijeshraj6012 2 года назад

    Thanks a ton!!!

  • @gabytesrido3962
    @gabytesrido3962 2 года назад

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

  • @RashidZana
    @RashidZana 3 года назад

    Thank you great job

  • @ClaudioJrTsuyosa
    @ClaudioJrTsuyosa 3 года назад

    Thank you 🙏❤🌹

  • @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

  • @hwdsuranga
    @hwdsuranga 3 года назад

    Thank you very much

  • @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,

  • @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.

  • @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" :)

  • @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.?

  • @muhammadfaris8316
    @muhammadfaris8316 Год назад

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

  • @dariuswurzbacher4067
    @dariuswurzbacher4067 3 года назад

    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  3 года назад

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

    • @dariuswurzbacher4067
      @dariuswurzbacher4067 3 года назад

      @@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

  • @shampurnadas7664
    @shampurnadas7664 Год назад

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

  • @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;

  • @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)

  • @amannur8604
    @amannur8604 4 года назад

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

  • @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

  • @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.

  • @shubhamchavan7338
    @shubhamchavan7338 3 года назад

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

  • @lulustudio3702
    @lulustudio3702 3 года назад

    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 ruclips.net/video/U0zYxZ6OzDM/видео.html

  • @realhistory765
    @realhistory765 2 года назад

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

  • @hiepao3617
    @hiepao3617 2 года назад

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

  • @User_00128
    @User_00128 3 года назад +2

    please stop the music

  • @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???