Skip to main content

Command Palette

Search for a command to run...

๐—–๐—ต๐—ฎ๐—น๐—น๐—ฒ๐—ป๐—ด๐—ฒ๐˜€ & ๐—ฆ๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป๐˜€:

Published
โ€ข1 min readโ€ขView as Markdown
  1. ๐—–๐—ต๐—ฎ๐—น๐—น๐—ฒ๐—ป๐—ด๐—ฒ: Struggled with binding dropdown list to model property using ViewBag.
    ๐—ฆ๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป: Switched to IEnumerable<SelectListItem> for strong typing in the ViewModel.

    var jobApps = _context.JobApplications .Select(j => new SelectListItem { Value = j.Id.ToString(), Text = j.CompanyName }).ToList(); model.JobApplicationList = jobApps;

  2. ๐—–๐—ต๐—ฎ๐—น๐—น๐—ฒ๐—ป๐—ด๐—ฒ: Missing FollowUp model object in HttpGet Create() method.
    ๐—ฆ๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป: Manually assigned an empty FollowUpViewModel and populated the dropdown list.

    var model = new FollowUpViewModel { JobApplicationList = jobApps, FollowUpDate = DateTime.Today // Default value };

  3. ๐—–๐—ต๐—ฎ๐—น๐—น๐—ฒ๐—ป๐—ด๐—ฒ: Getting foreign key constraint errors when inserting data.
    ๐—ฆ๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป: Ensured job application IDs existed before inserting follow-up records.

    INSERT INTO JobApplications (Id, CompanyName, JobTitle) VALUES (101, 'TechNova Ltd', 'DOTNET Developer');

๐—›๐—ผ๐˜„ ๐—ฑ๐—ผ ๐˜†๐—ผ๐˜‚ ๐—ต๐—ฎ๐—ป๐—ฑ๐—น๐—ฒ ๐—ฑ๐—ฟ๐—ผ๐—ฝ๐—ฑ๐—ผ๐˜„๐—ป ๐—น๐—ถ๐˜€๐˜๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—ณ๐—ผ๐—ฟ๐—ฒ๐—ถ๐—ด๐—ป ๐—ธ๐—ฒ๐˜† ๐—ฐ๐—ผ๐—ป๐˜€๐˜๐—ฟ๐—ฎ๐—ถ๐—ป๐˜๐˜€ ๐—ถ๐—ป ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ฎ๐—ฝ๐—ฝ๐—น๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ณ๐—ผ๐—ฟ๐—บ๐˜€, ๐—ฎ๐—ป๐—ฑ ๐˜„๐—ต๐—ฎ๐˜ ๐—ฏ๐—ฒ๐˜€๐˜ ๐—ฝ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ๐˜€ ๐—ฑ๐—ผ ๐˜†๐—ผ๐˜‚ ๐—ณ๐—ผ๐—น๐—น๐—ผ๐˜„ ๐˜๐—ผ ๐—ฒ๐—ป๐˜€๐˜‚๐—ฟ๐—ฒ ๐˜€๐—บ๐—ผ๐—ผ๐˜๐—ต ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—ถ๐—ป๐˜€๐—ฒ๐—ฟ๐˜๐—ถ๐—ผ๐—ป?

More from this blog

๐—ฃ๐—ฎ๐˜€๐˜€๐˜„๐—ผ๐—ฟ๐—ฑ๐—น๐—ฒ๐˜€๐˜€ ๐—”๐˜‚๐˜๐—ต๐—ฒ๐—ป๐˜๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฅ๐—ฒ๐˜ƒ๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป

Passwords are the weakest link โ€” and .NET 10 just made it easier to remove them. With built-in support for passkeys and WebAuthn, you can authenticate users securely without storing a single password. .NET 10 introduces native passwordless authentica...

Nov 4, 20251 min read

.๐—ก๐—˜๐—ง ๐Ÿญ๐Ÿฌ ๐— ๐—ฎ๐—ธ๐—ฒ๐˜€ ๐—Ÿ๐—˜๐—™๐—ง & ๐—ฅ๐—œ๐—š๐—›๐—ง ๐—๐—ผ๐—ถ๐—ป๐˜€ ๐—˜๐—ฎ๐˜€๐—ถ๐—ฒ๐—ฟ ๐—ง๐—ต๐—ฎ๐—ป ๐—˜๐˜ƒ๐—ฒ๐—ฟ!

If youโ€™ve ever struggled to write complex LEFT JOINs in LINQ, youโ€™ll love whatโ€™s coming in .NET 10. No more juggling SelectMany, GroupJoin, and DefaultIfEmpty โ€” Microsoft just made it clean, readable, and developer-friendly! In .NET 10, LINQ gets fir...

Nov 1, 20251 min read

๐Ÿ”ฅ .๐—ก๐—˜๐—ง ๐—™๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ ๐˜ƒ๐˜€ .๐—ก๐—˜๐—ง ๐—–๐—ผ๐—ฟ๐—ฒ โ€” ๐—ž๐—ฒ๐˜† ๐——๐—ถ๐—ณ๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐—ฐ๐—ฒ๐˜€ ๐—˜๐˜…๐—ฝ๐—น๐—ฎ๐—ถ๐—ป๐—ฒ๐—ฑ

If youโ€™re preparing for a .NET developer interview, this is one question you canโ€™t afford to miss! Letโ€™s break down the core differences that every developer should know ๐Ÿ‘‡ 1๏ธโƒฃ Platform Support โ€“ .NET Framework works only on Windows, while .NET Core ...

Oct 30, 20252 min read

๐—˜๐—ฎ๐—ด๐—ฒ๐—ฟ ๐˜ƒ๐˜€ ๐—Ÿ๐—ฎ๐˜‡๐˜† ๐—Ÿ๐—ผ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด

In ๐—˜๐—ป๐˜๐—ถ๐˜๐˜† ๐—™๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ ๐—–๐—ผ๐—ฟ๐—ฒ, how and when related data is fetched matters โ€” thatโ€™s where ๐—˜๐—ฎ๐—ด๐—ฒ๐—ฟ ๐—Ÿ๐—ผ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด and ๐—Ÿ๐—ฎ๐˜‡๐˜† ๐—Ÿ๐—ผ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด come in. ๐—˜๐—ฎ๐—ด๐—ฒ๐—ฟ ๐—Ÿ๐—ผ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด means related data is loaded immediately with the main e...

Oct 29, 20251 min read

Visual Studio Updates

89 posts