Posts

Showing posts from August, 2023

Views with and Without Layout

Image
 View Without layout Created using layout Design

Created MVC Application with Entity Framework

Image
 MVC App using Model First with Entity Framework Table data Details pane Index page of My Controller

Adding Different Layers in Web Application

Image
1. WCF -Data Access Layer 2.  DLL-Business Logic 3. App-Application Layer Add Service in Class Library Add DLL in App File Run the App to show the output.
Image
 

Different Formats on Console.Writeline

   Simple Way   Console.WriteLine("Hello " + Name + "," + currentDate + "Welcome to our Online Voting Portal. Your Voter Id And Other Details." +                 "Plz Verify." + Voterid + "," + state + "," + city + "," + panchayat);      Standard Way Console.WriteLine($"{Environment.NewLine}Hello,{Name},Welcome to our Online Voting Portal. Your Voter Id And Other Details.  Plz Verify, {Voterid },{ state} ,{city}, { panchayat}");         

Creating Simple Console App (For Online Voting)

      static void Main(string[] args)         {               bool isyesno = VoterPart();             if (isyesno==true)             {                 Console.WriteLine("Your Vote is Submitted.Thanks");             }             else             {                 VoterPart();             }         }         static bool VoterPart()         {             int Id;             int Voterid;             string Name;             string country, state, city, panchayat;       ...