Questions tagged as 'c#'

1
answer

Conversion of string to datetime with specific format

I have string in the following format: 16Mar2009 (mon) , but I am not able to convert to datetime . string format = "dMMMyyyy(dd)"; DateTime dt = DateTime.ParseExact("16Mar2009(mon)", format,CultureInfo.InvariantCulture); Re...
asked by 20.01.2015 / 22:27
1
answer

Strong element returning empty - Htmlagilitypack

I'm trying to get content from a strong text from the underwater site. When I open the site with browser I can see in the code the content however, using HtmlAgilityPack the content returns empty. Example: HtmlNodeCollection produtos...
asked by 24.11.2014 / 13:49
1
answer

Problem with debugging

I am developing a project that has a complete logon system with Roles , User and Goups , but when I rename the project it asks to Attach the Process instead of DEPURING, how to solve it? >     
asked by 25.11.2014 / 03:25
1
answer

Using GFix in a C # application

I'm developing a C # application and I need to pass GFix to a FireBird database, I thought about running a prompt window and passing the GFix commands to it, but I'm not getting it. Also I need to return a message to the user if the database is...
asked by 25.11.2014 / 19:11
1
answer

Display selected Select value

I have this dropdownlist: <select> <option value="0">Selecione os capitulos</option> @foreach (var item in ViewBag.Capitulos) { <option value="@item.IdCa...
asked by 23.11.2014 / 03:14
1
answer

SQL does not keep new recordings

I'm using a Service-based Database (.MDF) to save some data from an application I'm developing. However, after I close the application, the data that was entered in the table disappears. Here is the code I'm using: System.Data.SqlClient.SqlCon...
asked by 23.11.2014 / 21:47
1
answer

Starting the Windows Media Player component in fullscreen

When the Windows Media Player application is opened (Windows Forms) I always have to press the fullscreen button to maximize the video that is running and I would like it to start fullscreen.     
asked by 10.02.2015 / 05:06
1
answer

How to check if all the elements of a list satisfy the same condition using a lambda expression?

I have a class that represents an entity in the database. This class runs a procedure that returns its data. I created a list of type and this list is loaded. Let's say this is the loaded list: vlstMinhaEntidade . How do I go through thi...
asked by 11.02.2015 / 17:16
2
answers

How to model user system

I need to model the classes of a system where you have 2 types of User, the common user and the administrator, what is the best way to model this? Well I'll specify the attributes that each one needs in my application: Common User: name, logi...
asked by 15.11.2014 / 06:32
1
answer

Convert a date in the format yyyy-dd-mm to dd-mm-yyyy [duplicate]

I am trying to do a search in my database where the purpose is to search between two dates entered by the user, and that it shows me all the values that are in that date range, but I am not able to go get the date in texbox because it g...
asked by 14.11.2014 / 15:50