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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:54:31+00:00 2026-06-02T08:54:31+00:00

I am writing code in ASP.NET and I am new at it. I have

  • 0

I am writing code in ASP.NET and I am new at it. I have two arrays, one of names and the other of ids.

I want to create a table that would have the names in one column and two links which depend on the ids in the other column (edit to this specific name link, delete to this specific name link).

In PHP I would do it this way:

<table>
 <tr>
  <td>Title</td>
  <td>Actions</td>
 </tr>
 <?php 
  $names = Array("a", "b", "c");
  $ids = Array("1", "2", "3");
  for($i = 0; $i < 3; $i++):
 ?>
  <tr>
   <td>
    <?php echo $names[$i]; ?>
   </td>
   <td>
    <a href="edit.php?id=<?php echo $ids[$i]; ?>">Edit</a>
    <a href="delete.php?id=<?php echo $ids[$i]; ?>">Delete</a>
   </td>
  </tr>
 <?php endforeach; ?>
</table>

I understand that you can write something very similar in ASP.NET, but I have to use RadGrids. A huge thanks for help!

EDIT:
If it is important, I get the data as an XML, and I chose to parse it as 2 arrays. If it is easier, I can parse it differently.

  • 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-02T08:54:33+00:00Added an answer on June 2, 2026 at 8:54 am

    RadGrids are an asp.net webforms control, you would normally bind the control to a datasource, and then change properties programatically in the code behind.

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

Sidebar

Related Questions

I'm writing a web page in ASP.NET. I have some JavaScript code, and I
I am writing an web app in asp.net, In the code behind I have
For my ASP.NET MVC3 (new) development, I don't want to create a dependency on
I am writing an ASP.NET custom control. In my custom control code, I find
I have an ASP.NET site that I am maintaining. Currently it has code that
I'm writing an ASP.NET 2.0 page in VS2008. In my Page_Load method I have
I am writing a SharePoint web part which will have a simple ASP.NET form.
I am writing a web app in asp.net. I have an aspx page that
I am writing an ASP.NET (C#) application to create users for my domain. It
I have ASP.NET MVC3 project and I am writing some extension methods that returns

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.