Questions tagged as 'asp.net'

3
answers

What does it mean! - // - in javascript?

I ran into an issue where a tag <script> was displayed and contained these HTML comment characters. Function example <html> <head> <script type="text/javascript"> <!-- function Alert(){ a...
asked by 21.06.2016 / 15:16
2
answers

Preventing Data Resend When Updating Page (F5) in ASP.NET

Well, I have the following problem: I have a web application made with ASP.NET and C #. In this application I have a simple system for registering items. After I register an item in the application, if I have the browser page refreshed...
asked by 26.03.2014 / 19:40
3
answers

Does complex code interfere with application performance?

I have a legacy C # web application that works on my client, but it's been around for 3 years now. At the time, I programmed how I learned in college and did not know the concept of clean code. It's not that big, but it's very complex, and I...
asked by 14.08.2014 / 17:27
2
answers

ASP Classic runs on ASP.NET server?

I have a whole site made in Classic ASP and hosted by a provider. My client - who is a multinational - wants to put their website inside the company's global server and the directive that came from outside says the server runs ASP.NET. My...
asked by 12.01.2016 / 19:43
2
answers

Label in loop in Foreach

I'm having difficulty displaying information that comes from an object to show on a Label, returning it as a list. //Pegando os dados do Rest e armazenando na variável usuários var usuario = response.Content.ReadAsAsync<IEnumerable<Cons...
asked by 27.07.2018 / 14:59
2
answers

Delete row from a list in C #

I have a list as described below I would like to delete a line from the mylistnova1 list as condition is true. I try to do as described below but generates error! Could you please help me? Abs.        public DataTable Query (DataTable tab...
asked by 29.12.2015 / 20:09
4
answers

Is it possible for a JavaScript function to call a method that is in the code behind the page?

I have a button and I wanted to program click of it, and when I use <asp:Button> I program click of it in code behind . I'm now using a button normal. I know almost nothing about JavaScript and wanted to pro...
asked by 11.09.2015 / 20:51
2
answers

Error localhost Visual Studio

My VS was working perfectly, today I bought and installed the kaspersky antivirus, when I was running an ASP.NET site (MVC) the following error appeared:    UNABLE TO START PROGRAM '' An operation is not   valid in the current state.  ...
asked by 23.02.2017 / 22:38
2
answers

How to manipulate title="" by C #?

Is it possible to put the text of the title="" attribute by c #? " The title I want to manipulate is: <asp:HyperLink runat="server" ID="linkTitle" CssClass="link_title search-result-link-title tooltip-init" Target="_top" data-toggle="too...
asked by 04.08.2016 / 00:35
1
answer

Dispose () method

dispose() frees the object from memory, right? I do not know when it is necessary to use it. For example, I have a page, on this page there is listBox com visible = "false" , in an event this listBox becomes true...
asked by 23.12.2016 / 14:00