Hello Forum
I have a view called v_organisation, generated in ASP.Net Maker
Now I want to use a function with the username as a parameter.
The function returns all the records of the view v-organisation, that the logged in user is allowed to look at.
The function works fine in SSMS.
What I have until now in Page_DataRendering is:
if (IsLoggedIn()){
string PrivateSQL;
PrivateSQL="SELECT * FROM f_filter_Unit_by_UserName ('"+CurrentUserName()+"')" ;
}
Now I want to know, how to use this function.
In which server event do I place the query?
How do I get the records in the original table?
I would appreciate to get an answer with code I can use rather than a hint like "look in Google for ...."
Regards
Michael