Questions tagged as 'asp.net'

1
answer

Return Saved Registry ID (AJAX - MVC5 - ASP.NET)

I have a form that is sent by Ajax and stored correctly in the database. How can I make that at the time of saving, it returns the ID of that record that I just stored ?, since in another part of the document I have another form that needs that...
asked by 28.08.2018 / 00:45
1
answer

How to consume https json with webform asp.net c #?

Good I would like you to help me I am wanting to consume a service HTTPS . Realizing with asp.net webform. For which I am doing with jquery json I have been reading the documentation and it indicates that you have to use JSONP. link Wha...
asked by 09.08.2018 / 18:24
1
answer

Doubt with decorator [Route ("")]

I have the following controller [Route("micontrolador")] public class MiController : Controller { [Route("micontrolador/miaccion")] public ActionResult Index() => View(); } path micontrolador / miaccion Is it necessar...
asked by 12.06.2018 / 22:23
2
answers

Hide and show controls in ASP.Net C #

I am working on ASP: NET C #. I have an imageButton hidden in my MasterPage, for this I used a class defined in a style sheet. In the design mode I see that the control is hidden but when loading the page, the control appears visible. What I wa...
asked by 03.05.2018 / 17:54
1
answer

Why do I have a loop in my for cycle?

I have a method ActionResult which has a cycle for where I go through all the cookies to eliminate them when doing logout. The problem is that when I call the method from my view (This through a form ) I enter the meth...
asked by 15.06.2018 / 16:15
1
answer

Compare two input fields c # CompareValidator

I have a form that contains two fields input , one for the email and another to re-enter the mail and validate that they are the same, for this last I use the CompareValidator but it does not show me the error when switching focus to the s...
asked by 12.03.2018 / 23:41
2
answers

C # Entity with id Guid does not allow me to register in database

I have modified the question as a result of your requests: first, to clarify that my database was generated using the wizard that Visual Studio has (2015 is the one I use) with the ADO.NET Entity Model (see attached image), in which I designed...
asked by 01.03.2018 / 22:32
1
answer

ActionLink with glyphicon and Button

I would like to know how I can do so that this @Html.ActionLink("Edit", "Edit", new { id = item.IDPROJECT}) can format it, I did it this way but it does not work for me: <a href="@Url.Action("Edit", "Proyectos")" class="btn btn-warni...
asked by 13.12.2017 / 18:17
1
answer

How can I occupy a model several times in asp.net core?

What happens is that I create a model of each table in my sql server database and a context of all tables with Scaffold-DbContext "my string" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Context TrabajoContext, After I occupy only...
asked by 23.01.2018 / 23:35
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