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
-
1
votes1
answer58
viewsHow can I use a Hyperlink inside a Listbox?
I want to make a HyperLink for each result that will appear within the ListBox. private void listBox_SelectionMode(object sender, EventArgs e) { LogisticaServiceContractClient Logistica = new…
-
1
votes0
answers234
viewsaps.net does not call javascript in code Behind
I would like to call my code a function in javascript that is found in my html. It follows below my codes HTML <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs"…
-
1
votes0
answers26
viewsConfigure string Connection for different environments
I would like to know if it is possible to configure a connection string for two intended environments, for example, the debug and the release. That is, when debugging, the connection string will be…
-
1
votes0
answers43
viewsLogoff ASP NET / HTTPS CAUSES SECURITY ERROR
Hello good morning, I have an Asp net application, which makes use of https security, however at the time of logoff it causes an error message, someone has already gone through it?…
-
1
votes2
answers317
viewsError creating database by Visual Studio 2015
I’m in trouble when I try to create a database by Visual Studio this message appears:…
-
1
votes0
answers30
viewsCreate Partial for Table
I would like to create a partial (to be called as @Html.Partial) by receiving the table id and a data collection. However, it would have to be completely independent. The part of C#, with…
-
1
votes1
answer89
viewsHow to use Registerstartupscript one after the other?
It is possible to use ScriptManager.RegisterStartupScript one after the other? 'Cause I need to use one like tabChange(); and another to display the modal, but in case it only executes the first.…
-
1
votes1
answer1442
viewsHow to use dynamically created button event to redirect to another ASP.NET page?
I’m trying to call the event the buttons that were created dynamically with a foreach public void adicionarComanda() { List<Comanda> lc = ControllerComanda.getComanda(); foreach (Comanda…
-
1
votes1
answer539
viewsShow success/error message after postback
I have the following functions on my page, when I call them via javascript, they work perfectly: function msgSucesso(msg) { toastr.success(msg); } function msgErro(msg) { toastr.error(msg); } Hence,…
-
1
votes1
answer177
viewsGet Dropdown value when Textbox receives focus
What can I do to get the value that is selected in a DropDownList and move on to a TextBox only when the Textbox receive the focus (when the user clicks the field)? I had already put one…
-
1
votes1
answer116
viewsUsing model Annotations for C#controller
I have this Annotation on my model [ZoneamentoDados(fim = 2, inicio = 1, tamanho = 2, obs = "Tipo Registro")] public String tipoRegistro { get; set; } [ZoneamentoDados(fim = 54, inicio = 54, tamanho…
-
1
votes1
answer676
viewsHow to use Updatepanel in gridview?
I have a grid and I want to make it not give postback when clicked on any boundfield (those stock buttons). I did so below, but always updates the page. <asp:ScriptManager ID="ScriptManager"…
-
1
votes1
answer212
viewsChange order of running Javascript files
I am developing a project that by clicking the button next to the ASP.NET Webforms application runs a dynamic code (this script is built on each page loading, Dynamic.JS - it is translated from…
-
1
votes1
answer58
viewsWhat is the difference between Httprequestcontext and Httprequest? And how to convert Httprequestcontext to Httprequest?
What is the difference between Httprequestcontext and Httprequest? And how to convert Httprequestcontext to Httprequest?
asp.netasked 7 years, 8 months ago Matheus Bessa 1,261 -
1
votes2
answers274
viewsRestrictions of AD Groups
I’m currently developing a Webapp where I have already managed to get login to confirm the user credentials in the AD. Basically the login already works correctly. My goal now is to create 1 group…
-
1
votes1
answer168
viewsHide Row Gridview C# / ASPX
In a GridView users, if the user himself clicks edit/delete his own account, he would like to know how to hide the Row or disable the GridView but only for the logged-in user, or if clicking the…
-
1
votes2
answers275
viewsHow to know which button called the page?
I have a page with 3 buttons that call the same page and wanted to know if it has how to see which of the 3 buttons called the page. Are buttons Web Forms. What I did was put them to add a value to…
-
1
votes1
answer3267
viewsHow to place an Onclick event by calling a Javascript Function on a Link inside a GRIDVIEW on Asp.net?
I have a form containing a button that will open a query popup. In this popup, I make a query passing as parameters name and Cpf where the return of the query, creates a gridview where each record…
-
1
votes1
answer307
viewsProblem with CSS and ASP Button
I’m trying to put a button ASP with a certain class CSS but I’m not getting the button ASP operating in accordance with CSS. If the button is HTML goes without a problem. CSS code: .images_1_of_5…
-
1
votes1
answer32
viewswhat is the clientcontext Sharepoint object?
I’m having a doubt, I’ve researched some places but I can’t understand what context is that the clientcontext instance class. I am using in my code passing a URL (obviously) I know this class…
-
1
votes1
answer158
viewsProblems with Photoshop files inserted in Masterpage
I can’t use a function javascript contained in a file that is inserted in a Masterpage. Where can I am missing? Follow the Masterpage tag <head runat="server"> <title></title>…
-
1
votes1
answer1147
viewsMy Crystal Report always appears blank
Utilizo Visual Studio 2012 Ultimate and the latest version of Crystal Reports. But every time I run the page, even on localhost the report comes blank. By displaying the page’s source code I can see…
-
1
votes1
answer125
viewsLabel refresh auto
I wonder how I could automatically refresh a LABEL who is in a Master Page. That one Label shows the sum of the quantity of the products, and whenever I add a product to the cart Label does not…
-
1
votes1
answer881
viewsWhat to do for the function javascript n give Reload on the page
I have a javascript function that runs on the onclick of the new button and creates two HTML objects. The problem is that at the end of the function, the page is re-loading and deleting what was…
-
1
votes1
answer174
viewsASP.NET - . aspx does not receive fields from the form post cross Omain
I have a form template that I want the customer to use to paste on your page. The form points to a. aspx page on my server. At the Page_load event in mine. aspx I want to get the fields filled form…
-
1
votes2
answers315
viewsRequest Validation Asp.net
I have a Textbox that uses the text editor ckeditor. When I run the method to save the information, it gives an error A potentially Dangerous Request.Form value was Detected from the client…
-
1
votes1
answer209
viewsCheckbox checked according to string
I have a string in the format ["0,1,0,1,0,1,0,0"]. Where 1 is checked and 0 is unchecked. I also have a grid where I still have a checkbox at the first Oluma. I need to mark the checkboxes according…
-
1
votes1
answer95
viewsBetter options to SESSION?
I have always heard many people say that SESSION is not performative and that it was not advisable to use SESSION in applications . NET, but so far I haven’t found anything I can use in place of…
-
1
votes0
answers89
viewsDoubt with SSL/TSL and Asp.net mvc
I made an application for testing and in the project I changed the field SSL Enabled to True. The application has two URL’s, one for HTTPS and the other for HTTP. Ex: https://localhost:44338/…
-
1
votes1
answer951
viewsError even having the click method
Please, can someone help me with a boring bug with ASP.NET? Next... I have a button: <asp:Button ID="cadastra" CssClass="btn btn-success btn-lg" runat="server" Text="Cadastrar Cliente"…
-
1
votes0
answers243
viewsredirect a sub-domain to the main domain
Hello need to make a redirect of an active blog installed in the sub-domain for the main domain I mounted a redirect from the sub to the main one, the problem are the posts of this blog that are…
-
1
votes1
answer526
viewsValidate textbox with date
I have a textbox field that I need to type the date, I would like to know how I can do for when the user is typing, to validate the field, and if it is not correct, inform the user. What is the best…
-
1
votes3
answers55
viewsAutomatic punctuation in the lines of a Multiline Textbox
i need help, it’s like, I have to record the data from a Multiline Textbox to a Database, which is already working, but I have to do an automatic punctuation in that information that was entered by…
-
1
votes0
answers35
viewsLogin Asp.net redirecting to PHP page
I was wondering if it is possible to log in to Asp.net that redirects to a PHP page. If possible what is the best way to check the logged in user? Session? Cookie?
-
1
votes3
answers338
viewsHow to anchor a redirect in APS.NET MVC
How can I send the user to a certain block of the page by passing the id to the url. For example: http://getbootstrap.com/css/#type, how to pass this type in ASP.NET MVC using the return…
-
1
votes3
answers6938
views -
1
votes1
answer1018
viewsError "Access-Control-Allow-Origin header is present on the requested Resource"
I need to insert an API on my site that brings the weather forecast for a certain city, however, the request ajax always returns the error in the browser console. Below: XMLHttpRequest cannot load…
-
1
votes1
answer499
viewsHow to dynamically grab the Content folder directory?
My question is the same as the title: how to create a variable that points to the Content folder? I have a file there and I want to access it. I tried so but unsuccessfully: StreamReader file = new…
-
1
votes1
answer56
viewsCollect data from View to the controller
I would like to know how I can collect a data from View, since I am already using @model System.data.dataset. @model System.Data.DataSet @{ ViewBag.Title = "CadastroPorto"; } I need to collect the…
-
1
votes1
answer87
viewsSingle entry on Asp.net form
I have a code that registers certain types of equipment, the form fields I have are: Name, Server, Type and Port of the equipment. I wish it was not possible for the user to register two equipments…
-
1
votes0
answers22
viewsLoop on links from a page with Webbrowser control
good evening! I need to access a page where it contains several links. I need to enter each of these links and load the next page to also collect the links of the second page invoked. I was able to…
-
1
votes0
answers192
viewsASP.NET Bootstrap breaking Formulars on mobile devices
I developed a site with ASP.NET and bootstrap the layout is ok for applications with screen up to the size of ipad. However in the ipad mini I would like that occurs a line break where the Lstlojas…
-
1
votes1
answer962
viewsPassing Javascript Parameters to [Webmethod] C#
I would like to know how to pass parameters of a Javascript call to an ASMX Webservice Method without having to define a name for the parameters. Example: $scope.testar = () =>{ filtros ={ id:1,…
-
1
votes1
answer199
viewsMake a textbox visible by selecting a radio button
With the code below I can do this procedure but I have to click the button. It seems that it needs a refresh to work <asp:RadioButton ID="RadioButton1" runat="server" GroupName="pesquisa" />…
-
1
votes1
answer571
viewsAsp.NET MVC checkbox list bind with string value
I have a checkbox list and need to bind values that are strings (@item.Selectedvalue) with my Ienumerable>. <div class="editor-field perfil-filtro-expander-todasAcoes"> <div class="metro…
-
1
votes1
answer195
viewsSelect two attributes from two different tables in a view
I have the model (superclass) Pessoa and the model Aluno public partial class Pessoa { public Pessoa() { this.Escola = new HashSet<Escola>(); } [Key] public int PessoaID { get; set; } public…
-
1
votes1
answer59
viewsProblems with DRAG and DROP using Redpis
I have an application that generates a gridView (ASP.NET) of information and in each column I can have 2 values. One of these values is the total working time (x) of a person for a specific date,…
-
1
votes0
answers390
viewsReturn Json from an Object List - WCF C# . NET VS 2010
Hello, I want to return a list of objects in json by wcf. When I put to return the string, it returns peacefully. However, when I return the list, the error. The error that shows is an error by…
-
1
votes0
answers129
viewsView Image List View
I have a screen, which through a List View, display a photo per register listed. <td class="col-md-1 text-center" style="vertical-align: middle"> <asp:Image runat="server" ImageUrl='<%#…
-
1
votes1
answer283
viewsCharacter limiter in ASP.NET text-box
I’m trying to implement a character limiter for this text-box, but I have no idea how to do that. It is an insertion page of posts in a portal and the title needs to have a limit. <div…