Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 686

Using Customised URLs as Hyperlink Columns in ASP.NET DataGrids

$
0
0
Hi

I'm working with a DataGrid object in ASP.NET, which is populated from a SQL Union query. That union query itself draws data from two separate tables in the back-end database.

In the first table I have a column which pads out the identity value with zeros and prefixes the whole thing with "ISS". In the second table I have a similar column, except that the prefix at the beginning of it is "BRE".

What I want to be able to do is to configure the datagrid so that when the column prefix is "ISS", the page that the URL references is called "LogIssue.aspx" with the appropriate parameter. If the column prefix is "BRE", the URL reference would be called "LogBreach.aspx", again with the appropriate parameter.

I've tried building up the formatted string as a column in the stored procedure, but to no avail. Can someone please advise me on this?

Thanks

Viewing all articles
Browse latest Browse all 686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>