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 9021299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:13:25+00:00 2026-06-16T05:13:25+00:00

I have created a user profile page for a simple website in C#.net. I’m

  • 0

I have created a user profile page for a simple website in C#.net. I’m using detailsview to show the user information but I want to hide the column names stored in database instead of it I want to write them in html table. Details view provide two columns First one for the Column names in the database and the second for value for these columns. I want to remove the first one and define it manually.
Is there any way to hide the all column names and show only values of detailsview, and if not then please suggest me to retrieve information for profile page and editing feature also?

Code for detailsview:

<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                BorderWidth="0px" DataSourceID="UserDetails" Height="287px" 
                style="text-align: left" Width="394px">
                <Fields>
                    <asp:BoundField DataField="Login" HeaderText="Login" SortExpression="Login" />
                    <asp:BoundField DataField="Uname" HeaderText="Uname" SortExpression="Uname" />
                    <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                    <asp:BoundField DataField="DOB" HeaderText="DOB" SortExpression="DOB" />
                    <asp:BoundField DataField="Hometown" HeaderText="Hometown" 
                        SortExpression="Hometown" />
                    <asp:BoundField DataField="Interests" HeaderText="Interests" 
                        SortExpression="Interests" />
                </Fields>
            </asp:DetailsView>

Code for database:

 <asp:SqlDataSource ID="UserDetails" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConString %>" 
                SelectCommand="SELECT [Login], [Uname], [Email], [DOB], [Hometown], [Interests] FROM [Profile] WHERE ([Login] LIKE '%' + @Login + '%')">
                <SelectParameters>
                    <asp:SessionParameter Name="Login" SessionField="usr" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
  • 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-06-16T05:13:26+00:00Added an answer on June 16, 2026 at 5:13 am

    You can hide or rename the column of detailview without using html table , fellow this link

    http://www.devmanuals.com/tutorials/ms/aspdotnet/detailsview.html

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

Sidebar

Related Questions

I have created a Company model and a profile model. Every User belongs to
I have created a user from openfire admin page. I have entered the username,
I have created a COM enabled .NET User Control and am wondering what is
We have created a User Control for ASP.Net. At any one time, a user's
I have created web-application using Joomla 2.5. In that I have used Joomla user
On my website I want the user to have the ability to login/logout from
I have created a User called Student and Teacher that can login into the
I have created a user control (link) which has a label and a button.
I have created a user control (CheckedDirTree) that exposes a CheckedFolder property which in
I have created one user named tuser with create database rights in SQL server

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.