Questions tagged as 'c#'

1
answer

HttpPostedFileBase always empty when passing csv to the controller

Good Afternoon Personal, I'm having trouble passing a csv that is being sent from ajax using jquery to the controller where it always arrives null. Could you help me? View: @using (Html.BeginForm("Importar", "Contatos", FormMethod.Pos...
asked by 24.06.2018 / 20:12
1
answer

Can I use a variable to set a path in FileStream?

I have a test script in Selenium Webdriver using C # in which I read data from an external .txt file. The path to the file is fixed in the script, indicating a folder on my computer. But in the future other people will run this script on othe...
asked by 23.06.2018 / 19:13
2
answers

How to pass input value via post in asp.net core razor

I would like to know how to pass the value typed in an input to a Post method in PageModel. No cshtml: <div class="col-sm-6"> <label asp-for="Tickets.Identificador" class="control-label"></label> <input asp-for=...
asked by 18.06.2018 / 21:48
0
answers

NHibernate keep two Mapping for a single object

I would like to keep two different mappings for a single object is it possible to do this with NHibernate?     
asked by 03.07.2018 / 20:58
0
answers

Write / ReadProcessMemory with offsets

I'm wondering how I can read / write data from this image pointer below (Cheat Engine): Mydoubtis:Howtoaddmodulename"server.dll" + address + offsets? Code done: using System; using System.Windows.Forms; using System.Runtime.InteropServi...
asked by 23.07.2018 / 02:53
0
answers

Problem with the android calendar

I'm starting an attempt to pick up a contact from the contact list: if (AceitouContacts) { Intent intent = new Intent(Intent.ActionPick, ContactsContract.CommonDataKinds.Phone.ContentUri); StartActiv...
asked by 18.06.2018 / 23:22
0
answers

DropDownList in C # with HtmlHelper

I'm new here and also new to the ASP.NET universe. I'm having a hard time creating a DropDownList for a form on a web page with ASP.NET MVC and C # . I made a user registration form and one of the items needs to be DropDownList...
asked by 06.06.2018 / 14:12
1
answer

ListView Item Xamarin Forms being opened 2 times Custom Controls

When viewing my list and clicking on an item, it opens 2 times the same page as the item. public class DeliveryViewModel : BaseViewModel { public ObservableCollection<Delivery> Delivery_Col { get; } public Command<Delivery>...
asked by 06.06.2018 / 01:25
1
answer

Add DropDownList value to the database

I wanted to put dropdownlist in my view where its List value was for the database, but I know only how to add values to DropDownlist with data from a table, I wanted to make a DropDownlist with three values without having to...
asked by 06.06.2018 / 15:16
2
answers

Export Bank Table to XLSX without Interop

In the code below a Query was assigned to the sQuery variable. I need to somehow export this Query to Excel using some feature available for C # WebForm other than Interop strong>. Dim da = New OleDbDataAdapter(sQuery, Connecti...
asked by 06.06.2018 / 18:16