gbeckerleg
Programmer
Hi,
I have set up a website that uses the microsoft security model. Users can log on to secure areas of the site and access secure pages with no problems.
I have now added a page that contains a gridview and if the user is in a particular role (Admin) they should get access to the EDIT and DELETE columns.
I can't seem to get this working correctly when I transfer the forms to my hosted website(im with eukhost).
If the user is not logged in they see the gridview fine, but if they are logged in the page appears to hang and eventually displays a page saying
"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
the OnDataBinding event for the gridview contains code similar to this:
(i dont have the exact syntax with me because i'm at work but I know it works because it's ok when I run from localhost but not from hosted site)
has anyone come across this before?
I have set up a website that uses the microsoft security model. Users can log on to secure areas of the site and access secure pages with no problems.
I have now added a page that contains a gridview and if the user is in a particular role (Admin) they should get access to the EDIT and DELETE columns.
I can't seem to get this working correctly when I transfer the forms to my hosted website(im with eukhost).
If the user is not logged in they see the gridview fine, but if they are logged in the page appears to hang and eventually displays a page saying
"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
the OnDataBinding event for the gridview contains code similar to this:
Code:
if(!user.isinrole("Admin"))
{
gridview.column[0].visible = false;
}
has anyone come across this before?