Questions tagged as 'asp.net'

0
answers

Call Alert When I Get a Value in the Session

Hello I'm trying to call a javascript alert as soon as I get some value in a Session. I'm using C # with ASP.NET Follow my code with the attempt to show the alert, but without success: @if((string)Session["alertaErro"] != null) { <...
asked by 22.11.2017 / 18:50
2
answers

Configuring AnglesJS Routes with ASP.NET MVC

I'm having trouble performing angular routing with asp.net mvc. I configured my routing in the app.js and when I click on my links the pages are not being redirected correctly, only page that appears correctly is the Home.html, but after I cl...
asked by 22.11.2017 / 15:27
1
answer

How to pass bidirectional parameters to an AngularJS directive

I need the parameterID="{{autor.ID}} attribute that in the directive is parameterID: '@' to be updated as soon as it is changed, that is, I need the bind to be bidirectional, I have seen in several places saying to use parameter...
asked by 29.11.2017 / 01:51
0
answers

Error updating page

I'm having an error that when updating the page its gridview executes the RowCommand of the button clicked and re-adds a product to the cart that I created, I would like to know if there is a way to block this without being javascript. Thank you...
asked by 01.12.2017 / 12:33
0
answers

Two Form Error on an asp.net page

I have a problem with the ASP.NET form. My master page has a form, and the daughter page also has a form that passes some javascript actions to add a product to the cart. But when I click on any button that has this master page, it automatically...
asked by 13.11.2017 / 18:27
1
answer

Error Treatments 404 and 500

Good afternoon, my question is as follows as I am still new to asp.net and on the DDD I still have some doubt that it is in which layer using the DDD standard I would implement the 404 and 500 error handling, if would be in the presentation laye...
asked by 30.11.2017 / 19:28
1
answer

Preventing sending data when updating page F5 in ASP.NET

I have a problem, I have a grindview with products, every time I add a product in the stamp it adds, but if I click on F5 it adds the new data to the cart. public partial class carrinho : System.Web.UI.Page { ProjetoContext bd = null;...
asked by 21.11.2017 / 19:43
0
answers

Auto complete does not work asp.net mvc

I have a table in the database called Disciplines, and I have a field search in my Index that if I type a letter "A" should suggest "Analysis and development" this is an example, but it does not work, apparently the code is right but is not sugg...
asked by 08.11.2017 / 17:52
1
answer

How to assign the value of a TempData ["Test"] or ViewBag.Id to an html input?

I would like to know how do I get the value of my tempData variable and put in an html input, in value maybe ... could anyone help me? Code below: <div class="container-fluid"> <form method="post" style="margin: 0 auto; padding...
asked by 16.11.2017 / 00:03
1
answer

How do I mount a List or Ienumerable array on the Controller and step to View?

Good Night! I made a request to my webapi to fetch data in order to use it in a DropDownlist @Html.DropDownList("Id","Descricao") . In My controller, I can pull results from WebApi in collection, I have dealt with Json and I put it in my p...
asked by 15.11.2017 / 22:38