•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,558 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,821 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 537 | Replies: 3 | Solved
![]() |
Hi,
I have used datagrid to display details. I want to use to link button columns in a grid wherein both the link button column has a different navigation url . For one column i can write in the selected index changed but how can i write the url for second button.I am using c# and asp.net. Please help me with this problem
I have used datagrid to display details. I want to use to link button columns in a grid wherein both the link button column has a different navigation url . For one column i can write in the selected index changed but how can i write the url for second button.I am using c# and asp.net. Please help me with this problem
•
•
Join Date: Mar 2008
Posts: 20
Reputation:
Rep Power: 1
Solved Threads: 5
Supplier:
<asp:LinkButton ID="lnkSupplier" Text='<%#Bind("column_Name") %>' runat="server" CommandName="SupplierLink" CommandArgument='<%#Bind("Column_Name") %>'></asp:LinkButton></br>
Category
<asp:LinkButton ID="lnkCategory" Text='<%#Bind("column_Name") %>' runat="server" CommandName="CategoryLink" CommandArgument='<%#Bind("Column_Name") %>'></asp:LinkButton>Now check which link button is clicked by
protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)
{
if (e.CommandName == "SupplierLink")// Supplier Link button clicked
...... //can get the url/data from e.CommandArgument
else
......
}GOOD LUCK
ravichandra
Last edited by peter_budo : Mar 27th, 2008 at 3:56 am. Reason: Missing back slash in closing [/code] tag
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- binding a datagrid to a datareader (ASP.NET)
- Printing the datagrid control (ASP.NET)
- How to sort the rows in the datagrid and update it successfully? (VB.NET)
- Use of DataGrid (ASP.NET)
- Remove link frame around picture in Datagrid (ASP.NET)
- Linking to E-mail through datagrid (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: crystal report
- Next Thread: How to retrieve records from the database one at a time?


Linear Mode