Posted on: 2/16/2014 9:26:58 AM | Views : 499

Dear Forum,
Following code i'm using for authentication. But i'm getting error 26 - error locating server/instance specified.However, If I call the same table in a gridview it turns up just fine? How can I get past this?
(ASP.NET 4.0 + MSSQL 2008 on a server on the local network)
I'm using following code:
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; namespace RotaractWebsite { public partial class Login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // Check if the user is already loged in or not if ((Session["Check"] != null) && (Convert.ToBoolean(Session["Check"]) == true)) ...

Go to the complete details ...