Questions tagged as 'c#'

2
answers

Override XmlTextWriter - Serialize Class to XML absolutely all attributes

I have my class: public class Pessoa { public int Id {get;set;} public string Nome {get;set;} } I'm trying to serialize to XML this my class. public static string CreateXML(object o) { XmlSerializer xmlSer...
asked by 11.03.2014 / 21:00
1
answer

How to get Paramentro in a Web service in C # sent from Android

I'm consuming a Web service developed in C #, from an Android application. When sending simple types per parameter such as string, int, or long, I can get the information usually just by putting the same type in the Web service method declaratio...
asked by 28.03.2014 / 15:55
1
answer

How can I pass a value from a class to a Listbox

I am involved in a small personal project, composed of some classes and many forms. I need to send a value that is obtained when I access the given button, for the listbox that is in one of these forms. For this I chose to build a method called...
asked by 03.03.2014 / 16:21
1
answer

Controller and View Structure

An aid to not doing something much more laborious than it can be soon of face. I have the following classes in my Model : public Pessoa { public int Id { get; set; } public int TipoPessoaId { get; set; } public string Nome { get;...
asked by 31.03.2014 / 20:43
2
answers

How to call an ASPX page function in another project?

How to call an ASPX page function in another project? When I click on insert I call a project to make the business rules, at some point I need to call a C # function that is on the page and after the return of this function continue in the ma...
asked by 03.04.2014 / 14:38
2
answers

how to extract zip files in C # to a folder where the system is installed

How to extract zip files in c # to a folder where is the system installed? using System; using System.IO.Compression; using System.Windows; using System.Xml; namespace TestXml { /// <summary> /// Interaction logic for MainWind...
asked by 27.03.2014 / 14:04
1
answer

How much to charge on a site? [closed]

Much is said about how to develop a web application, a website or even an e-commerce. But one question I think most developers have is, "How much should I charge for this site?" Home How much should I charge on an institutional site? What about...
asked by 27.03.2014 / 21:19
1
answer

Check C # threads

I'm trying to understand the code below, but to no avail. From what I've researched, GetMaxThreads returns the maximum number of available threads and GetAvailableThreads what it has available. In the case of the output below, is t...
asked by 25.09.2014 / 22:11
1
answer

User property, utility and possible casts

For educational purposes, I was looking at the User property of the Asp.Net MVC Controller class. I saw a example , very interesting , that a base class for controllers has been implemented and it has the CurrentUser property:...
asked by 25.09.2014 / 15:24
1
answer

How to register a default user at the beginning of the application?

In an ASP.Net MVC application I need to have a standard user registry and for this I am thinking of adding it at application startup. In the Global.asax file I did the following: public class MvcApplication : System.Web.HttpApplicati...
asked by 27.09.2014 / 19:01