Questions tagged as 'asp.net'

3
answers

Run jQuery on button onclick

How to call jQuery directly in the onclick of button? , for example: <input type="button" id="btnteste" onclick="$("#IDdoTextBox").spectrum("set", $("IDdoCampo").val());" /> And it does not work, it does not return error or an...
asked by 02.04.2014 / 22:10
1
answer

Problem Initialize List for ASP.NET MVC validation

I have an action that receives a user file. [HttpPost] public ActionResult UpdateFicheiro(FicheiroViewModel model) { var listaDeFicheirosJaAnexados = servico.obtemficheirosJaAnexados(); model.ficheirosJaAnexados = listaDeFicheirosJaAnexa...
asked by 22.11.2018 / 10:01
3
answers

I can not do dependency injection [duplicate]

I'm working with ASP.NET CORE 2 and it's a Layer application. This is my ConfigureServices no Startup.cs public void ConfigureServices(IServiceCollection services) { services.AddTransient<DbContext,...
asked by 13.12.2018 / 13:26
2
answers

Adjusting text color on different themes

I work on maintaining a system that could only be displayed with the white background, and recently we adopted the possibility of the user choosing the dark background. Some text fields are saved with formatting in the database, so if the col...
asked by 04.10.2018 / 22:57
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

Parameters in the URL using /

I need to have a URL in the following format:    nomedosite.com/note/ {anything) I need this url to fire the controller Note , with the action Index . How do I set up my route? I tried to use this: routes.MapRoute(...
asked by 30.05.2018 / 13:40
1
answer

How do I pass the value of the Tumb variable to my controler?

How do I pass the value of the Thumb variable to my control? The two input fields then passing normally, however the tumb variable has to pass the Image Url of the video. Controller [HttpPost] [ValidateAntiForgeryToken] public ActionR...
asked by 19.09.2018 / 21:06
1
answer

Jquery Get Checkbox Value Nearer by Line

I need help with the following: Iwanttogetthecheckboxthatisdisabledandplayonconsole0forwhatisdisabled,and1forwhatisenabled.Mysourceislikethis:(asp.netmvc)@modelIEnumerable<Apontamento.Models.Modulos>@{ViewBag.Title="Acesso"; Layout...
asked by 13.09.2018 / 18:05