Click here to Skip to main content
15,889,854 members
Home / Discussions / C#
   

C#

 
GeneralRe: Open Source PDF VIewer in Winform Pin
Anthony Fernando28-Sep-15 21:53
professionalAnthony Fernando28-Sep-15 21:53 
AnswerRe: Open Source PDF VIewer in Winform Pin
Garth J Lancaster28-Sep-15 21:36
professionalGarth J Lancaster28-Sep-15 21:36 
GeneralRe: Open Source PDF VIewer in Winform Pin
Anthony Fernando28-Sep-15 21:54
professionalAnthony Fernando28-Sep-15 21:54 
GeneralRe: Open Source PDF VIewer in Winform Pin
Garth J Lancaster28-Sep-15 23:42
professionalGarth J Lancaster28-Sep-15 23:42 
SuggestionRe: Open Source PDF VIewer in Winform Pin
Richard Deeming29-Sep-15 2:18
mveRichard Deeming29-Sep-15 2:18 
GeneralRe: Open Source PDF VIewer in Winform Pin
Garth J Lancaster29-Sep-15 14:21
professionalGarth J Lancaster29-Sep-15 14:21 
AnswerRe: Open Source PDF VIewer in Winform Pin
Gerry Schmitz30-Sep-15 9:52
mveGerry Schmitz30-Sep-15 9:52 
Questionasync and await concept Pin
Anil Sharma198328-Sep-15 20:29
professionalAnil Sharma198328-Sep-15 20:29 
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.

XML
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);

   }

AnswerRe: async and await concept Pin
Pete O'Hanlon28-Sep-15 21:05
mvePete O'Hanlon28-Sep-15 21:05 
GeneralRe: async and await concept Pin
Anil Sharma198328-Sep-15 21:13
professionalAnil Sharma198328-Sep-15 21:13 
GeneralRe: async and await concept Pin
Pete O'Hanlon28-Sep-15 21:16
mvePete O'Hanlon28-Sep-15 21:16 
GeneralRe: async and await concept Pin
Anil Sharma198328-Sep-15 21:26
professionalAnil Sharma198328-Sep-15 21:26 
AnswerRe: async and await concept Pin
Agent__00728-Sep-15 23:19
professionalAgent__00728-Sep-15 23:19 
AnswerRe: async and await concept Pin
F-ES Sitecore29-Sep-15 1:02
professionalF-ES Sitecore29-Sep-15 1:02 
SuggestionRe: async and await concept Pin
Richard Deeming29-Sep-15 2:14
mveRichard Deeming29-Sep-15 2:14 
Questiongrid control, tile view Pin
Member 1201862628-Sep-15 20:00
Member 1201862628-Sep-15 20:00 
AnswerRe: grid control, tile view Pin
OriginalGriff28-Sep-15 20:11
mveOriginalGriff28-Sep-15 20:11 
QuestionWhy can I save the error information into the table of SQL server ? Pin
Member 245846728-Sep-15 17:40
Member 245846728-Sep-15 17:40 
AnswerRe: Why can I save the error information into the table of SQL server ? Pin
Wendelius28-Sep-15 17:57
mentorWendelius28-Sep-15 17:57 
GeneralRe: Why can I save the error information into the table of SQL server ? Pin
Member 245846729-Sep-15 17:36
Member 245846729-Sep-15 17:36 
GeneralRe: Why can I save the error information into the table of SQL server ? Pin
Wendelius29-Sep-15 18:15
mentorWendelius29-Sep-15 18:15 
GeneralRe: Why can I save the error information into the table of SQL server ? Pin
Member 24584672-Oct-15 2:56
Member 24584672-Oct-15 2:56 
QuestionSitemapnode(breadcrumb) value changes with multiple users Pin
nitin_ion28-Sep-15 4:09
nitin_ion28-Sep-15 4:09 
AnswerRe: Sitemapnode(breadcrumb) value changes with multiple users Pin
Pete O'Hanlon28-Sep-15 4:58
mvePete O'Hanlon28-Sep-15 4:58 
AnswerRe: Sitemapnode(breadcrumb) value changes with multiple users Pin
Richard Deeming28-Sep-15 6:30
mveRichard Deeming28-Sep-15 6:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.