Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3280492
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:42:38+00:00 2026-05-17T19:42:38+00:00

I want to be able to load a customized log in page depending on

  • 0

I want to be able to load a customized log in page depending on a couple of parameters passed into the querystring.

Each customized login page needs to be able to dynamically display log in errors and possibly have other variables passed in.
Let’s say the dynamic login page looks like this (over-simplification here):

<form>
<% if (has_errors) { Response.Write(error_msg); } %>
<input type="text" name="email">
</form>

If the aspx page loads the file like this:

Response.writefile("path/to/custom/page"); 

the code shows up in the output and doesn’t get processed. I have tried other ways to load the file contents (something similar to classic ASP includes) but get the same results every time.

I could have all the custom pages set up as user controls, but I need 100% control over the css, js, and html – and the documentation I read here indicates that I won’t have that level of granularity.
link text

PLUS – I’m stuck in a .net 2.0 environment – so .NET MVC is not available to me

Any help/suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T19:42:38+00:00Added an answer on May 17, 2026 at 7:42 pm

    but I need 100% control over the css,
    js, and html

    You won’t get 100% over the page but you will have control inside the User Control instance. Also, many times, you can override these technologies like CSS, from within your control.
    In the end because all controls are solified into one big HTML page you will have the same level of control as you would in any single web page with client-side technologies.


    You can build a Web UserControl to represent log/in and then include an instance of that control onto any page, in any place, across multiple pages if you wish.
    (See the Topics on that MSDN help page about how to create and use it).

    Other useful references (these are various angles on the same subject).

    • Creating a Web user Control in .NET
    • ASP 101 – User Controls

    This should provide a good start to keep looking, if this is the kind of info you think you need.

    Internals
    The User Control can have its own logic, access the browser querystring, access the page Session, Application, etc. pretty much anything it needs to know for itself to work.

    Object Oriented
    Additionally, because a User Control is also an object, you can add your own public methods and properties to it through which you can interact to communicate with the control intance on the page (just like you interact with other web controls like Button.Text=”click”, TextBox.BackColor = System.Drawing.Color.Blue, etc).

    Other Options – Dynamic control loading

    You might want to consider loading controls dynamically at runtime using the Page.LoadControl(..) method:

    Loads a Control object from a file
    based on a specified virtual path.

    MyControl myControl1 = (MyControl)LoadControl("TempControl_Samples1.cs.ascx");
    PlaceHolder1.Controls.Add(myControl1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.