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
answer363
viewsValidation ASP.NET Form in Bootstrap Tabs
I have a form on ASP.NET with its content divided into Bootstrap Tabs. However, some of these fields are required (Required) or are type="number" and "email", if they do not agree, sending the form…
-
2
votes1
answer718
viewsConvert string in parameter to arrayToDataTable(varString)
Hello, I’m starting to use ajax and the Google API (Chart) to create charts. I use a Generic Handler I called 'Collaboratorsempresa.ashx', in it I make a query in the database and return a string…
-
2
votes3
answers4786
viewsLine break into email message
In my string mensagem, i would like to have a two line space, I tried using "/n" and I did not get the expected result. @{ var customerName = Request["customerName"]; var customerEmail =…
-
2
votes1
answer221
viewsHow do I not lose my Gridview lines that were dynamically created in Rowdatabound?
The grid is already being mounted correctly. However when I give a Postback by clicking on some button on the page, the grid is maintained and only the headers (lines in purple) disappear. I know if…
-
2
votes2
answers473
viewsEnd of ASP.NET Webforms?
I wonder if there is a certain trend in ASP.NET Webforms if "retire", leaving only ASP.NET MVC, because according to this article the answer would be yes. The author of the article (Ramon Durães) at…
-
2
votes0
answers124
viewsHow to break the page using Nreco.Pdfgenerator in ASP.NET/C#?
I’m using CSS to break the page, I’m putting it inside a <asp:Repeater> In the first break everything happens well but in the third page it breaks incorrectly (in the middle of the page).…
-
2
votes1
answer1065
viewsCanvas Search Field (ASP.Net - MVC)
Good afternoon, I wonder if someone could help me. I’m a beginner in programming, and I’m developing a Web system, and I need a screen search of the screens you’ve already created. As I use the MVC…
-
2
votes2
answers116
viewsHow to debug to know which database or table are running with Asp.Net
I’m 10 days into my new job, and I’m having some difficulties - which is normal, depending on the difficulty. I have a Table inside a Repeater, which is powered by a Procedure. Like I do with Debug,…
-
2
votes2
answers132
viewsCircle with text in the center Asp.net
I would like to know how to make a circle with a text in the center on Asp.net, follows image of the expected result.…
-
2
votes1
answer336
viewsResponse.Redirect() without generating System.Threading.Threadabortexception?
At every point in the system it has a Response.Redirect("/Url.aspx"); Generates the type Exception System.Threading.ThreadAbortException, but it works. There is some way to do Response.Redirect,…
-
2
votes2
answers2810
viewsHow to call a javascript function from an external file?
I’m having trouble validating a field by clicking the button incluir, so I click on incluir gives this error below: Cannot get value from 'value' property: the object is null or undefined. This…
-
2
votes1
answer196
viewsError loading multiple swf into html
I created a report on ASP.NET and HTML uploading files .swf (flash) within a for. The problem is when the for is big and it needs to load multiple files. swf in the same report the flash simply…
-
2
votes1
answer36
viewsPopulating a field by selecting a dropdowlist via popup
I need to open a pop-up through the selection event of a dropdownlist in an application .net and in this way I popularized the field of the first screen with the selection of the option displayed by…
-
2
votes1
answer216
views -
2
votes1
answer77
viewsWhich components should I use for color and photo selection in ASP.NET?
I have an ASP.NET solution using bootstrap for page styling and would like recommendations for two component types: One for colors, returning color code in hexadecimal, for example: ffffff or…
-
2
votes1
answer419
viewsHost ASP.NET Project on IIS on Machine Itself
Gentlemen, good afternoon. I am developing an application in ASP.NET C#, and would like to host this application in the IIS of my machine. My machine is a windows 7, with IIS 7. My internet is not…
-
2
votes2
answers619
viewsHow to add a (full) div to Asp:Panel using jquery?
Hello. I have the following scenario. I want to use Ajaxcontroltoolkit’s Collapsiblepanelextender to make a collapsed panel. However, the content that this panel will display will be dynamic and…
javascript jquery html asp.net ajaxtoolkitasked 9 years, 9 months ago Leonardo Ribeiro de Aguiar 105 -
2
votes0
answers16756
viewsError AJAX Request - Success does not work
Good afternoon, you guys, I have the following AJAX request: $(document).ready(function () { $.ajax({ url: "/membros.aspx/populaGridMembros", type: "POST", dataType: "json", contentType:…
-
2
votes3
answers7592
viewsError: "Connection Rejected by remote interface" using Firebird 3 in . Net
I have an application in Asp.net, which currently uses Firebird 2.5.1 and works normally. I’m testing the 3.0 Release Candidate for soon migrate the version, but does not open the connection, occurs…
-
2
votes1
answer225
viewsList files from a directory by approximation
I have a screen where I list files from a certain folder. I have a search bar that uses the same method to find files, but I can’t list by approximation. Example: I have this file…
-
2
votes1
answer1161
viewsalign contents of a <div> in the center of the screen
I have a loading and he’s in a <div>. Turns out he always shoots left and I’d like him to stay in the center of the page, but as it is in a <div>, I thought it might be this.…
-
2
votes2
answers1278
viewsCapture selected Dropdownlist item
I have a DropDownList with some items, and I made a click event to pick up what is selected and redirect to a page, however not working right, see: switch(ddlMenu.SelectedValue){ case "0":…
-
2
votes2
answers794
viewsGet information from the customer
This may sound like a silly question, but I’m kind of in trouble here. I need to collect through the browser some information that helps me identify the client that is browsing. I already know the…
-
2
votes3
answers756
viewsLinq, doing Join comparing to Like
I have a question regarding Linq. As I have observed some codes, they usually use as an example: var _s = (from p in exemplo1 join q in exemplo2 on p.blabla equals q.blablabla I would like to know…
-
2
votes1
answer1453
viewsList directories and subdirectories
I have a Treeview component, and a structure in the database that already has in the table directories the subdirectories. has a field called director_parent_guid, if it is null it is because it is…
-
2
votes1
answer1701
viewsHow to create a chart in ASP.Net
I’m trying to create a chart with the history of network usage in my company. I’ve never created a chart before on Asp.Net, so I don’t really know how to get started, and the examples I found on the…
-
2
votes2
answers94
viewsCatching the Location of a POST
I’m using the method HttpRequestHeader to make requests (GET and POST), but I need to take the parameter Location of the response of a POST and I am unable to evolve. There is an example of my…
-
2
votes1
answer1012
viewsGet items from a List<String> - ASP.NET
I am beginner in ASP.NET development with C# and, I have the following question: When loading a page, I run a method that fills a Dropdownlist. This Dropdownlist is part of a form and, after it is…
-
2
votes1
answer177
viewsAutomatic email sending from a website
I have a hosting and my site is already in the air, I wonder if it is possible to schedule the automatic sending of email at a certain time, through the site. I’m programming in aspx
-
2
votes1
answer1070
viewsSecurityexception - Permission Error
Hello, I am climbing an application in my Locaweb hosting and I got stuck in this error, someone knows how to solve this permission problem ? [SecurityException: Request for the permission of type…
-
2
votes3
answers1028
viewsFile download does not work
How to download a file via browser from a directory in my project? I tried it this way, but nothing happens: string path = "C:\\test.txt"; var file = new FileInfo(path); if (file.Exists) {…
-
2
votes1
answer837
viewsCreate temporary file using C# and ASP.NET
I am interested in generating temporary files in c#, Asp.net and I need the temporary url of this file (HTML), this file cannot have a physical path on the server due to the access of several…
-
2
votes2
answers977
viewsConnection to the database in ASP.NET with Entityframework
I need to migrate a system from one server to another. The system is in ASP.NET and the connection to the database is a little strange. I need to know how to connect to the database. The only thing…
-
2
votes1
answer242
viewsHow to transfer items between Listbox with Double Click
I would like to know how I can transfer items between two Listbox, I want that when the user of two clicks on an item the same is already transferred from one listbox to the other. I did not find…
-
2
votes3
answers10463
viewsHow to use @Html.Radiobutton, how to send the selected option to the controller?
I’m trying to send the selected option of Radiobutton to the controller, I’ve tried to do several ways, I’ve searched several places and I don’t have a solution. Thanks Index @model…
-
2
votes2
answers1688
viewsDisplay control in Partial View conditionally
I need a control of a Partial View is displayed according to one condition. For some views a button would appear for others not and this would be set through a parameter in the call of Partial View.…
-
2
votes1
answer421
viewsC# : Show Thumbnail without resizing the image in ASP
I don’t want to let to decrease pictures by setting width and height on Asp. Example: <asp:Image Width="70" Height="90" ID="Image1" runat="server" ImageUrl=' <%# @"\imgpe\" + Eval("CODFOTO") +…
-
2
votes1
answer4742
viewsError runat=server when inserting a button into the form
I have this problem that when passing the login form it gives this error: [HttpException (0x80004005): Controle 'Button1' do tipo 'Button' deve ser inserido em uma marca de formato com…
-
2
votes1
answer266
viewsHow do I use an existing database in an ASP.NET MVC C# and Identity application?
I need to authenticate users. So I created my database with all my business rules, connected to the ASP.NET MVC application, and started programming. Now, when I went to do the login user realized…
-
2
votes3
answers7469
viewsASP.NET Trust Level
Personal Locaweb made an update on its servers and a site of a client of mine started to present the following error: System.Security.Securityexception: Request for the permission of type…
asp.netasked 9 years, 4 months ago Joao Nivaldo 1,229 -
2
votes1
answer2250
viewsHow to access external network folders with c# Asp.net?
When I try to read files on another network (which requires authentication), the error below occurs. The same problem I also have when I try to access protected folders. Does anyone know how to fix…
-
2
votes1
answer291
viewsCompetition Webservices ASMX with Ajax
I realized that when called by XHR, the ASMX webservices can handle few simultaneous requests. Consider the following scenario: Page ASPX: <asp:ScriptManager ID="scrManager" runat="server">…
-
2
votes1
answer315
viewsDropdownlist postback with jQuery or Javascript
How to postback or clear the dropdownlist selection so it returns to the preset state using jQuery or Javascript? I need to clear the selection by clicking a p tag and calling toggle() method. My…
-
2
votes1
answer217
viewsNamespace does not work correctly / BC30002: Type 'Prod' is not set
I was invited to solve a problem in a client’s system in Asp.net (Language in which I do not dominate). Without further ado... My.aspx product file has the following directive <%@ Import…
-
2
votes1
answer811
viewsDropdown menu of Bootstrap on Asp.net site works only on the main page, what to do to fix it?
The menu dropdown apparently it works on the main page, but when I’m on another page and I’m going to use it it doesn’t work! I already checked if the HTML code is generating with jQuery and I saw…
-
2
votes1
answer260
viewsDoubt Postbackurl
I’m trying to use the PostBackUrl in a LinkButton within the DataList. Tried the following, partially successfully. <asp:LinkButton ID="linkBtnMarca" CommandArgument='<%# Eval("Marca") %>'…
-
2
votes1
answer170
viewsApplication error when switching to enable 32-bit = True in IIS7
I use Cobrebemx in my Asp.net web application to print boletos. We switched server and now when I enable the option enable 32-bits = True for the "Application pool" of said application happens the…
-
2
votes1
answer659
viewsCause form validation on an Asp.net link mvc 5
Good afternoon, everyone! I have a form, I created the rules using Datanotations and it works great when I use a button or input type Submit within my form. Validates very well! I want to exchange…
asp.net asp.net-mvc-5 jquery-validate model-validation unobtrusiveasked 9 years, 3 months ago Fabio Luis Rodrigues 31 -
2
votes1
answer419
viewsTooltip does not work dynamic
Notice that line: response.write "<span data-toggle='tooltip' data-original-title='" & TitleBadge & "' style='margin-right:3px;'>" This line is inside a file that is called via ajax.…
-
2
votes2
answers322
viewsOnclick calling function javascript deletes textbox htm
I have a text control HTML which is created by a function called OnClientClick button. The problem that every time I add a new Textbox, the previous data are deleted. What to do to keep him from…