Questions tagged as 'c#'

1
answer

Get value of a partialview in the parent view

Actually, I have two questions to ask you related to the partialview. First, I will comment on how I show the partialview Question One Add.cshtml @Html.EditorFor(x => x.Suma) <div class="modal fade" id="exampleModal" tabind...
asked by 16.04.2018 / 17:28
1
answer

Get data from a selected row

I'm working with DevExpress GridControl for Windows Forms, what I want is to get data from certain row, I do not know how to do it. In Windows Forms DataGridView I do it in the following way if (dgvCategoria.Rows.Count > 0)...
asked by 04.11.2016 / 22:13
1
answer

Show message after opening of Form

I am making an application where after the login window, if you are a new user, you will run a tutorial to show the use of it. The problem is that a method of the second form is executed where the messagebox is displayed before the logeo form is...
asked by 27.03.2018 / 10:37
1
answer

What is the similar setw (40) setfill ('=') of C ++ in C #?

When I was learning in C ++, I learned that with the iomanip library I could repeat characters like this: cout << setw(40) << setfill('=') << endl; Now that I'm in C # I do not know how to do it or if it's valid     
asked by 06.06.2018 / 01:20
1
answer

How to delete a cookie correctly when logging?

I have a series of cookies and sessions which are created at the time of login in a successful way in an application. My question is how can I eliminate these cookies and session created at the time of logout? I ha...
asked by 14.06.2018 / 23:01
2
answers

How to dynamically remove a UserControl in c # .net from the form?

I have a UserControl that is dynamically added to a FlowLayoutPanel . In that same UserControl I have a button to remove itself if the user wants, obviously at runtime. I need to delete it from Form . I tried this but n...
asked by 14.06.2018 / 06:47
2
answers

Save CFDI payment elements in c #

I have an XML CFDI version 3.3 and I want to save the attributes of the DoctoRelated node. It works for me to save the attributes of the first node, the problem is that in some XML I get more than 1 node DoctoRelacionado and only saves the first...
asked by 23.02.2018 / 19:39
3
answers

Use LIKE or LTRIM - SQL

I am working with oracle and C # in Visual Studio 2015 and I have this query "SELECT * FROM TCTERCEROS WHERE TR_TERCERO = '" + TBNit.Text + "'" As I can apply a LIKE or LTRIM, TBNit.Text is what is said in the text box to see for example 12...
asked by 10.08.2018 / 15:35
1
answer

response string is cut in 2033 characters when it is XML

I made a website with c # MVC that contains an ajax function that returns an xml, when I execute it in visual studio everything is fine, but when I put it in the iis the xml is cut in 2033 characters. I already put this in the web.config and...
asked by 04.10.2018 / 16:01
1
answer

Null in SQL query

I'm doing an SQL query but I can not generate it correctly, these are the parameters that filter Area = cbbxArea.Text.Equals("Todas") ? System.Data.SqlTypes.SqlString.Null : cbbxArea.Text; Linea = cbbxLinea.Text.Equals("Todas") ? System.Data.S...
asked by 04.01.2018 / 01:00