What is the Settings.settings file for? [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
what files are these ?
hi every body
while reading about about coding with c# and asp.net i notice that
files which are (Settings.settings) and the other is
(Settings.Designer.cs) which in one of project layers what kind of
files are they and why he use them ??

Those are application settings, that can be easily edited as a cleartext, human-readable file, and which can be accessed during design-time (and runtime) as classes and properties.

Related

replace variables in querystring for url path asp.net c# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
i know there's a way to do this, but i just can´t remember how it was, i did search in the other posts about this topic but is not just what i'm looking for:
i have this
http://www.example.com/detail.aspx?userid=gartest&tutorialid=1001
should be like
http://www.example.com/gartest/1001
plase help, thaks
In asp.net webforms you can create ASP.net mvc like route rules to do so.
http://msdn.microsoft.com/en-us/library/dd329551.ASPX
http://msdn.microsoft.com/en-us/library/cc668177.aspx

Crystal Report Not Working When I upload it to the web server in Asp.net [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Crystal Report is working in local host but it is not working when I upload it to the web server.
Any one have idea about it Why this problem occurs?
You must have crystal report DLL-s also on server side.

WPF library with page - navigation of the application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
Now I experiment with your application architecture. I have wpf library(AppView.dll MVVM) with my pages (View/MyPage.xaml). I use this library in my wpf app. How do I set the correct URI for navigation ? I tried URI so "pack://application:,,,/AppView;View/MyPage.xaml". But there is an error - "resource not found appview;view/MyPage.xaml". How to use the navigation page from another assembly?
Try using /AppView;component/View/MyPage.xaml or "pack://application:,,,/AppView;component/View/MyPage.xaml"

How to fill Listbox with binary serialized data files - C# WPF [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
How can i grab all binary serialized data files in a folder, and put them in a Listbox? I have a list of .dat files in a folder. I would like to display them in the Listbox without the .dat file extension. Then have the user select one, deserialize it and load it. Thanks.
Use Directory.GetFiles method. It returns the list of files in the directory and also provides pattern search.
http://msdn.microsoft.com/en-us/library/wz42302f%28v=vs.110%29.aspx
Once you have the list of files you can bind that list to your Listbox.ItemsSource

How to keep logic files separate and use in cs files in C#? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I am very new to .net, Is there way to keep logic files are separated and reuse in cs files?
Create a C# Class Library Project and add its reference to your project.
Aman Khan, Create new dir App_Code keep your logic file there and use to your project as shown in below image
and you call define
using System
using CMS
You can reuse the files.Place all the logic files in seperate folders like App_Code and just copy the code and use it.
Happy coding :)

Categories