Questions tagged as 'visual-studio-2015'

1
answer

Query LINQ operator%

What does% 2 mean? string[] names = {"Geraldine", "Julieth", "Tatiana", "Maribel", "Susana", "Mónica"}; var Query = from x in names where (x.Length) > 5 && (((x.Length)%2)!=0) select x; Query.Dump();     
asked by 06.06.2016 / 01:44
1
answer

How to put local -portable- database in c # (visual studio 2015, sql server compact)?

I was doing a system in c # , I had it connected to a database in access . But I realized that maybe I could not; Generate the installer of the program and pass it to another person. Someone told me to try to put a database of Sql Server Comp...
asked by 08.06.2016 / 03:49
2
answers

UserControl bring to the front (have the focus)

I am working on a desktop application (Windows forms) in which my windows are UserControl which I call from a menu that is vertically on the left side, on the right side I have a Panel that serves as a floor where I call the UserControl, but I j...
asked by 29.04.2016 / 20:58
1
answer

Problem with ConnectionString

I have a problem with the connection string: Putting it directly into the SqlConnection works for me: SqlConnection connection = new SqlConnection("server=DESKTOP-Q5REQCB\MSSQLSERVER01 ; database=Synergy ; user id = Synergy; password = Syne...
asked by 15.02.2018 / 13:06
2
answers

Error opening old ASP.NET

I have had an old website made in Visual Studio 2010, I need to open it to see how it works internally. I try to open the project with VS2015 Professional but it gives me the following error and it does not open it for me. I would appre...
asked by 18.12.2017 / 16:20
1
answer

Save HTML tags on sql server and read them

When I save some line break tags in a text on the sql server, that parameter I read it through a service and I save it in a ViewBag. When displaying it in HTML, the text is shown with the tags. For example: Hola esto es un texto <br /...
asked by 10.10.2017 / 16:45
1
answer

Modify a column with specific data using ASP.NET MVC5

I have a table with some users waiting for approval, create a button called approve, by pressing it sends you to for example    link < - user ID This is my view. @{ ViewBag.Title = "Approved"; } <h2>Approved</h2>...
asked by 06.04.2017 / 19:04
1
answer

Store Data from a txt file and save to a database with VB

Well I told you that I'm doing extracting the data from a txt file and storing it in a table for them I'm using the tools of: Sql server Visual Basic Window Form Inside my table you only have these fields: Id int identity (1,1) not...
asked by 15.02.2017 / 21:37
1
answer

Calculate age with date of birth MVC5

I need to calculate a person's age from their birth date, but I am doing a poor calculation, I give you an example. Pepito was born on December 17, 1997, at this moment Pepito is 19 years old, but to me in the calculation he shows me as if he...
asked by 03.04.2017 / 22:30
2
answers

Javascript onLoad does not load

I have this Javascript function inside my HTML. $("#aviso1").on('click', function (e) { // Initialize the object, before adding data to it. // { } is declarative shorthand for new Object() var obj = {}; obj.tit...
asked by 23.05.2016 / 20:56