Questions tagged as 'asp.net'

1
answer

Why does it flag error "500 internal server error", in an Ajax call?

I am trying to make a call Ajax, but it marks me 500 internal server error, I could not find where the error is, here I leave my code: debugger $("#NotificaSolo").click(function () { debugger var ta...
asked by 10.01.2018 / 21:00
1
answer

Help with a code in ASP.NET [duplicated]

I hope you can help me with the following code that I have in visual studio, I am programming a user login, in asp.net with c # and it turns out that in my aspx form called PortalAlumons.aspx.cs I wrote the following code: protected void P...
asked by 03.01.2018 / 06:27
1
answer

Disabled does not work in the driver

I'm doing a web application in c # asp.net mvc5, I have a dependent dropdown that is loaded through a javascript function and the data is from the database To this dropdown I want to put a text - Select - , and in turn this text leav...
asked by 18.12.2017 / 22:42
2
answers

Error deleting a record from the SQL server database asp.net

I have tried these two ways. 1 [HttpPost, ActionName("Delete")] public ActionResult DeleteConfirmed(int id)// el id llega con toda normalidad { db.Entry(db.Detalle.Find(id)).State = EntityState.Deleted; db.SaveChanges();...
asked by 21.12.2017 / 15:36
1
answer

I want to read rows from a database with EF Core

When I want to use the method: public async Task<IActionResult> Index() { return View(await _context.Students.ToListAsync()); } The ToListAsync method does not come out and gives me an error.     
asked by 10.01.2018 / 05:43
2
answers

How to make the tag br / be recognized in html when it is returned from a database?

I am working in C # with MVC and I am saving text in SQL server but I need to do line breaks so I chose to include the <br/> tag to perform the jumps, from a view I made the insertion in the data base and another view I show that da...
asked by 25.11.2017 / 02:10
2
answers

Delete button with Javascript in ASP.NET application

I have an application that saves in a database and has a button to delete, I already performed the delete function and ask for confirmation, but when the cancel button is given it also deletes the record. The function that I have is this: <...
asked by 30.11.2017 / 18:08
1
answer

FileUpload error Size in file [0]

I have an asp control to upload files. <asp:FileUpload ID="fuAttachmentsSoporte" CssClass="required" runat="server" ClientIDMode="Static"/> <asp:Button ID="btnAttachmentsSoporte" runat="server" Text="Adjuntar" CausesValidation="F...
asked by 13.12.2017 / 13:57
1
answer

Add header (usernametoken) to web reference C #

Good evening, Add a web service as web reference, and I need to create the header with the authentication (Password and username), I do it when I add a Service Reference, but with a web reference no. Can someone help me, please?. I have re...
asked by 18.11.2017 / 03:09
1
answer

Differences between timeout variables

I'm working with a web application that performs a Session.Timeout = 30 in code, and it is this part that confuses me, since in the web.config the following configurations are available: <authentication mode="Forms"> <...
asked by 04.12.2017 / 20:33