Most voted "asp.net" questions
ASP.NET is a web application framework developed by Microsoft to allow programmers to build dynamic websites and web applications. Use the tag for traditional web forms, the classic template that provides the illusion of "stateful" pages. Do not use this tag for the style using the standard Model-View-Controller; use [Asp.net-mvc].
Learn more…1,881 questions
Sort by count of
-
3
votes2
answers2084
viewsWrite input button in ASP.NET c#
I have the following code: r.Write("<th colspan='3' style='text-align:center'><input id='btEmail_" + (n - 1) + "' name='btEmail_" + (n - 1) + "' runat='server' class='btn bg-brownCinc'…
-
3
votes2
answers861
viewsDatepicker Asp.Net
I am developing an application and would like to put the date field that when it is clicked it displays a calendar for selection in this style: datapicker, but I don’t know how to.…
-
3
votes1
answer1033
viewsUse Onblur in Asp.Net with problems!
I need to format and validate a data field using the property OnBlur of Javascript within the codebehind C#. The problem is that it executes the javascript function and does not return the value to…
-
3
votes2
answers642
viewsExecute server method when closing the browser
I need the user to close the browser or the page tab, update the status Logged in that is in the database (to control user access). For this use the following Method JavaScript:…
-
3
votes1
answer3281
viewsTextbox and dynamic C# + ASP.NET button
I am feeding a webform with textboxes and buttons from a Repeater, according to the tuples(table people) returned in an SQL query, linking the code to specific attributes within these controls. For…
-
3
votes4
answers11622
viewsIs it possible for a Javascript function to call a method that is in the Behind code of the page?
I have a button and I wanted to program the click of it, and when I wear a <asp:Button> I program the click of him in the code Behind. Now I’m wearing a button normal. I know almost nothing…
-
3
votes2
answers700
viewsHow to add a`ul` to a`li` HTML element via c#code?
I’m going to have a list of multiple clients, and I wanted to add these clients to one ul of the element li in HTML, you can add these clients dynamically (because each search performed on the…
-
3
votes1
answer549
viewsHow to update only the model in ASP.NET MVC?
I am using ASP.NET MVC 5 and EF6 in a project, and I have a class that makes a query on the postal site and returns the address from the zip code. Until then, all right, what I would like to do is…
-
3
votes1
answer718
viewsHow to convert an Array of Bytes to a Direct Image in Listview?
I populated THE Datasource of Listview with a collection. The collection contains a field with ArrayBytes. I need to convert to the image appear in control. But the conversion has to be direct in…
-
3
votes2
answers1257
viewsError when configuring application in IIS Local (Integrated pool)
Personal hail, I am new with . net and am in error when creating an application in iis local. Below print of the exception and my pool. My iis resources and project are the same as a friend’s and on…
-
3
votes1
answer147
viewsDilemma to the popular datalist
I have a problem that I don’t even know what to call. But I will try to express this problem here. Here’s the thing, I made a pagination in my datalist with the following code: private void…
-
3
votes1
answer1040
views -
3
votes1
answer636
viewsCOM Interop with Client and Server
Hello, I have a DLL to encrypt data. I need to use the Component Object Model(COM) Interop to be able to communicate two applications and both traffic the encrypted data through this DLL. Searching,…
-
3
votes1
answer537
viewsInternationalization, Localization and Globalization
I have a project that needs to work with internationalization, where the web application needs to be available at least in portuguese and english, and perhaps also in Spanish. My biggest difficulty…
-
3
votes1
answer1897
viewsReturn JSON with ASP.NET/C#
I have the following codes Default.aspx <script type="text/javascript"> /* Relógio */ function startTime() { $.ajax({ type: 'POST', url: 'Default.aspx/GetNetworkTime', data: "{}", contentType:…
-
3
votes2
answers199
viewsBlock Control+V in dynamically generated Textbox fields
I have a GridView where I have some TextBox that are generated according to the total lines of the same. I’d like to block the Control+V in all the TextBox. Use the Jquery 1.4, and from what I read…
-
3
votes2
answers244
viewsWhat is the best way to publish my C# Asp.NET application on Azure?
I started a project in college and I’m using Azure to host it. This is my first contact with this tool and I’m having great difficulty understanding it. I’ve looked for tutorials and explanations in…
-
3
votes1
answer84
viewsAsp.Net 5(Core 1.0) Class Library System.Text.Regularexpression
How to use the namespace System.Text.Regularexpression in Asp.Net 5, I’m with a project and went to upgrade it to Asp.net 5, my problem was that I can’t use regular expressions in it and n can…
-
3
votes2
answers611
viewsSend email using ASP.NET
I would like to know how to send an email using ASP.NET. The idea will be to click on a button called send and send a support mail Thank you.
-
3
votes1
answer36
viewsUpdatepanel - Always and conditional together
I have a question. Is it possible to fire event only on updatePanel conditional while it is inside another that is not conditional? Follow the example: <asp:UpdatePanel runat="server"…
-
3
votes1
answer174
viewsSource is not recognized in PDF generation
I am using the Itextsharp library to create PDF’s and I am having problems with the source of the document, I have the error "Font is an ambiguous", I have looked in several places and all the…
-
3
votes1
answer54
viewsASP.net to send text with enter
in Example.aspx.Cs protected void Page_Load(object sender, EventArgs e) { teste0989.InnerText="teste123<br>teste456<br>" } in the site appears the br as text and actually wanted to enter…
-
3
votes2
answers680
viewsSubmit button even when cancel
I have a button in ASP.NET webForm and even clicking cancel it sends the Submit. Example in Fiddle http://jsfiddle.net/dorathoto/qywvuhvq/ $(function () { $("[name='chk_IDDel']").change(function ()…
-
3
votes2
answers100
viewsHow to manipulate title="" by c#?
It is possible to put the text of the title="" attribute by c#? The title I intend to manipulate is: <asp:HyperLink runat="server" ID="linkTitle" CssClass="link_title search-result-link-title…
-
3
votes1
answer47
viewsDisable automatic refresh from a Grid
Hi, I’ve been trying to disable refresh a for a long time AjaxUpdatedControl of a RadGrid which occurs when I click on a button of this Grid. Does anyone have any suggestions on how to do this?…
-
3
votes1
answer256
viewsDoubts about implementation of Lazy Load and Dependency Injection
The scenario is simple, it has a Personal Physical class that has linked to it a list of Contacts (instances of physical persons), Telephones (instances of an entity Telephone) and a list of…
c# asp.net pattern-design dependency-injection lazy-loadingasked 9 years, 5 months ago Intruso 1,625 -
3
votes2
answers1464
viewsI cannot read the values returned from the database using Oracledatareader
I’m having trouble reading the values returned from a select, on the line where I do: OracleDataReader reader = cmd.ExecuteReader(); in the read it brings me the values correctly, but in the next…
-
3
votes1
answer1017
viewsHow to display an ASP HTML code on a Label by sending by Code-Behind(C#) - ASP.NET
I’m having a problem, I did several tests where I wanted to send directly from a C# method an HTML code to a label, where it would display dynamically the code on the screen. But when I tell her to,…
-
3
votes0
answers4251
viewsHow to update ASP.NET website hosted at Locaweb
I’ve had a website running for four years on a client of mine. The site was developed in VB.Net, and Locaweb migrated its servers from Windows 2003 to 2008 and consequently changed the Trust Level…
-
3
votes1
answer613
viewsHow to start on MVC5 ASP.NET?
Hello! About a month ago I started to venture around the world of C# and then I started to study Framework .Net. Soon after I started to study ASP.NET due to the need in my company. Today I use…
-
3
votes1
answer2479
viewsOpen Source E-commerce in ASP.NET
I know that in PHP there is a lot of e-commerce framework in the market today, but in ASP.NET, which framework exists today? What advantages and disadvantages of each? Is it worth using or building…
-
3
votes1
answer1042
viewsWhat is ASP.NET’s Httphandler and Httpmodule?
What is the Httphandler and Httpmodule of ASP.NET? How they work? And how to use?
-
3
votes2
answers5090
viewsError localhost Visual Studio
My VS was working perfectly, today I bought and installed the antivirus Kaspersky, when I went to run a site ASP.NET (MVC) the following error appeared: UNABLE TO START PROGRAM 'An operation is not…
asp.net asp.net-mvc-5 visual-studio entity-framework-6 localhostasked 7 years, 7 months ago Jefferson Souza 379 -
3
votes3
answers1531
viewsValidate field after typing in ASP.NET MVC
I have a registration page in ASP.NET MVC with Entity Framework, this registration has an indication field, where the nickname of the user that indicated. I wanted after typing this field by the…
asp.net-mvc asp.net asp.net-mvc-5 entity-framework-6asked 7 years, 6 months ago Alisson Marqui 1,128 -
3
votes1
answer85
viewsHow to generate Thumbnail using Mediatoolkit
I need to generate a thumbnail from a video when climbing it to my application, I would like an explanation of how to use the package Mediatoolkit to do this, I thank you already.…
-
3
votes1
answer429
viewsWhat is Asyncpostbacktrigger Class?
How should I wear and what makes this kind of class?
-
3
votes1
answer5847
viewsHow to play a youtube video in an iframe? Refused to display '' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
I’m trying to play a youtube video on my website using iframe and is generating me the error that is in the title of the question. HTML: <div class="video-container"> <iframe…
-
3
votes2
answers912
viewsProblems with special characters in Asp.net GRIDVIEW
I am building a dynamic GRIDVIEW, where the information of each TD will be a DIV. exemplo: <td><div id="d1" class="redips-drag t1">z</div></td> I am filling the valve as…
-
3
votes1
answer233
viewsAsp.NET Asp Click Error:button
I have a screen where I have some buttons and clicking on the buttons returns me the error on the screen: "Index was out of Range Must be non-negative and Less than the size of the Collection." The…
-
3
votes1
answer1253
viewsUpload with ASP.NET Core json vs formdata
I’m using Asp.net core webapi, initially my actions were using the attribute [Frombody] in the parameters, so I rescued the json value sent by front-end. I am now implementing a screen that has…
-
3
votes1
answer1179
viewsHow to start ASP.NET Status Service?
I set up mine Web.config with the following instruction: <sessionState timeout="30" mode="StateServer" /> But when I run the application (an ASP.NET site), I get the following error: Session…
-
3
votes0
answers1328
viewsAPI for Secure Notifications
Gentlemen, good night! I’m doing an integration with pagseguro for my site. I set the page to receive the notification whenever its status is changed according to the code below. protected void…
-
3
votes1
answer433
viewsData handling in excel
I need to get the generated data from a proc save in any variable that is and make a UPDATE in a worksheet already existing in a fixed path on the system. It is possible to do this process via code…
-
3
votes2
answers141
viewsError while trying to pass an ordered collection to a View
I’m trying to get to the View an ordered collection, but I’m always having the same error: There is no Viewdata item of type 'Ienumerable' that has the key 'Titulodecortesia' The only way I can…
-
3
votes1
answer96
viewsHow to create variables in C# in the same way as in PHP?
You can use variable variables or something similar in C# as in PHP for example? $example = "etc.."; $var = "example"; // variáveis variáveis echo $$var; // etc... echo ${$var}; // etc... If not…
-
3
votes2
answers958
viewsAsp.net - Prevent consecutive button clicks
Good afternoon. I have an Asp.net webform application, and am having the following problem. In a certain part of the system, the client has two buttons to navigate between the issues of a magazine,…
-
3
votes1
answer101
viewsIs ASMX web service obsolete?
I came across the need to consume an ASMX Web Service. Until then I had only consumed Restful Apis. I noticed that the same is very different from a Restful API, for example. Given the way it is…
-
3
votes1
answer186
viewsHtml.Beginform() No Submits model, Modelstate.Isvalid = False
Next I am with Html.Beginform() where the same Submits the model however when it goes to the control it is false the Modelstate.IsValid. Follows Model, Control and Beginform Model:…
-
3
votes1
answer178
viewsJavascript set value of one field in others
I have the following code below <script type="text/javascript"> function getValue() { var x = document.getElementById("NuJaneiro"); document.getElementById("NuFevereiro").value = x.value; }…
-
3
votes2
answers3060
viewsDelete line from a list in C#
I have a list as described below I would like to delete a line from the list mylistnova1 as condition is true. I try to do as described below but it generates error! Could you please help me? Abs.…