Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7531331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:08:30+00:00 2026-05-30T05:08:30+00:00

I would like to ask your opinions on how the current log in user

  • 0

I would like to ask your opinions on how the current log in user can view the data that he/her entered. For example, I am building expenses tracking system. Users can insert all the expenses spent by them by select the month ( drop down menu) which I already made and the expenses by insert them in each text boxes. After they’ve confirmed the items, the system will submit all the data in the database (sql).

How can I retrieve only the row that related to the current username to be shown in gridview of something else> I am working with ASP.NET in C# language.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:08:31+00:00Added an answer on May 30, 2026 at 5:08 am

    First this is a great tutorial on how SQL and asp.net works together. It explains how to get data from a database and how to update that same data.

    http://www.dotnetperls.com/sqlparameter

    in the first example the sql statment says

    new SqlCommand("SELECT * FROM Dogs1 WHERE Name LIKE @Name", connection))
    

    Your sqlstatment will say

    new SqlCommand("SELECT * FROM [What your table name is] WHERE UserID = @UserName", connection))
    

    HttpContext.Current.User.Identity.Name;

    on this line replace this

     command.Parameters.Add(new SqlParameter("Name", dogName));
    

    with this
    command.Parameters.Add(new SqlParameter(“UserName”, HttpContext.Current.User.Identity.Name));

    you will then need to pull your infomation out of your datareader 
    

    Similar to the example above as well. If you need more direction please let me know.

    Hope that helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to ask your opinions regarding the way I handle MultiTenancy. Im
I would like to ask your guidance on how to authenticate using email add/
What I would like ask is best illustrated by an example, so bear with
Hi I would like to ask if its possible get array with clear data
Hello everybody :D I would like to ask for your help on this problem.
I use c#, linq and EF4 I would like ask your help. My question:
Hello I would like to ask your help regarding javascript code, how do I
I am quite new about using Solr, but would like to ask your help.
i would like to ask for your help since I'm having difficulty resolving this
I'd like ask a question about building applications in .NET that use data from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.