Questions tagged as 'c#'

1
answer

How to treat an array with N rows and transform to a list to send to C #

I'm sending an array of the angular js to the controller of C # , and I'm handling it with stringfy for json in>. In my method POST it does not receive anything, it simply returns null C # code public void Post(st...
asked by 10.08.2018 / 18:34
1
answer

Call by menu does not enter Action

I have this menu in _Layout.cshtml @if (Response.Cookies["UserSession"]["UserRole"] == "Rh" || Response.Cookies["UserSession"]["UserRole"] == "Admin") { <li>...
asked by 16.09.2018 / 16:01
1
answer

Remove all elements from the list without the Clean () method, how?

For example I wanted to remove the elements from the list like this: public class List : MonoBehaviour { List<string> inventário = new List<string>(); void Start () { for(int i = 0;i<=10;i++){ inventário.Add("sl...
asked by 06.08.2018 / 04:49
1
answer

When deleting the name in the model is not shown

I made an action to delete and delete, but in View delete does not appear the value of the field, which comes from the model. This is cshtml: @model TreinamentoCrud.Models.Cidade @{ ViewBag.Title = "Delete"; } <h2>Delete</h2>...
asked by 09.08.2018 / 20:58
1
answer

Analyze URL image

How can I do to instead send a parse to the local it parse an image from a remote address or a url. For if I try to replace the address: C: \ Users \ madureira \ Downloads \ JRMJ.jpg by a URL the error message appears: 'The given path format is...
asked by 29.08.2018 / 04:35
1
answer

I have a method in ServerSide validateNIF and I want to call it through javascript (ClientSide) to validate an asp: textbox when it does leave

I tried to do it through the ontextchange event and call the backend function, but as this is to make a record, whenever it ran the event it wipes me the data from my other textboxs (it seems to refresh the page). Getting only the data from the...
asked by 28.08.2018 / 19:23
1
answer

How to do an Event Change in ASP.NET Core MVC?

In ASP.NET we have the Event Change direct on Code Be-hind protected void ddlCiclo_SelectedIndexChanged(object sender, EventArgs e) { //algo aqui } What would be the equivalent of ASP.NET Core MVC for a Dro...
asked by 23.07.2018 / 19:33
1
answer

Sqlite, check the exact difference between a date, time and minutes of the current date [duplicate]

I need to do a check between two dates, I need to check if the date, time and minutes of a field is greater than or equal to the current date, time and minutes, I am using SELECT * FROM info WHERE strfTime ('%s', dataFinal ) >= strfTime('...
asked by 18.07.2018 / 23:10
1
answer

Button for screenshot / screenshot on Xamarin

I'm developing an App and I need it to take a screenshot, but not by the default procedure (home + power button), but by a button inserted on the screen. The button has already been created and is in the App screen, does anyone have any idea how...
asked by 18.07.2018 / 21:15
1
answer

Checking a radioButton

Good morning! I created a small system that uses some radioButton components, but when it does not set the system generates an error, someone knows how can I make a conference if any radioButton has been dialed. The following is the code below:...
asked by 19.07.2018 / 15:44