Welcome to CodeProject and don't worry about the downvoting. Please feel free to ask as many questions as you want, but remember to state your questions in a clear and easy-to-comprehend manner, preferably with an example and/or code.
then I can only assume that you are after declaring a string variable that you can use through out your class, so then I would look at this
privatestring _ConnectionString = "my database string here";
///That can then be used by any of the methods in the class such this
Myself personally I prefer to use the AppConfig to store such changeable information as its easier to change without having to recompile and distrubite the application again.
I know it is for Visual Studio 2010 but it will give you the general idea.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
I develop a windows application using c# that use sql server databases, i want to create a setup for this application to install application and install sql server as prerequisites, but i want to set a specific configuration for this sql server such as instancename, sa password and mix mode.
Installing SQL Server is not trivial and you would need to deal with licensing issues as well. There are other issues as well such as whether SQL Server is already installed and whether the user has SQL Server but has it on another box.
The license problem by itself would concern me. But just automating the SQL Server install is going to require a lot of work.
But I would suppose that to do automation that you would need to look into custom actions in the installer.
I agree with jschell and Paul Conrad, but it is easy to but sql express as a prerequisites in c# deployment problem, but i want it to installed with my configuration not the default settings,
is it possible to do that?.
It could be necessary to install a new version of Windows Installer before that.
After installation of SQL server, the database can be restored/attached by a call to osql with many parameters.
I don't know all the details, but with this information you can start and try.
The regular people who answer questions around here are going to answer your question, if posted in the correct forum, on their own time, not yours. Also, if the question doesn't make sense or you are known to be asking basic questions over and over again, you'll probably be ignored because you haven't taken the advice on picking up books and teaching yourself the basics.
People really don't want to write huge forum posts explaining the basics to you if you're not going to make the effort to teach yourself this stuff.
To understand why it doesn't work, you must first understand how Server.Transfer differs from Response.Redirect. When you do a Server.Transfer, the page processing is shifted to the new page on the Server side and the client is unaware of it as opposed to a Response.Redirect which sends a Resource Moved response to the client and forces it to request the new url. Since Server.Transfer happens on the server side, the Request.Url.Query will always be empty.
Well, how "appropriate" the answer is depends entirely on what the hell you mean by "create monthly calender".
That could mean anything! Are you trying to come up with a control that lets you input a date, a data range over months, something to display an entire month, storing data based on some month requirement, ... ??? WHAT?
My need will be to make an hrttprequest in asynchronous mode. To not let the user wait for a response that can be processed in backround.
First I was thinking to use a BackroundWorker, then I see that begingetresponse example
But it react exacly as the BeginResponse : when I step over it wait a few seconds to get the response.
So maybe I misunderstand something but I don't see any advantage of this method ??
Thank for your help
Last Visit: 31-Dec-99 19:00 Last Update: 17-Dec-17 15:28