473,395 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Hyperlink parameters & DataGrids

I need to pass an id from one record to a different page. The ID is in a
Datagrid and I want to pass the record to another page. Example:
http://www.domain.com?RecordID=2
the parameter I want to pass is RecordID with a value 2.

How would I send the RecordID from a datagrid?
Nov 19 '05 #1
1 1239
The simplest solution would be to use a Hyperlink column, right-click the
datagrid control, select "Property Builder" and add a Hyperlink column to the
grid. Then set the "URL Field" to the RecordID and the "URL Format string"
to "http://www.domain.com?RecordID={0}". The datagrid will automatically
replace the {0} with the RecordID from the current row of the datagrid
control.

HTH,
Jorge

"I am Sam" wrote:
I need to pass an id from one record to a different page. The ID is in a
Datagrid and I want to pass the record to another page. Example:
http://www.domain.com?RecordID=2
the parameter I want to pass is RecordID with a value 2.

How would I send the RecordID from a datagrid?

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: P. Mellerin | last post by:
Hello, I have been searching online for a whole day and couldn't find an answer for this. I have this hyperlink server control: ...
5
by: Newbie | last post by:
Hello! I am using a DataGrid to show a table. Some of the columns are showing numeric data. I need to show these numeric data as hyperlinks so that the user can drill downward (or get more...
1
by: YSRao | last post by:
Dear Friends I would like to know how to assign some parameter and values to the url in a datagrid hyperlink column.. i have datagrid with 5 items and i made the column as hyperlinkcolumn and here...
4
by: Lan H. Nguyen | last post by:
I have this line of code in my .aspx page <asp:HyperLink ID="hrefView" CssClass="main" ForeColor="blue" Runat="server" NavigateUrl='<%# "View.aspx?id=" + ID.ToString()%>'>View...
6
by: FoundThisOnline | last post by:
I have been searching online for a whole day and couldn't find an answer for this. I have this hyperlink server control: ------------------------------------------------ <asp:HyperLink...
5
by: Tarun Mitra | last post by:
I have not been able pass the parameter with a space in an hyperlink on a ..aspx page something like <asp:HyperLink NavigateUrl="http://localhost/syskiosk/test.exe John" id="hlEditDetails"...
2
by: rn5a | last post by:
In a shopping cart app, a ASPX page retrieves the order details & personal details of a user from a MS-Access database table depending upon the username of the user. The order details of a...
6
by: tshad | last post by:
I am finally getting the path to the Current Page using Page.ResolveURL. I am now getting "/jobSeeker/displayCompanyOverview.aspx" which is what I was looking for. But what is the syntax to...
6
by: monkey2007 | last post by:
Hi, Thanks for reading this. I have searched all over the web but found no solution. How would one change a url to a hyperlink and email the hyperlink...I parsed through an html file to get this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.