Click here to Skip to main content
15,867,921 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Patrice T28-Mar-16 12:13
mvePatrice T28-Mar-16 12:13 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774728-Mar-16 13:34
Member 1235774728-Mar-16 13:34 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
OriginalGriff28-Mar-16 20:30
mveOriginalGriff28-Mar-16 20:30 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774730-Mar-16 3:03
Member 1235774730-Mar-16 3:03 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
OriginalGriff30-Mar-16 3:13
mveOriginalGriff30-Mar-16 3:13 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
harold aptroot28-Mar-16 22:57
harold aptroot28-Mar-16 22:57 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774730-Mar-16 3:05
Member 1235774730-Mar-16 3:05 
QuestionSession inside webmethod Pin
Sandy Safwat28-Mar-16 5:35
Sandy Safwat28-Mar-16 5:35 
Hi
I want to add a session in the webMethod. but it ignores it totally
C#
[WebMethod (EnableSession = true)]
        public string GetTasksCountWebMethod()
        {
            int result;
            
            if (Session["tasks"] == "" || Session["tasks"]==null)
            {
         //somecode
                Session["tasks"] = result.ToString();
                return result.ToString();
            }
            else
            {
                return Session["tasks"].ToString();
            }
           
        }


Thanks
QuestionRe: Session inside webmethod Pin
ZurdoDev28-Mar-16 7:35
professionalZurdoDev28-Mar-16 7:35 
PraiseAdd connetion properties Pin
Member 770765026-Mar-16 6:49
Member 770765026-Mar-16 6:49 
GeneralRe: Add connetion properties Pin
Dave Kreskowiak26-Mar-16 7:48
mveDave Kreskowiak26-Mar-16 7:48 
GeneralRe: Add connetion properties Pin
Member 770765026-Mar-16 8:01
Member 770765026-Mar-16 8:01 
GeneralRe: Add connetion properties Pin
Dave Kreskowiak26-Mar-16 8:44
mveDave Kreskowiak26-Mar-16 8:44 
QuestionHow to add Windows firewall exception without admin privileges Pin
srikrishnathanthri26-Mar-16 2:31
srikrishnathanthri26-Mar-16 2:31 
AnswerRe: How to add Windows firewall exception without admin privileges Pin
OriginalGriff26-Mar-16 3:06
mveOriginalGriff26-Mar-16 3:06 
GeneralRe: How to add Windows firewall exception without admin privileges Pin
srikrishnathanthri27-Mar-16 18:57
srikrishnathanthri27-Mar-16 18:57 
GeneralRe: How to add Windows firewall exception without admin privileges Pin
Bernhard Hiller28-Mar-16 23:52
Bernhard Hiller28-Mar-16 23:52 
AnswerRe: How to add Windows firewall exception without admin privileges Pin
Dave Kreskowiak26-Mar-16 5:14
mveDave Kreskowiak26-Mar-16 5:14 
AnswerRe: How to add Windows firewall exception without admin privileges Pin
Patrice T27-Mar-16 11:11
mvePatrice T27-Mar-16 11:11 
QuestionHow display the file name in the right menu? Pin
youlu24-Mar-16 22:57
youlu24-Mar-16 22:57 
AnswerRe: How display the file name in the right menu? Pin
Eddy Vluggen25-Mar-16 0:47
professionalEddy Vluggen25-Mar-16 0:47 
GeneralRe: How display the file name in the right menu? Pin
youlu31-Mar-16 20:07
youlu31-Mar-16 20:07 
QuestionAsynchronous email sending with Retries Pin
Jassim Rahma24-Mar-16 3:36
Jassim Rahma24-Mar-16 3:36 
GeneralRe: Asynchronous email sending with Retries Pin
Sascha Lefèvre24-Mar-16 3:51
professionalSascha Lefèvre24-Mar-16 3:51 
AnswerRe: Asynchronous email sending with Retries Pin
Dave Kreskowiak24-Mar-16 3:52
mveDave Kreskowiak24-Mar-16 3:52 

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.