Quantcast
Channel: How to display results based on employees manager and department
Viewing all articles
Browse latest Browse all 6

Re: How to display results based on employees manager and department

$
0
0

Hi simflex

simflex

Here is the code I am working with but it is coming blank when I run it.

According to your description and code ,there are several aspects should be check:

1. You could debug in BindGrid() function to check whether you have got the correctquerystring value .If not ,please refer to link below for HyperLinkField.DataNavigateUrlFormatString demo:

https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.hyperlinkfield.datanavigateurlformatstring(v=vs.110).aspx .

2.In your select sql command ,you lose a "q" in the second query string , modify:

&uerystring("dept") 

To

&Request.QueryString("dept")

3. There is no ManagerID in your Emp table , so change the where condition from :

e.ManagerID 

to

a.ManagerID 

I would suggest you could firstly make your sql command in sql database(SSMS) to confirm you get the correct emp list with the sql command .

Best Regards,

Nan Yu


Viewing all articles
Browse latest Browse all 6

Trending Articles



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