Questions tagged as 'asp.net'

1
answer

How to remove table automatically generated from gridview in asp: TemplateField?

How to remove the automatically generated table from gridview in asp: TemplateField? I'm using a gridview like this <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"> <Columns> <asp:TemplateField> <...
asked by 18.12.2017 / 12:44
0
answers

How to hide properties of an ASP.NET Core model entity only in JSON rendering?

I'm starting studies with ASP.NET core Web Api, and I'm implementing the User class, which has a Password property. Of course I do not want the password to be visible in aps JSONs. I have been researching a lot, I read about IgnoreDataMember,...
asked by 15.12.2017 / 19:28
1
answer

Parameters between pages (ASP.NET Core / C #)

Hello, I have a question that I have researched a lot and did not get any concrete answers. I am a beginner in C # and ASP.NET, forgive me for ignorance. I have an ASP.NET Core MVC project. In it I have Page A and Page B. On Page A I ha...
asked by 28.12.2017 / 20:49
1
answer

Load Fields via DropDownList

I have a dropdownlist (cbreceitas) which is loaded through SqlDataSource, where after loading the cbreceitas, it loads the cbplanos through SqlDataSouce, follows the code: <div class="grid-9"> <asp:Label ID="Label8" runat="se...
asked by 01.12.2017 / 18:35
0
answers

Save File on Physical Path

I'm uploading an image I get via form using C # ASP.NET. My code is working like this: [HttpPost] public ActionResult UploadFile(HttpPostedFileBase file) { try { if (file.ContentLength > 0) {...
asked by 29.11.2017 / 18:22
1
answer

authentication with FormsAuthenticationTicket

I need to persist the inclusions, changes, and deletions that users make on the system, every single move the user makes, so I created a Id in the tables of my BD to know which user is writing the data. I was using the Session , when...
asked by 05.12.2017 / 13:02
0
answers

Send file used @ Ajax.BeginForm and XMLHttprequest

I have the following question: I'm doing a post with @Ajax.BeginForm , however it does not send a file, so I wanted to use File Api , my idea was as follows I would do post by @Ajax.BeginForm thus: @using (Ajax....
asked by 30.11.2017 / 14:03
1
answer

JavaScript function not defined after $ .getScript ('');

I need to load an .js file after an ajax call. I've been looking for and found $.getScript('') to call my file, it opens, everything works fine, but the functions defined in that file are not being found. I have a clicklistener functio...
asked by 27.11.2017 / 13:51
1
answer

Problems when referencing JavaScript and css files - Asp.net Core

I am trying to adapt a layout template that I found on the net in my ASP.NET core, but I am not able to make it work .... I created a Content folder in the root of the project and inside it I have subfolders with files css and javascript. I alre...
asked by 30.01.2018 / 01:39
1
answer

Field of decimal type Entity Framework ASP.NET MVC

I have a table named Pecas where only has name and value, but when I click on create new piece is not saving in the database, the msg that was added but not inserting, the debug shows the name but the value always it's coming 0 no matter what th...
asked by 30.01.2018 / 02:09