Click here to Skip to main content
15,440,268 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: give me solution plzzzzzzzzzz Pin
ZurdoDev24-Mar-15 8:53
professionalZurdoDev24-Mar-15 8:53 
GeneralRe: give me solution plzzzzzzzzzz Pin
Member 467887925-Mar-15 4:49
MemberMember 467887925-Mar-15 4:49 
QuestionHow to Insert Update And Delete Record for html table in asp.net without gridview ? Pin
fateparakiran21-Mar-15 9:32
Memberfateparakiran21-Mar-15 9:32 
AnswerRe: How to Insert Update And Delete Record for html table in asp.net without gridview ? Pin
Ali Al Omairi(Abu AlHassan)22-Mar-15 22:52
professionalAli Al Omairi(Abu AlHassan)22-Mar-15 22:52 
QuestionMemberhip.CreateUser() is given an exception !! Pin
fahd95121-Mar-15 5:57
Memberfahd95121-Mar-15 5:57 
AnswerRe: Memberhip.CreateUser() is given an exception !! Pin
Matt U.24-Mar-15 9:47
MemberMatt U.24-Mar-15 9:47 
Questionget logged in user name Pin
Praveen Kandari20-Mar-15 0:53
MemberPraveen Kandari20-Mar-15 0:53 
AnswerRe: get logged in user name Pin
Afzaal Ahmad Zeeshan20-Mar-15 1:14
mveAfzaal Ahmad Zeeshan20-Mar-15 1:14 
Then the better thing would be to first go and learn ASP.NET's authentication modules, or the framework being used. You might be using Identity; or a WebSecurity-based method of authentication which can be answered by the way you create your application -- as a new project or a new website.

If that is the WebSecurity[^]-based application (a website), then you can do that like this,

C#
var username = WebSecurity.CurrentUserName; // the email field in database


Or you can get the UserId of the user and query the database to get the Name.

Otherwise, if you're using Identity[^], then you would have to query the database anyway; Entity Framework has got you covered!

You can get the values from the database as,

C#
// db is the DbContent variable, and someUserId can be the current user's id.

db.Users.FirstOrDefault(x => x.Id == someUserId);


You can then move on and learn other basics about ASP.NET from MSDN, or the best option. Test, try and solve method!
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

QuestionInterview Question -Why Validation in Update Panel is not working properly? Pin
Rajesh waran19-Mar-15 19:37
professionalRajesh waran19-Mar-15 19:37 
AnswerRe: Interview Question -Why Validation in Update Panel is not working properly? Pin
F-ES Sitecore19-Mar-15 22:36
professionalF-ES Sitecore19-Mar-15 22:36 
AnswerRe: Interview Question -Why Validation in Update Panel is not working properly? Pin
Rajesh waran19-Mar-15 23:59
professionalRajesh waran19-Mar-15 23:59 
Questioncheck data exist or not? Pin
Praveen Kandari19-Mar-15 0:00
MemberPraveen Kandari19-Mar-15 0:00 
AnswerRe: check data exist or not? Pin
Afzaal Ahmad Zeeshan19-Mar-15 1:39
mveAfzaal Ahmad Zeeshan19-Mar-15 1:39 
AnswerRe: check data exist or not? Pin
F-ES Sitecore19-Mar-15 1:40
professionalF-ES Sitecore19-Mar-15 1:40 
AnswerRe: check data exist or not? Pin
jkirkerx19-Mar-15 8:24
professionaljkirkerx19-Mar-15 8:24 
QuestionInterview Question for ASP.NET Pin
Victor Ebe18-Mar-15 5:53
MemberVictor Ebe18-Mar-15 5:53 
AnswerRe: Interview Question for ASP.NET Pin
ZurdoDev19-Mar-15 3:46
professionalZurdoDev19-Mar-15 3:46 
QuestionInfinite Scroll by jquery and asp.net and page slow & crash issue Pin
Tridip Bhattacharjee17-Mar-15 23:11
professionalTridip Bhattacharjee17-Mar-15 23:11 
AnswerRe: Infinite Scroll by jquery and asp.net and page slow & crash issue Pin
ZurdoDev19-Mar-15 3:47
professionalZurdoDev19-Mar-15 3:47 
GeneralRe: Infinite Scroll by jquery and asp.net and page slow & crash issue Pin
Tridip Bhattacharjee19-Mar-15 21:34
professionalTridip Bhattacharjee19-Mar-15 21:34 
QuestionShowing Polyline Using ASP NET and database Pin
Member 1110549017-Mar-15 22:05
MemberMember 1110549017-Mar-15 22:05 
QuestionReload parent page after closing the popup Pin
indian14317-Mar-15 14:04
Memberindian14317-Mar-15 14:04 
AnswerRe: Reload parent page after closing the popup-Resolved Pin
indian14317-Mar-15 17:59
Memberindian14317-Mar-15 17:59 
Questionexport gridview data to ODS file Pin
Praveen Kandari15-Mar-15 23:56
MemberPraveen Kandari15-Mar-15 23:56 
AnswerRe: export gridview data to ODS file Pin
jkirkerx16-Mar-15 11:01
professionaljkirkerx16-Mar-15 11:01 

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.