Questions tagged as 'c#'

1
answer

Error with WCF starting as a Windows service

I'm trying to start a WCF as a Windows service, however it returns me the following error:    HTTP could not register the URL link . Your process does not have access rights to this namespace (see link for details). How can I solve thi...
asked by 25.06.2018 / 17:57
1
answer

Authentication and permission of Users with MVC

I'm developing an application in MVC 3, using C # for Models and Controllers and Razor with HTML for Views. I want to implement authentication and permission from users to the system. How can I do this using the features that MVC provides for us...
asked by 12.02.2014 / 02:11
2
answers

Do not let browser save the password

I need to make the browser not save the user's password, I tried autocomplete="off", autocomplete="new-password", I already put it in the form of the page autocomplete="off", however the browser asks to save the password, how can I do not to sav...
asked by 14.05.2018 / 20:04
1
answer

How to access child items in a BoundField of a GridView in Asp.Net Web Forms?

I know that in the middle of GridView , you can read an immediate item with the tag BoundField : <asp:BoundField DataField="MeuItem" HeaderText="Meu item" /> But I get an error trying to do this: <asp:BoundField DataF...
asked by 18.02.2014 / 20:34
1
answer

Welcome page in HTML

Good. Before developing a website in C # asp.net I created a sketch in Wix. I just do not know how to put the first page of this genre , that is, a small window (indexed by back) before entering the site. Can anyone help? Do I have to create...
asked by 18.05.2018 / 12:51
1
answer

Text-Align of a Label only

On a ".cshtml" web page I have several labels declaring the form-horizontal class and the control-label class. By default, these classes align right in my project, ie .. implement the text-align: right property, but I need to change the val...
asked by 16.05.2018 / 18:41
1
answer

Return data Json

I have this function to return the data in JSON, but I can not get it to work in MVC Core. public ActionResult SalvarItens(string HoraInicio, string HoraFim, bool Seg, bool Ter, bool Qua, bool Qui, bool Sex, bool Sab, bool Dom, bool Fer, int...
asked by 28.05.2018 / 16:09
2
answers

How to ask the questions to be random without repeating themselves and running a specific number of questions?

I wanted to make the questions random, but they would not repeat the 6 questions that make up each QUIZ-style game topic, if they knew of an easy method for my problem. I tried several searches and I did not get anything, maybe because I did...
asked by 24.05.2018 / 17:04
2
answers

Get folder of solution C #

I have a solution with 4 projects inside. In my controller I need to open an HTML that is inside another project, but I can not open the file folder. Below is the following with my structure: TheclassfileistheUtils.cscontrolleriswithin1-S...
asked by 28.05.2018 / 14:46
1
answer

C # - Instance property name in a DataGridView

I have a Products class with the following attributes: public class Produto { public int cod { get; set; } public string codBarras { get; set; } public string nome { get; set; } public Categoria categoria { get; set; } publ...
asked by 04.06.2018 / 14:33