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
-
0
votes1
answer1762
viewsWhat steps to implement SSL/TSL in an ASP.NET MVC application
I am developing an ASP.NET MVC project and would like to know what are the necessary processes to implement TSL/SSL. I’m actually not sure if this is the best place to ask this, yet I imagine you…
-
0
votes3
answers997
viewsaps.net C# Renaming an image name
I have an image in a folder and I wanted to change its name only someone can help me thank you example: original name.jpg went to: desired name.jpg
-
0
votes1
answer51
viewsIIS7 and ASPX Windows Server 2008
Good evening, gentlemen, I have a problem with an application. This application was developed in ASPX and was running on a Windows server 2005 normally, but the server has been upgraded to Windows…
-
0
votes0
answers2070
viewsError Handlers Asp.Net
Staff need help with the item below. The error is occurring when trying to run a Web Site project in VB.Net. I have two in the same Solution, one wheel and the other one shows up. It is a project of…
-
0
votes0
answers204
viewsProblems with Scriptresource.axd and ASP.NET version 4.5
Previously my project was of the Webforms type and used version 3.5 of the . NET Framework. But I converted it to Web Application and upgraded the framework to 4.5 and some features that previously…
-
0
votes1
answer266
viewsModelstate.Isvalid in modal registration
I am using a registration form within a modal, however when the condition of the ModelState.IsValid is not satisfied with view is returned. Only instead of returning the same view before the action…
-
0
votes3
answers2379
viewsSet minimum number of characters in Textbox
How can I define a minimum amount of characters that should be put into a textbox? I’m using Visual Studio 2013, creating an aspx site.
-
0
votes1
answer42
viewsPopulating Gridview with no selected record
I’m populating a Gridview and he’s populating with the first record ever selected. var lstUsurios = new V_ENTIDADE_X_PWDNegocio().Listar(); gdvAcesso.DataSource = lstUsurios; gdvAcesso.DataBind();…
-
0
votes1
answer37
viewsSecure email link sending, which allows the user to access an Action Edit in the controller
I need to email a secure link so that the user at the click can access an Edit action in the controller. For example: Sending the link: localhost:64148/Movies/Edit? id=4 However I cannot send the…
-
0
votes1
answer142
viewsHiperlink + Eval + navigateURL
I would like to create a link on the listview line to navigate to a url when clicked. The "city" field has to complete the url so that the direction is done correctly. <%#Eval("cidade")%>…
-
0
votes1
answer195
viewsGet nullable variable Serialized datetime in WCF service responses
I have a WCF service with a variable nullable Datetime in a Datacontract as shown below. Because of business rules this Datamember may not have the Emitdefaultvalue setado to true and the guy has to…
-
0
votes1
answer82
viewsDownload a pdf from a web application to a desktop application, in C#
I have to do a job for the college using C#, with Visual Studio, where a user accesses a web application, uploads a file, and sends it to a remote desktop machine and saves it in a specific folder.…
-
0
votes1
answer269
viewsLogin to index screen
Talk to the guys, all right? So I’m developing an application in ASP.NET MVC and I have a login screen, but I include in the login navbar, where the index the user could enter his email and password…
-
0
votes1
answer641
views413 request Entity Too large
I have a banknote issuing service that was running normally on a VM on Azure. We migrated to a Google VM and now presents this error when the note has many products: 413 request Entity Too large I…
-
0
votes1
answer121
viewsHow to pass variables from C# MVC 4 to SASS SCSS?
I need to change my CSS files dynamically by pulling some data ,like colors, from the database. I chose to use SASS in the application, but I can import an application variable in MVC 4 to my SCSS…
-
0
votes1
answer220
viewsConcurrent Use in Asp.net Applications
I’m starting to study programming in Asp.net mvc (and trying to follow the DDD) and, with this, I came up with a question regarding the concurrent use: Asp.net already performs this control for me…
-
0
votes1
answer80
viewsPublish multiple projects in Visual Studio 2012
How do I publish several independent web projects that are within the same Solution using Visual Studio 2012? I usually right-click the project and go to "Publish" but I can’t do it with several…
-
0
votes1
answer40
viewsReportviewer Asp.net
I’m trying to generate reports with Report Viewer. But when I go to make the configuration of the page rdlc , and I will add a table for example , the visual studio gives error , and restarts .…
-
0
votes1
answer142
viewsUse of the Signalir
I am developing a chat in Signalir, and I can only send messages to all logged in Users, using this way: public void Send(string name, string message) { Clients.All.broadcastMessage(name, message);…
-
0
votes1
answer318
viewsHow to Reset a Gridview c# aspnet?
I have two tables(Datatable) different and need to use them in the same Gridview. But when I call Gridview on the screen it always takes the value of the first table. Does anyone know how to make a…
-
0
votes0
answers58
viewsLocal dbf connection works but fails when remote
I have the code: string DbfConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\DUMP\sgc\D; Extended Properties=dBASE IV;"; It works perfectly on my note, but when I put the…
-
0
votes1
answer195
viewsShow image while hovering online mouse gridview
On an HR management site, there is a readiness history query. Here’s how the page was made: ASPX FILE <%@ Page Language="C#" AutoEventWireup="true" CodeFile="historicoProntidao.aspx.cs"…
-
0
votes1
answer233
viewsChecbox Selected List View
I have a ListView where at the end I have a CheckBox referencing my data. I need to create a button that fires a method that traverses the Checkbox selected and take its value. How to do this…
-
0
votes1
answer37
viewsJavascript e Asp.net [Vb] webforms Session
I have a javascript method that returns a string, In the case: var hash = PagSeguroDirectPayment.getSenderHash(); how to put this hash variable in a Session and read this Session in Asp. Dim hash as…
-
0
votes1
answer1188
viewsSort Gridview ASC
I have this grid, and I would like to sort the columns in ascending order (ASC) how to do? <asp:GridView ID="gridView1" runat="server" AllowPaging="False" AllowSorting="True"…
-
0
votes0
answers153
viewsUsing IF with Eval Asp.net
<%# Eval("filiacao").ToString() == "nada consta" ? "nada consta" : "+infos" %> I want "+Infos" to be a link. Any idea?
-
0
votes1
answer150
viewsWeb Questionnaire App in ASP.NET Web Forms
I did some research and couldn’t find the correct term to correct my mistake. I created a Appweb where the user chooses a subject in a DropDownList and this loads a questionnaire from the database.…
-
0
votes1
answer89
viewsIs it possible to change values on the screen and send to the server?
I work in an Asp.Net application where some values like order price and products are collected from the form. The final order total is made over the sums of the values that come from the form, from…
-
0
votes0
answers137
viewsScriptmanager.Registerstartupscript runs on the fly? or just after the sub end
When executing this line: ScriptManager.RegisterStartupScript(Page, Me.GetType, "OK", "openModal()", True); the script is executed at the moment the debug pointer passes through it, or only after…
-
0
votes0
answers546
views -
0
votes0
answers76
viewsWrite VB code in file . JS
You can write Vb code inside a file that looks like . js? For example: arquivo teste.js var testeEvento = function () { <%=MsgBox("teste")%>; }; I tried this way it didn’t work it returns me…
-
0
votes2
answers373
viewsProblems with ASP.Net MVC routes
I have a problem with routes in MVC. routes.MapRoute( name: "Default", url: "{controller}/{id}", defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional } ); This route,…
-
0
votes1
answer201
viewsOpen link in new window
How do I open a given link, for example www.google.com in a new window without affecting the one I’m using? I will receive this link when running a method of a WS it comes in string format, so I…
-
0
votes0
answers80
viewsShow query output within a C# Website textbox
I have a little doubt about showing a query. On my website I want to show the result of a query. For example: Number of employees: [and here appear the total] I’ve got the comic book connections…
-
0
votes1
answer1496
views -
0
votes2
answers192
viewsLog in with Asp.net 4.5 (Entity Framework)?
How can I make a Select using Entity Framework, and check if the record exists ? Example: txtlogin.text txtsenha.text Login table. user camp password field valida() class created to execute the…
-
0
votes1
answer190
viewsDoubt about . NET Framework 3.5 and ASP.NET MVC
I need to create an ASP.NET MVC application using . NET Framework 3.5 following steps: File -> New -> Project, then I choose, Visual Template C# -> Web afterward .NET Framework 3.5 and…
-
0
votes1
answer53
viewsAdjust CSS on browser-independent page
I have a function on one page (Asp.net) that calls another as a popup: Btnfinalizar.Onclientclick = "javascript:Exibirpopupmobile('/Shoppingcart/Formulario.aspx', 900,580); Return false;"; Using…
-
0
votes1
answer375
viewsFormat Gridview Time
Good morning, I have a field on the grid, which is filled from SQL a Time field(7). It appears this way in the grid: 15:10:51.1000000 But I would like it to appear like this: 15:10:51, and in every…
-
0
votes0
answers373
viewsChanging data fields and label in a Crystal Report
I have a report and need to change the layout, IE, remove a label and a data and change another label and other data. I have move, but it does not work. See image and even Crystal version. I need to…
-
0
votes1
answer918
views -
0
votes0
answers49
viewsSlide Click when refreshing on the page
I am using the plugin bxslide, however when I load the page it works normally, but when I give refresh, it saves the images appearing all slides, not from JS error, but when I change the page size…
-
0
votes2
answers158
viewsActionlink + data-loading-text
People need to put this data-loading-text in this link action only I’m not getting Action Link @Html.ActionLink("Voltar", "Listar", "Cadastro", new { cadastroId = id, area = "Formulario" }, new {…
-
0
votes1
answer41
viewsKendo Grid Remote XML Data
I have a WCF that returns the data from a remote Mysql database, the return is a simple XML, I believe because it is a simple XML is not populating my Kendo grid. I would like an example to assemble…
-
0
votes1
answer179
viewsProblem when viewing data from a grid within code Behind
On a Gridview I’m trying to get the data referring to a line where the checkbox == true. I can get the value of the checkbox, but I can’t get the other values for the line. while (i <…
-
0
votes3
answers107
viewsPrint Items Web Page
I would like to know how to print a web page, only I would not like to print the whole page, I would like you to print the title, and some grids, which are formatted (it would be necessary to print…
-
0
votes0
answers112
views"Asp:Button" does not work inside "mmenu Nav"
I’m trying to integrate "jquery.mmenu" into a Visual Studio project. It seems that an "Asp:Button" does not work inside a "mmenu Nav". An "Asp:Linkbutton" also seems not to work at all. Take for…
-
0
votes2
answers169
viewsHide menu on login screen C#
I have a little problem, I need to hide a menu on the login screen when it is loaded. I used a solution that works locally, but on the server does not happen, follow below: //MENU QUE FICA NA MASTER…
-
0
votes0
answers191
views -
0
votes1
answer3671
viewsstring was not recognized as a Valid datetime
Hello. This problem is occurring only when I place the site on iis. I have tried several solutions, however, I can not solve.Below the code snippet where the problem occurs: public DataTable…