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 6651603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:01:54+00:00 2026-05-26T01:01:54+00:00

I am developing a website by ASP.Net. I have created settings/first-run page which I

  • 0

I am developing a website by ASP.Net.

I have created settings/first-run page which I need it to run in the first time to fill some settings like smtp settings and some paths.

I also need it to be run any time if the settings XML file is deleted or when the user clicks on its link from admin section.

Where should I put the code which checks if settings is OK or not and if it’s not OK it executes this page …

I was thinking in putting in Session_Start but this means that this code will run 1 time only and then the page will load and the session starts and then the user can back to home page without completing it, in this case the check won’t run again.

I am thinking in Application_BeginRequest but this will add some headache on server to run this code with every request.

What do you think the best technique to do this ???

  • 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-26T01:01:55+00:00Added an answer on May 26, 2026 at 1:01 am

    I would go for Application_BeginRequest with additional caching of the validation result for a second.

    However if you store your configuration entirely in web.config and your application is configured to restart every time the web.config is changed (default behavior), Application_Start would work too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an ASP.NET 2.0 website. I have created data access and business
i am developing a website using asp.net 3.5.i have created a cascading dropdownlist for
i have a problem i am developing an asp.net mvc project. Website is in
I'm developing a new ASP .NET website which is effectively a subset of the
I am developing a simple ASP.NET website that will run on the intranet on
I'm developing an website using asp.net mvc with MySQL and I need to make
I have a project (Web Application) which I have been developing in C#/ASP.NET, and
I have an asp.net c# website I'm developing with Visual Web Developer Express Edition
I'm developing a website (using asp.net-mvc) with a SqlServer 2005 database. I have numerous
am new to StackOverflow.. I am developing a website which requires extensive ORM...using asp.net

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.