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

C#

 
QuestionRegarding sending message using c# Pin
Member 1075021214-Apr-14 23:46
Member 1075021214-Apr-14 23:46 
AnswerRe: Regarding sending message using c# Pin
Richard MacCutchan15-Apr-14 1:34
mveRichard MacCutchan15-Apr-14 1:34 
GeneralRe: Regarding sending message using c# Pin
Member 1075021215-Apr-14 3:19
Member 1075021215-Apr-14 3:19 
GeneralRe: Regarding sending message using c# Pin
Wes Aday15-Apr-14 3:58
professionalWes Aday15-Apr-14 3:58 
QuestionLocalization in WPF MVVM Pin
sifi mohamed amine14-Apr-14 23:41
sifi mohamed amine14-Apr-14 23:41 
SuggestionRe: Localization in WPF MVVM Pin
Richard Deeming15-Apr-14 2:08
mveRichard Deeming15-Apr-14 2:08 
QuestionRetriving user information in a .aspx page Pin
krish099114-Apr-14 20:47
krish099114-Apr-14 20:47 
AnswerRe: Retriving user information in a .aspx page PinPopular
OriginalGriff14-Apr-14 21:11
mveOriginalGriff14-Apr-14 21:11 
A lot of that is going to depend on how you handle membership, and identify users.
But, the most basic way to do this is to use the Session to store the user info - his username perhaps.
Store teh username when he logs in:
C#
Session["UserName"] = myUserName;

Then, you can display the username just by including it in your HTML:
HTML
Welcome <%=Session["UserName"]%>

Or, you can set it into a label in your C#:
C#
Label1.Text = string.Format("Welcome {0}!", Session["UserName"]);

Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

Questionhow to mange seat booking for online movir ticket booking Pin
Member 1032370414-Apr-14 19:06
Member 1032370414-Apr-14 19:06 
AnswerRe: how to mange seat booking for online movir ticket booking Pin
Peter Leow14-Apr-14 19:28
professionalPeter Leow14-Apr-14 19:28 
AnswerRe: how to mange seat booking for online movir ticket booking Pin
Bernhard Hiller14-Apr-14 22:38
Bernhard Hiller14-Apr-14 22:38 
QuestionSimple calculation with double or float numbers Pin
Mario 5614-Apr-14 13:13
Mario 5614-Apr-14 13:13 
AnswerRe: Simple calculation with double or float numbers Pin
Dave Kreskowiak14-Apr-14 15:13
mveDave Kreskowiak14-Apr-14 15:13 
GeneralRe: Simple calculation with double or float numbers Pin
Mario 5615-Apr-14 2:31
Mario 5615-Apr-14 2:31 
GeneralRe: Simple calculation with double or float numbers Pin
Dave Kreskowiak15-Apr-14 14:36
mveDave Kreskowiak15-Apr-14 14:36 
AnswerRe: Simple calculation with double or float numbers Pin
harold aptroot14-Apr-14 21:38
harold aptroot14-Apr-14 21:38 
GeneralRe: Simple calculation with double or float numbers Pin
Mario 5615-Apr-14 2:43
Mario 5615-Apr-14 2:43 
GeneralRe: Simple calculation with double or float numbers Pin
harold aptroot15-Apr-14 2:48
harold aptroot15-Apr-14 2:48 
QuestionI can not add record to my table Pin
ehabaziz200114-Apr-14 8:37
ehabaziz200114-Apr-14 8:37 
SuggestionRe: I can not add record to my table Pin
Richard Deeming14-Apr-14 8:53
mveRichard Deeming14-Apr-14 8:53 
GeneralRe: I can not add record to my table Pin
ehabaziz200117-Apr-14 11:52
ehabaziz200117-Apr-14 11:52 
QuestionHow to reuse event Pin
Member 1034709214-Apr-14 4:30
Member 1034709214-Apr-14 4:30 
AnswerRe: How to reuse event Pin
OriginalGriff14-Apr-14 5:08
mveOriginalGriff14-Apr-14 5:08 
AnswerRe: How to reuse event Pin
Dave Kreskowiak14-Apr-14 5:09
mveDave Kreskowiak14-Apr-14 5:09 
GeneralRe: How to reuse event Pin
Member 1034709215-Apr-14 18:39
Member 1034709215-Apr-14 18:39 

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.