1

In my application i want to show user profile image in layout page (_LoginPartial).In database their is a student table which has a userid field that is maintain the relationship between AspNetUser table.Student table has the image field.So How to show that image in Layout page (_LoginPartial) view. Thanks

1
  • 1
    What have you tried? Please post example code for what you have already tried so we can guide you in the right direction. Commented Feb 26, 2015 at 12:17

1 Answer 1

2

Using following steps

  1. After valid login return to partial view same time return your profile image using model binding
  2. In partial view you can use

    <img src= "@Url.Content(Model.ProfileImg)" alt="Image" />
    
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.