Questions tagged as 'c#'

1
answer

Can I edit customize the Identity AspNetUsers table?

I have a project that has a USUARIOS table. And now we are migrating to AspNet.Identity which already has a table but called AspNetUser and with its own fields. And my USUARIOS table has relationships with People and...
asked by 14.11.2017 / 12:12
1
answer

How can I dynamically set an avatar image in windows forms?

I have the following line of code that will set the client image on the screen if there is one, if it will not leave it as null. How can I make it dynamic, that is, if the client does not have the photo, will be a avatar ? if(!string.Is...
asked by 28.11.2017 / 12:50
1
answer

Upload image from the project

I have a project developed from a console application in Visual C #, in which it sends emails, being the text in html format. Today I put an image inside this html as follows: "<img src='" + "http://www.site.com.br/logotipo.png" + "' wid...
asked by 22.11.2017 / 12:36
1
answer

Popular the properties of a class

A doubt. Before the service returned values in the following signature: Predicted / Made , this made it much easier. Now the subscription has changed to this: { "CorIndicador":"VERMELHO", "DadosIndicador":"{\"Previsto\":25784....
asked by 12.02.2018 / 13:01
2
answers

How to clean ListBox

How to clean a ListBox ? I made these forms but they did not work: private void LimparListBox() { //lbxResumo.Text = ""; lbxResumo.ClearSelected(); } private void btnLimparList_Click(object sender, EventArgs e) { LimparLi...
asked by 08.11.2017 / 16:51
1
answer

Error: Multiple controller types were found that match the URL

When requesting a service from my App, give me this error:    Multiple controller types were found that match the URL. This can   happen if attribute routes on multiple controllers match the requested   URL. \ R \ n \ r \ nThe request has fou...
asked by 08.11.2017 / 20:15
1
answer

Doubt about which Inheritance to use in the Entity Framework

I just had the opportunity to use EF basically 1x. So, I have a lot of doubts, even though I'm consulting quite a bit with google. I have a client application that will pick up various Facebook data from the logged in user ... Playing in Json...
asked by 08.11.2017 / 01:11
1
answer

Error debugging by null on connection

I want to document a unit test but I'm getting an error:    System.Exception: 'Error closing database connection: Object reference not set to an instance of an object.' My test case has been coded as follows: using System; using Microso...
asked by 17.11.2018 / 23:09
1
answer

Uploading videos DataType Asp.Net MVC

I want to put a Video Upload field on my Asp.Net MVC system and I did not find anything about videos in the DataType. I found Varied DataType such as [DataType(DataType.ImageUrl)] [DataType(DataType.Upload)] [DataType(DataType.Url)] Am...
asked by 08.02.2018 / 21:58
1
answer

Enable navigationbar or create a panel on top of tabpage xamarin.form

I have this page (TabbedPage) that creates two tabs: <?xml version="1.0" encoding="utf-8" ?> <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmln...
asked by 07.02.2018 / 20:08