private void SetModuleOrPageByUserId(int userId) { ViewReports vr = new ViewReports(); SqlDataReader drUserPref = null; drUserPref = vr.SetModuleOrPageByUserId(Convert.ToInt32(Session["UserID"])); if (drUserPref != null && drUserPref.HasRows) { while (drUserPref.Read()) { if (drUserPref["DefaultPage"] != null && drUserPref["ModuleName"] != null) { pageNameToRedirect = drUserPref["DefaultPage"].ToString(); moduleName = drUserPref["ModuleName"].ToString(); } } } }
drUserPref
SqlDataReader drUserPref = null
SqlDataReader drUserPref = new SqlDataReader();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)