Click on delete button Check id is fetch are not in delete button click Add console.Log( variable name) After that call service Check status record delete are not I will explain step step next blog post thank you
using System; using System.Linq; 1)Reverse Name String in C# String Name="Sudam"; int Len=Name.Length-1; while(Len>=0) { Console.Write(Name[Len]); Len--; } ----------------------------------------- Output --madus ----------------------------------------- 2)Reverse Words of a String in C# string s = "I Name Is Sudam"; string[] a = s.Split(' '); int temp= a.Length - 1; while (temp >= 0) { Console.Write(a[temp] + ' '); temp--; } ------------------------------------------ Output --Sudam Is Name I ---------------------------------------- 3) How to Fine count how many double letters are in a string? int doubleLetters = 0; string characters = "Hello"; for (int i = 0; i < characters.Length - 1; i++) { if (characters[i] == characters[i + 1]) { doubleLetters++; i++; } Console.WriteLine(doubleLetters); } -----------------------------------------...
--- Step-by-Step: API Call with Bearer Token Header --- ✅ STEP 1: Add a Config Class for Token (Optional but Clean) File: AppConfig.cs (root folder) namespace ApiConsoleApp { public static class AppConfig { // You can load this from config file or env variable too public static string BearerToken = "YOUR_DYNAMIC_BEARER_TOKEN_HERE"; public static string ApiBaseUrl = "https://your-api-base-url.com/"; } } --- ✅ STEP 2: Modify API Client to Use Bearer Token File: ApiClients/UserApiClient.cs using System; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; using ApiConsoleApp.Models; using Newtonsoft.Json; namespace ApiConsoleApp.ApiClients { public class UserApiClient { private readonly HttpClient _httpClient; public UserApiCli...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; using System.Configuration; namespace Prartice1 { public partial class Registration : System.Web.UI.Page { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Con"].ConnectionString); protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { GetEmpDetails(); } } private void GetEmpDetails() { DataTable dt = new DataTable(); ...