Can I set up an application that uses DbNetFile to take a user to their own folder and also prevent access to other users folders. The folder names will be based on the users network login name.
Yes this can be done quite easily by setting the "rootFolder" property dynamicallly using some server-side ASP/ASP.NET code. e.g.
[code]
...
with (document.all.dbnetfile1)
{
rootFolder = '/users/<%=Request.ServerVariables("AUTH_USER")%>'
initialise()
}
...
[/code]
In ASP.NET you can use the Identity object e.g.
[code]
with (document.all.dbnetfile1)
{
rootFolder = '/users/<%=User.Identity.Name%>'
initialise()
}
...
[/code]
Hide Answer
When I run an application no grid is displayed, only the toolbar displays with 'undefined' next to some of the buttons.
This problem is caused by access being restricted to the server variable HTTP_REFERER. This is usually caused by a firewall.
If you are using Norton Personal Firewall, you can overcome this problem by doing the following;
1. Click 'Privacy Control'.
2. Remove the tick from the 'Enable Browser Privacy' check box and click 'OK'.
3. Refresh your application, and you should now see your data and the toolbar working correctly.
If this problem persists, contact support@dbnetlink.com
Hide Answer