I apologize, I misunderstood your experience with DNN and made a baseless assumption.
DotNetNuke is very versatile in the fact that it is based on modules for expansion. The default.aspx page is what drives the whole site, essentially, but it uses "virtual" urls to load up pages (otherwise known as tabs) from the database. Each tab is comprised of zero or more modules which are essentially glorified user controls (.ascx files).
What my autologon module does, in essence, is captures a windows login (in my case, an active directory login) that gets passed along with Internet Exploder.nbsp; FireFox doesn't send it automatically, but if you turn off anonymous access and enable integrated security in IIS, it will prompt FireFox for credentials which it will then pass along.nbsp; My module is actually very specific and quot;specializedquot; for my needs at work, but I put it online more for an example that anything else.
To better understand the module concept (and development cycle), I suggest going to Michael Washington's site http://dotnetnuke.adefwebserver.com/DotNetNuke/tabid/195/Default.aspx -OR- look for his tutorial which is somewhere here on the main DNN site.
In regards to what you are looking for an how my example code would work, let me filter it down just a tad.
You'd start off by creating a module (follow Michael's tutorial).nbsp; In the base ascx file (the View____.ascx), add some code similar to what follows:
protected void Page_Load(System.Object sender, System.EventArgs e)
{
// get username from passed querystring value
string someUserName = Request.QueryString["queryValue1"] != null ? Request.QueryString["queryValue1"] : string.empty;
// get some other value
string someOtherQueryValue = Request.QueryString["queryValue2"] != null ? Request.QueryString["queryValue2"] : string.empty;
// check to make sure person isn't already logged in
if (this.UserId > 0)
{
// perform some code maybe? maybe just ignore it altogether
}
else
{
// perform some login code here
UserInfo objUser = UserController.GetUserByName(this.PortalId, someUserName);
// if we have a user now, and they meet login criteria, lets log them in
if (objUser != null && objUser.Membership.Approved && !objUser.Membership.LockedOut)
{
UserAuthorized(objUser);
}
}
}
private void UserAuthorized(UserInfo objUser)
{
string strMessage = string.Empty;
bool updatePassword = false;
bool updateProfile = false;
UserId = objUser.UserID;
if ((!(objUser.Profile == null)) && (!(objUser.Profile.PreferredLocale == null)))
{
Localization.SetLanguage(objUser.Profile.PreferredLocale);
}
else
{
Localization.SetLanguage(PortalSettings.DefaultLanguage);
}
// complete login
UserController.UserLogin(PortalId, objUser, PortalSettings.PortalName, _ipAddress, false);
try
{
Response.Redirect("Default.aspx");
}
catch (Exception ex)
{
AddModuleMessage(ex.ToString(), DotNetNuke.UI.Skins.Controls.ModuleMessage.ModuleMessageType.RedError, true);
}
}