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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:13:43+00:00 2026-05-19T00:13:43+00:00

i have in my aspx page <% for(int i=0;i<10;i++) { LinkButton1.CommandArgument=i.ToString(); %> <asp:LinkButton ID=LinkButton1

  • 0

i have in my aspx page

<%
    for(int i=0;i<10;i++)
    {
        LinkButton1.CommandArgument=i.ToString();
%>    
        <asp:LinkButton ID="LinkButton1" runat="server" OnCommand="LinkButton1_Click"></asp:LinkButton>
<% 
    }
%>

how can i pass a value in my aspx.cs page like:

protected void LinkButtonStergeArticol_Click(object sender,CommandEventArgs e)
{
    String id = e.CommandArgument.ToString();
}

?

i know it’s not correct because i have more LinkButtons with the same ID, but is there any solution for my problem in this scenario? Or can you suggest me another approach?

i need to have a linkbutton for every item i have in an array. then i need to pass the item’s index so that i can delete it in my aspx.cs page.

  • 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-19T00:13:44+00:00Added an answer on May 19, 2026 at 12:13 am

    Can’t you use a Repeater or ListView to generate that list of controls? Those are designed to generate a list of controls.

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

Sidebar

Related Questions

I have the following image in my aspx page <td> <asp:Image ID=LargeImage runat=server Height=100
I have two nested repeaters in my *.aspx page. <asp:Repeater runat=server id=rptMain> <ItemTemplate> <h1><%#DataBinder.Eval(Container.DataItem,
I have a aspx page that has a UpdatePanel and a asp timer. the
Let's say I have <div id=blah>500</div> (Context: asp.net aspx page) How do I allow
I have a property in my page2.aspx.cs page public int? Id { get {
I have an ASPX page (On server A) which is invoked using NTLM credentials.
How can I put variables that have scope the whole session on ASP.NET Page
I have an aspx page which has the following: A repeater with a linkbutton
I am using VS2005 C# ASP.NET. I have a .aspx page with a script
I have an ASPX page .In the Top i am displaying 5 categories (Ex

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.