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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:29:50+00:00 2026-05-30T15:29:50+00:00

<asp:GridView runat=server ID=gridUserAccounts SkinID=gridviewSkin PageSize=5> <Columns> <asp:BoundField HeaderText=User Name DataField=UserName /> <asp:BoundField HeaderText=Email SortExpression=Email

  • 0
<asp:GridView runat="server" ID="gridUserAccounts" SkinID="gridviewSkin" PageSize="5">
    <Columns>
        <asp:BoundField HeaderText="User Name" DataField="UserName" />
        <asp:BoundField HeaderText="Email" SortExpression="Email" DataField="Email" />
        <asp:BoundField HeaderText="Last Login Date" SortExpression="LastLoginDate" DataField="LastLoginDate" />
        <asp:BoundField HeaderText="Last Activity Date" SortExpression="LastActivityDate" DataField="LastActivityDate" />
      <asp:TemplateField>
        <ItemTemplate>
          <asp:HyperLink runat="server" NavigateUrl='<%# string.Format("manage-user-detail.aspx?UserName={0}", Eval("UserName")) %>' ID="linkNavigate" Text="View Detail" />
        </ItemTemplate>
      </asp:TemplateField>
    </Columns>
</asp:GridView>

Code behind for this is

if (!Page.IsPostBack)
{
    gridUserAccounts.DataSource = Membership.GetAllUsers();
    gridUserAccounts.DataBind();
}

Now, at ‘manage-user-detail.aspx’ page i am catching the query string but it doen’t work like this

if (!IsPostBack)
{
    string userKey1 = Request.QueryString["UserName"];
    Guid UserID = new Guid(Membership.GetUser(userKey1).ProviderUserKey.ToString());
    //Guid userKey = new Guid(userKey1);

    MembershipUser mu = Membership.GetUser(UserID);

    //string userName = mu.UserName;
    lblKey.Text = mu.UserName;
}

Nothing is showing up in label. Why?

  • 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-30T15:29:51+00:00Added an answer on May 30, 2026 at 3:29 pm

    I solve the problem with following code

     string userName = Membership.GetUser(Request.QueryString["UserName"].ToString()).UserName;
     statusLabel.Text = userName;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<asp:GridView ID=grdCatgory runat=server AutoGenerateColumns=false> <Columns> <asp:BoundField DataField=Name HeaderText=Name /> <asp:BoundField DataField=Description HeaderText=Description /> <asp:TemplateField
Markup <asp:GridView ID=GridView1 runat=server AutoGenerateColumns=False> <Columns> <asp:BoundField DataField=insured_first_name HeaderText=First Name /> <asp:BoundField DataField=insured_first_name HeaderText=Middle
Markup: <asp:GridView ID=GridView1 runat=Server> <Columns> <asp:BoundField DataField=status_column HeaderText=Status /> <asp:BoundField ... <asp:BoundField ... </Columns>
I have the following GridView <asp:GridView ID=grdImoveis runat=server DataSourceID=dsGrid> <Columns> <asp:BoundField HeaderText=Nome DataField=NomeCompleto />
<asp:GridView ID=GridView1 runat=server AutoGenerateColumns=False Width=596px DataKeyNames=Key > <Columns> <asp:BoundField DataField=Key HeaderText=Key SortExpression=key Visible=False />
My code: <asp:Content ID=Content2 ContentPlaceHolderID=MainContent runat=server> <asp:GridView runat=server ID=MyGridView AutoGenerateColumns=false> <Columns> <asp:BoundField DataField=Col1 HeaderText=Column
The .aspx: <asp:GridView ID=gvFirst runat=server AutoGenerateColumns=false AllowPaging=true ondatabound=gvFirst_DataBound > <Columns> <asp:BoundField DataField=ID HeaderText=ProductID/> <asp:BoundField
<asp:GridView ID=GridView1 runat=server CssClass=style29> <Columns> <asp:TemplateField HeaderText=Send Message to Group> <ItemTemplate> <asp:LinkButton ID=LinkButton2 runat=server
<asp:GridView ID=GridView1 runat=server AutoGenerateColumns=false Height=146px Width=308px> <Columns> <asp:TemplateField HeaderText=Original Price ControlStyle-Width=100px> <ItemTemplate> <asp:TextBox ID=txtOriginalPrice
I have a Gridview <asp:GridView ID=GridView1 runat=server Width=400px AutoGenerateColumns=false OnSelectedIndexChanged=GridView1_SelectedIndexChanged1> <Columns> <asp:TemplateField> <ItemTemplate> <asp:CheckBox

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.