Questions tagged as 'c#'

1
answer

How to change the version of the application at runtime in C #

I need to change the application version from 1.0.0.0 to 1.1.0.0 at runtime, as I can do since the ProductVersion property is just get;     
asked by 24.03.2017 / 17:10
1
answer

ASP.NET C # DropDownList doubt

I have a module that generates reports in excel , one of these reports being the module called Occurrences. Where by DropDownList it informs me all the records of the OcorrTipoEntr table, which has the columns OctCodigo...
asked by 06.06.2017 / 02:15
1
answer

Doubt verb GET WebApi

I currently have some compositions in my model that relate to other tables in my bank. When I set up get to bring me all the related data, I had several problems and doubts and when I could solve it, I do not know if it's the right one. Wh...
asked by 26.03.2017 / 21:01
1
answer

Problem catching .resx file key

I have NullReferenceException in this line: string from = HttpContext.GetGlobalResourceObject("globalization", "mail_from").ToString(); Because it is not finding the .resx file, so it does not find "mail_from" and gives ToString()...
asked by 18.04.2017 / 19:46
1
answer

Multiple spinners

I am creating an app in which I have a TableLayout , in which I add TableRow dynamically with Spinners and TextEdit . Is it possible to create a% common% for all EventHandler ?     
asked by 17.04.2017 / 19:41
1
answer

modelBuilder add only one variable with different varchar

On my system, I have a small code that adds varchar to all the variables added in the database modelBuilder.Properties<string>() .Configure(p => p.HasMaxLength(150)); I need only one variable to be varchar (1000) could anyone help...
asked by 10.05.2017 / 20:03
1
answer

Select does not display data in listview

I can not get my return from my select in the bank. Where do I show the data in a listview. using (_connection = new MySql.Data.MySqlClient.MySqlConnection("Database=roubo_furto; Data Source=192.168.0.17;User Id=RFID;Password=1234;SslMode=None...
asked by 07.04.2017 / 00:11
1
answer

Error calling the form screen

I'm having trouble loading a menu through another screen and following my code below. What would be a possible solution for such an error? public partial class frmMenu : Form { public frmMenu() { InitializeComponent(); }...
asked by 07.04.2017 / 19:03
1
answer

Link call method in Controller - C # MVC

I have a MySQL table that is displayed on a page of my project: foreach (var item in Model) { <tr> <td>@Html.DisplayFor(modelItem => item.id)</td> <td>@Html.DisplayFor(modelItem => item.nomeMarca...
asked by 04.04.2017 / 11:45
1
answer

Duplicate data C #

I made a basic C # registration system. I created a List<T> to keep my data in memory and then display them. But when I register the second person, this data "clones" the other data. When I display the list values, the results...
asked by 17.03.2017 / 16:56