Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Anil Sharma1983

@Anil Sharma1983
About
Posts
11
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • what is tuple in mvc
    A Anil Sharma1983

    which one is use tuple or out varaible . which is best?

    .NET (Core and Framework) question asp-net architecture

  • display the time according the clien time zone asp.net
    A Anil Sharma1983

    how to show datetime according to the client zone?

    Web Development csharp asp-net tutorial question

  • async and await in asp.net
    A Anil Sharma1983

    async and await method not suitable in heavy traffic website

    ASP.NET csharp asp-net

  • Documentation practices
    A Anil Sharma1983

    done

    - Uncategorised posts - com question

  • How To Show Dll code in asp.net
    A Anil Sharma1983

    you can view the code using net reflector or jetbrains resharper decompiler

    .NET (Core and Framework) csharp asp-net tutorial

  • After adding ASP.NET login controls, how do I make it functional?
    A Anil Sharma1983

    Please follow this link given below and configure membership https://msdn.microsoft.com/en-us/library/ms731049%28v=vs.110%29.aspx[^]

    .NET (Core and Framework) csharp question javascript asp-net

  • Why many developer hate asp.net?
    A Anil Sharma1983

    many developer criticize the asp.net. I don't know they hated due to brand name of Microsoft or performance asp.net?.

    .NET (Core and Framework) csharp asp-net performance question

  • india news channel opnion poll and exit poll
    A Anil Sharma1983

    most of news channel poll proved wrong what happened tommorrow

    Site Bugs / Suggestions announcement

  • async and await concept
    A Anil Sharma1983

    thanks Peter for your help

    C# question

  • async and await concept
    A Anil Sharma1983

    yes, i was thinking it should completed in 5 seconds. So please clarify to me await and async concept. thanks your help

    C# question

  • async and await concept
    A Anil Sharma1983

    i am trying to understand async and await concept. so i am make sample program when i run this program take 8 seconds to execute if i execute without async and await it also take 8 second to execute. so what is wrong in this program.

    protected async void btnSubmit_Click(object sender, EventArgs e)
    {

       Response.Write(DateTime.Now.ToString("dd-MM-yyyy:hh:mm:ss") + " <br/>");
    
       //dowork();
       await Task.Run(() => dowork());
      // await Task.Run(() => DoAnotherWork());
    
       DoAnotherWork();
       Response.Write(DateTime.Now.ToString("dd-MM-yyyy:hh:mm:ss") + " <br/>");
       // btnSubmit.Text="Done it";
    

    }

    void dowork()
    {
    Thread.Sleep(5000);
    }
    void DoAnotherWork()
    {
    Thread.Sleep(3000);

    }

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups