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

  • SEARCH
  • Home
  • 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 6967361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:18:40+00:00 2026-05-27T16:18:40+00:00

In my project I declare the one string like public string str=dbname; , that

  • 0

In my project I declare the one string like public string str="dbname";,
that string value use the overall application.
Where can I declare that string?

Another problem is that I can change that string value after publishing the site in iis,
(or)
I am giving client that time also change the string value, so where I can declare the variable?

please give me any suggestion.

dbname is string value so i can chage that name after publishing or any time
thank u
hemanth

  • 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-27T16:18:41+00:00Added an answer on May 27, 2026 at 4:18 pm

    DBName is something that belongs in a configuration file. ASP.NET uses files that are called web.config and they can store ‘Connection strings’, Application specific settings and other settings.

    A configuration file can be edited after the program has been deployed to a production server. You can even automate this process so the settings are automatically set if you, for example, deploy to a test server, an acceptance or a production server.

    Here is some documentation about how to use configuration files.

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

Sidebar

Related Questions

I use one library which is very important and untouchable. The problem is that
I have a project in Eclipse that I use as a library (I export
This one puzzles me since my first android project. Consider multi-language string resources with
I have a small project that I need to compile. I have one header
I have a project that requires the following. Four arrays will be declared in
I'm working in R, and I'd like to define some variables that I (or
I'm using XML to send project information between applications. One of the pieces of
I have a function which parses one string into two strings. In C# I
I'm doing a short project just to experiment writing without the use of nib
public class MyData { public String id_number,first_name,last_name,age,level; public MyData(String raw_string){ String[] parameters = raw_string.split(,);

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.