Solved

using asp:HyperLinkField to pass querystring

Posted on 2011-09-28
1
245 Views
Last Modified: 2013-12-17
I have a datagrid with a DataKeyName of PasswordID
I want one of my columns in the grid to be an asp:HyperLinkField  So the dataTextField will be "Site" and I want my NavigateURL to  carry a variable so something like:  

mypage.aspx?SiteID=@SiteId
is this possible?

If so how do I declare @SiteId given that my DataKeyName is already taken?

I tried mypage.aspx?SiteID= <%#Eval("SiteId") %> but that throws an error.


Many thanks in advance
0
Comment
Question by:forsters
1 Comment
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
ID: 36716623
Yes. Its possible. Refer: http://www.tek-tips.com/faqs.cfm?fid=4372

The url of the hyperlink field can be assigned from the Site filed of your result.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question