Questions tagged as 'c#'

1
answer

Parameter passing

I have the following code that passes the date that is in the MySQL database to the textblock: textBlock8.Text = (reader.GetString("Data")); What happens is that it is passing the date and time. I would like to spend only the date.     
asked by 31.03.2017 / 01:40
2
answers

ASP.NET MVC - How to Change Name Attribute of TextBoxFor

Is it possible to change the field name generated by @Html.TextBoxFor ? I did not find anything in Portuguese related to that. I tried something like: @Html.TextBoxFor(x => x.ToDate, new { name = "to" }) If I do for example, for...
asked by 30.03.2017 / 21:04
1
answer

Delete listview item in Xamarin [closed]

How do I delete an item from my listview? I delete the item, but when I click on the next item the same item that I deleted was selected. My code: adapter.Remove("LISTA 1"); adapter.Remove("LISTA 2"); adapter.Remove("LISTA 3"); adapter.Remo...
asked by 02.05.2017 / 13:35
1
answer

Deserialize JSON with Restsharp and with JavaScriptSerializer

I'm having difficulty deserializing a JSON. I'm getting the following content: "response":{ "account":{ "name":"Evandro Teste", "owners":[], "creationDate":"2017-07-07T07:18PDT", "city":"Guarulhos",...
asked by 11.07.2017 / 17:00
1
answer

Parameterized query error: Must declare scalar variable [closed]

I am aware of the existence of this question: Procedure error " Must declare the scalar variable " But it does not solve my problem. My situation is as follows: I have a common sql query: select id from USUARIOS where login = @txtlogin...
asked by 10.07.2017 / 20:30
2
answers

Add the random data

I have a code for a data roller. Then the person will type in the field the amount of data that will roll and after that the program will rotate the amount of data and add up. Then I made an array to receive this data but I can not add them...
asked by 07.07.2017 / 23:48
1
answer

Save Token to User Machine

I did an integration with GoogleDrive and when doing all the authorization in the consent screen, it creates a token in the appdata of the user, however I put this application in Azure in VM . But when I crea...
asked by 29.03.2017 / 19:30
1
answer

How to download file via $ .ajax ()

This question arose from this post Sending data to an ActionResult from a different Controller from the current one answered by James S , I currently have this ActionResult that downloads file through a Post in a View and need to do th...
asked by 11.06.2017 / 19:10
2
answers

Unity installation is giving error

I installed Unity for DI and by NuGet is giving an error, which I do not understand, it seems to me that it points to NewtonSoft, see the error below:    Install-Package: An error occurred while retrieving package metadata   for 'Newtonsoft.J...
asked by 24.05.2017 / 15:52
1
answer

HtttpURLConnection nonexistent functions in Xamarin Forms development (Java to C # system conversion)

I have a system developed in Android Studio and I am passing to Xamarin Forms in C # and there are some errors that I can not solve Summarizing what my system does: It takes the html page and transcribes line by line from the html so I can...
asked by 26.03.2017 / 03:06