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
-
2
votes1
answer37
viewsDuplicate field ASP.NET Core MVC
Good morning I am developing a web application and in the registration part I put a CPF field but as it can not be equal to what exists in the bank it of the error, I wanted it to return an error…
asp.net mvc asp.net-core identity validationasked 4 years, 1 month ago Gabriel Rodrigues Pavolin 33 -
2
votes1
answer39
viewsHow to convert 2,22292E+12 to 2222921601281
I have a method that returns a float (but I can change this return to the other if I need to) float mmc(int a, int b) { float num1, num2, x, y, mmc = 0; num1 = a; num2 =b; x = num1; y = num2; while…
-
1
votes1
answer111
viewsHow to check if one control is the son of another? "Control.Ischildof"
I have 3 panels: <asp:Panel ID="ParentPanel" runat="server"> <asp:Panel ID="AnnoyingPanel" runat="server"> <asp:Panel ID="P" runat="server"> </asp:Panel> </asp:Panel>…
-
1
votes1
answer135
viewsFunction Javascript Error Frame
How I Seto an error frame in a Textbox through a javascript function?
-
1
votes6
answers2938
viewsI can’t get the value of an Asp:hiddenField in c#, it’s always empty
I’m having a strange problem here. I’m assigning value to a asp:hiddenField via javascript (already tested giving alert and it shows the correct value), but then when I try to get its value in C…
-
1
votes2
answers1187
viewsHow to edit data from a Table after postback in ASP.NET?
I have a Table in a Web Form in ASP.NET and just below in the same form I added a Textbox in which you fill the fields to add a new line to the Table. The insersion part in the table works very…
-
1
votes1
answer2151
viewsProblem printing a report using Reportviewer
Problem I have several reports Report Services Client that when I try to print happens 2 possible errors: If not installed the rsclientprint.dll the following message appears when I try to print the…
-
1
votes1
answer538
viewsHow to import MDB file read and write to SQL
I am trying to import a MDB file, read this file and write to SQL. I’m already able to import the file and read, I just can’t yet take this data and write to SQL. If you notice the code I even…
-
1
votes2
answers1847
viewsChange layout of a radioButtonList / checkBoxList Webforms to make it compatible with Bootstrap
As is known, the default layout format of a radiobutton or checkbox in list controls in Asp.Net Webforms is always something like <label></label><input> I wonder if there is any…
-
1
votes2
answers592
viewsClosing modalpopupextender at the button click
I am using a modalpopupextender with C# .NET. When I click on my gridview button, it calls the popup to edit the necessary information. When I click on update or cancel, nothing happens! It’s like…
-
1
votes1
answer897
viewsOntextchanged called several times - autopostback
I’ve got, like, 50 Textboxes with this guy: <asp:TextBox ID="txt_DetImovel0" runat="server" AutoPostBack="true" OnTextChanged="txt_DetImovel0_TextChanged"></asp:TextBox> <asp:TextBox…
-
1
votes1
answer474
viewsRegistration via facebook api
I would like to know how to set up the facebook app so that it can receive data from any user.. I tried unsuccessfully defining these 2 fields that facebook provides me: FaceBookConnect.API_Key =…
-
1
votes2
answers1148
viewsHow to change the return url when directing to the login page?
How can I change the value of ReturnUrl passed to the login page when the user is on a specific page and the session expires? For example, if the user is on the page www.meusite.com/seguranca.aspx…
-
1
votes3
answers1948
viewsSet value of a null or Empty ROW on a gridview
I bring a Datatable from the database and fill in a gridview, need to leave some ROWS blank or with nothing, but the fields are numeric and do not accept string or other kind. DataTable dt =…
-
1
votes1
answer64
viewsDynamically manipulate webcontrol element
There is how to manipulate webcontrols name dynamically? ex: I have 90 Textbox textBox_01_name textBox_02_name textBox_03_name textBox_04_name ... today I have the following code if…
-
1
votes2
answers884
viewsHow to call an ASPX page function in another project?
How to call an ASPX page function in another project? When clicking insert I call a project to make the business rules, at a certain moment I need to call a C# function that is on the page and after…
-
1
votes1
answer143
viewsGridview Change Row to Readonly
How can I change Row from a GridView to readonly? I need through values of one of the cells to allow or not editing of the line of GridView.
-
1
votes2
answers1405
viewsBest way to add multiple order items to a table
When I add a request to the table TB_PEDIDOS, TB_PEDIDOS: ID_PEDIDO, DATA_PEDIDO, ID_CLIENTE I also need to add order details to another table: TB_DETALHES_PEDIDOS: ID_PEDIDO, ID_PRODUTO,…
-
1
votes1
answer258
viewsCheck Box to call function that changes language
I’m having a doubt on a screen .aspx that generates a grid report and need to do that when checking a checkbox and clicking the button Beget the report is generated in English. To generate this…
-
1
votes2
answers333
viewsPlace a button of Asp.net enable code only in a Tabpanel
In the code below: <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div class="buttons"> <asp:ImageButton ID="btnNew" runat="server"…
asp.netasked 10 years, 4 months ago Paulo Romeiro 432 -
1
votes1
answer3016
viewsDropdownlist with invalid Selectedvalue because it does not exist in the item list
I cannot understand what is wrong. Dropdown is in a Formview of a user control. The dropdown links to a database table that should return 2 id and name values Formview <td><asp:DropDownList…
-
1
votes1
answer187
viewsDisplay blocked user message on Membership
I need to display a message when the blocked user tries to log in to Membership... I set the locked user with the Isapproved = false property; at the time of registration MembershipUser lockUser =…
-
1
votes1
answer71
views"Node is read only" error when trying to encrypt XML
I am trying to encrypt using XML, while running returns this error : the Inner text of Document Node is read only and cannot be set! Error happens on line xmlDadosCartao.InnerText =…
-
1
votes1
answer54
viewsAdd items to a dropdown control connected to a database
I have a control dropdown connected to a BD and wanted to add an item to force the user to choose an option. How can I add another item (choose/select/----------) to the control in order to force…
-
1
votes1
answer562
viewsFilling with Dynamic Templatefield
I dynamically create the templatefield to my gridview, when I get to gridview is rendered, I get the error that the "C" element does not exist as column names. The code that error occurs is:…
-
1
votes1
answer65
viewsDelete From does not work on C#
Why the code below does not work (does not delete)? using (Banco db = new Banco()) { String strSql = "Delete from Cliente where codcliente=" + Session["_uiUserID"]; db.Cliente.SqlQuery(strSql);…
-
1
votes2
answers1095
viewsCount selected Checkbox lines in a Gridview
How do I select a table (GridView), record and in the other GridView show the amount of CheckBox chosen from the previous table in the current table ?
-
1
votes1
answer1469
viewsBlock access to files from certain directories if not authenticated
How to block the access of certain directories if it is not authenticated? For example I have my url www.meusite.com/login User is not yet authenticated So I don’t want it to be able to access any .…
-
1
votes4
answers1784
viewsConfirmation of sending email?
I need to send emails to my company’s customers, but I also need to know if these emails have been successfully received. Got some way of doing? Which would be the best? It would be something like…
-
1
votes2
answers1914
viewsHide or Show div via a Radiobutton via Jquery
Follow the code below: HTML: <asp:RadioButtonList ClientIDMode="Static" ID="rbAtivoInativo" runat="server" RepeatDirection="Horizontal" AutoPostBack="true">…
-
1
votes1
answer153
viewsAccess denied when using MS Syncframework
I’m trying to implement a system where I need to have a local database (SQL Compact) and a cloud database (MSSQL) that can be synchronized. The shape I found that I’m following is the one specified…
-
1
votes1
answer497
viewsHTTP 403 Error - Access denied
I have a website that uses Forms Authentication. When I test in debug or on the development server, in IIS7, it works well. When I post to the Production server, and press the Logout button, an HTTP…
-
1
votes1
answer112
viewsAjaxtoolkit and Htmleditorfieldextender. Content Demo
I’m using the HtmlEditorExtender of Ajaxtoolkit and in it I enabled the option to insert an image to the body of the text. <asp:TextBox ID="txtDescricao" runat="server" TextMode="MultiLine"…
-
1
votes1
answer51
viewsInvert object inside a table
My goal is to invert two position objects when selected an element in the dropdown Example: By default, when you open the page the component dropdown has two elements "Destination" and "Origin"…
asp.netasked 10 years, 3 months ago Phillipe Hugo 23 -
1
votes1
answer128
viewsWhy does email get bad format when putting HTML in the body?
I have a jQuery editor that sends a string in HTML format to my input as follows. <p class="MsoNormal" style="text-align: justify; text-autospace: none;"><span style="font-size: 10.0pt;…
-
1
votes1
answer1330
viewsHow to get values from the first column which is a checkbox of a Gridview?
I have a Gridview and I need to get the values from the first column of Grid. My first column is a checkbox, I need to check that they are marked and if yes get their values.
-
1
votes1
answer326
viewsError changing C# Asp.net application model
I needed to change an application made some time ago in C# Asp.net. I added the column in the database I needed and when I add the corresponding field to the model, when running the application it…
-
1
votes2
answers270
viewsLink to display attachment
I have a hyperlink to view my attachment. My attachment is on the server and your path is saved in the database. I’m wanting at the time that the person click on Hyerlink open a new tab and present…
-
1
votes1
answer578
viewsExpired web page when I return to the page by the browser button. Previous page c/ postback
In my current application, I have a content list page, which has a small form above to perform "filters" in Gridview below so yes select an item and go to the next page edit the same. What happens…
-
1
votes1
answer156
viewsremove javascript file from a page header
I have an Asp.net application where I load, according to the will of the user several usercontrols. Each usercontrol loaded, via scriptmanagerproxy loads a javascript file. As it is loaded by…
-
1
votes1
answer138
viewsHow to update the . Net framework?
How to update my project framework?
-
1
votes1
answer63
viewsASP.NET Membership: Framework Exchange 3.5 to 4.5
Can anyone tell me what I can get in "Membership" damage if I change my framework from 3.5 to 4.5? I have doubts if my login system will be intact, IE, if it changes nothing of the user control that…
-
1
votes3
answers1945
viewsGridview Templatefield
I need to change a specific Cell in GridView, but when I try to do it this way in RowDataBound: TextBox x = ((TextBox)e.Row.Cells[i].FindControl("ctl" + tx.PadLeft(2,'0'))) x.Enable = False; or in…
-
1
votes1
answer975
viewsTaking the content of a JS variable in an Asp.net C#
I have a Function that takes the values of my inputs, and I want to take the values of the variable for my method to perform the Insert. Does anyone have any tips on how to do this? function…
-
1
votes1
answer70
viewsIE does not resolve URL
I published an application in Asp.net c# on my Intranet. By entering the URL, the application works by Chrome, Firefox and IE gives error in the middle of the application and does not perform…
-
1
votes1
answer183
viewsGridview Asp NET disappears Sort after Click to perform Update
I have my Gridview developed manually, the problem and that when I click to carry out the update my gridview ceases to be orderly and returns to its normal state. I intended that this would not…
-
1
votes1
answer606
viewsChange a Textbox to Multiline while maintaining CSS
I have a web application with several Textboxes. However, I need some of them to stay with Multiline because of the text they will contain. Every time I make this change I lose CSS settings. From…
-
1
votes0
answers41
viewsMessage Globalization for Active Directory
I have an application developed in ASP.NET and uses Active Directory for authentication. Active Directory error messages, when published on my computer, appear in Portuguese, but when published on…
-
1
votes1
answer560
viewsResponse.Write/Flush hangs after many calls
DISCLAIMER: I posted the same question in Stackoverflow in English, I will carry the valid answer from here to there or from there to here if necessary, but I know that not all users here access…
-
1
votes1
answer49
viewsVisual Studio 2010 Outline Extension
I know there are extensions for Visual Studio 2010 that display specific Outline for each environment: C#, css/javscritp and HMTL? Are there any solutions in a single extension? Or do I have to…
.net asp.net visual-studio-2013 visual-studio visual-studio-2012asked 9 years, 10 months ago Jothaz 1,924