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
viewsProblem with debugging
I am developing a project that has a complete logon system with Roles, User and Goups, but when renamed the project asks to Attach Process instead of DEBUG, how to resolve this?…
-
1
votes0
answers24
views"Asp.Net Development Server Runs" does not close at the end of the run
At the end of the implementation of the Asp.Net Development Server Runs remains open in the systray. I’m using Visual Studio 2010. 1 - This is normal behavior? 2 - May cause some problem? 3 - There…
-
1
votes2
answers624
viewsHow to apply jQuery Validate rules to multiple fields at once?
I have an ASP.NET form and am using jQuery Validate to apply validation rules in the fields. All my fields have a common rule (required: true) but I couldn’t find a way to apply it all at once.…
-
1
votes2
answers211
viewsGetting Foreign Key value - Object Reference not set to an instance of an Object
Using Code First - MVC 4 - EF6 I have the following Model: [Table("usuario")] public class Usuario { [Key] [Column("UsuarioId")] public int UsuarioId { get; set; } public string Nome { get; set; } }…
-
1
votes2
answers243
viewsHow to run a flash file(.swf) on an ASP.NET page?
I have an ASP.NET Webforms application and want to know how to run a flash file(.swf), on a div of an ASP.NET page.
-
1
votes1
answer154
viewsCreate partial (partial) method in C#
You can create a method similar to a class that is partial? For example: Has the method $InitializeComponent() which is of the class of a form. I want to increment this function without touching the…
-
1
votes2
answers586
viewsDifferent databases for the same Asp.net C#
In a club management system each club has its own database. There is a class DAL where it is responsible for obtaining the web.config to string of application connection. How to ensure that at login…
-
1
votes2
answers2812
viewsDecimal variable removing decimal places
I have a variable in decimal which receives a value of a textbox, but when this variable receives the value with decimal places it removes the decimal place and stores the value without the same.…
-
1
votes2
answers785
viewsInitialize object in Asp.Net MVC
I have a class Cidade who owns the property Estado of the kind Estado: public class Cidade { [Key] public int ID { get; set; } [Required(ErrorMessage = "Campo Nome é obrigatório!")] public String…
-
1
votes0
answers90
viewsASP.NET Menu sitemap does not work after changing version of the framework
There was the need to exchange a server application, however, the new server works with the IIS 7.0 and the application that was developed in .NET 3.5 has been changed to . NET4.0. When the…
-
1
votes0
answers267
viewsAutomatically log into the application using Windows Authentication
I need to automatically log in my ASP.NET application using Windows credentials (Active Directory), exactly the same as the Sharepoint ago. In Visual Studio already has a template (Framework 4.5)…
-
1
votes1
answer152
viewsLoad records from different tables as Anonymous type Entity framework
How can I load data from multiple tables in the Entity Framework? By RAW Query I get normal, but by the Entity Framework I’m not getting to the point. What I need is to select the last entry that…
-
1
votes2
answers1465
viewsAutomatic date field fill in application
I have a form in my C# ASP.Net application where I need to fill in an initial and final date, but I want to standardize so that the final date is always 5 days after the initial date. How to do…
-
1
votes1
answer596
viewsHow to Create a Web Forms User Control Component
I have the following problem, I created a component of type Web Forms User Control, I put in it button, grid, the way I want it to be my default registration. It works, as long as it’s on a page…
asp.netasked 10 years ago Otávio Medeiros 65 -
1
votes0
answers127
viewsWebapi . net40 basic authentication
I need to create a basic authentication in an Asp.net webapi project, but it has to be on . Net Framework 4.0, but all the content I find on the internet is for 4.5 Some north?
-
1
votes1
answer1570
viewsHow to treat multiple Forms on the same page.aspx?
I have a.aspx page that I have several Forms. One of the Forms put runat="server" and you’re like Textbox, I was able to take the form data and insert it into the database. But I wanted to do the…
-
1
votes1
answer133
viewsComponent to replace Gridview
I’m having a lot of problems with Gridview in Asp.Net that are taking me seriously, especially the paging and exporting part of the data. Is there any other free component on the market, which…
-
1
votes1
answer418
viewsWrite a Cód to the magnetic probe
I have a printer Evolis Dualys 3 that has the option to record a Cód in the card magnetic Arja, by third party software the recording was successfully performed, now I would like to make this…
-
1
votes1
answer114
viewsUser property, utility and possible Displays
For educational purposes, I was observing the property User class Controller of Asp.Net MVC. I saw a example, very interesting, that a base class for the controllers has been implemented and it owns…
-
1
votes1
answer781
viewsHow to fill a textbox with a Mysql LIKE?
I am trying to fill in the textbox, when the client is typing the initials of his Name, select goes to the bank and tries to get the information. However, I have no idea how to send I’ll show you my…
-
1
votes1
answer38
viewsImport or add Folder from an old project
I did a project and it was a problem in Solution. I had to create a new project and now I’m adding the old files. What happens that when I import folders it does not matter, only files. So far it is…
-
1
votes1
answer460
viewsCheck C#threads
I am trying to understand the code below, but without success. From what I’ve researched, GetMaxThreads returns maximum available threads and GetAvailableThreads what is available. In the case of…
-
1
votes1
answer168
viewsSCRIPT5017: Syntax error in normal expression
When I run my application through Chrome or Firefox it works perfectly. But by IE 10 at a certain point in the application gives this Javascript error. **JavaScript critical error at line 99, column…
-
1
votes1
answer60
viewsProblem with Jquery function
The function I created in Jquery, is not being called in the 1st click, it is only triggered in the 2nd. I am using Asp.net, C#, I need the panel component to start hidden, with this, when clicking…
-
1
votes1
answer42
viewsProblem with ASP.NET website administration tool!
I’m having the following problem, I already took the read-only permission from the folder and nothing: When I click Choose repository... it redirects me to that screen below, and when clicking Test…
-
1
votes1
answer160
viewsChange label text while running a loop on the server
I have a screen that does a lengthy processing, and there’s a for that each next, I want to set a label for the user to see the process. I know it can be done by ajax, but I haven’t found anything…
-
1
votes1
answer605
viewsHow to catch div through another class
I have a .aspx where I put a div alert. I have a class Message to handle system messages. To treat these messages when instantiating the class, step as parameter to page, in the method step as…
-
1
votes1
answer566
viewsLoad Gridview with variable data
I have 3 variables whose values are changed within a loop for. What I’m trying to do is take these values that are obtained from the variables and load them into a Gridview. Here’s what I tried to…
-
1
votes1
answer142
viewsHow to use Scope_identify to return id . NET
I am developing an application and need that when sql does the Insert return the value of the id that was inserted, I am using the following command SqlCommand cmd = new SqlCommand("insert into…
-
1
votes1
answer358
viewsHow to get the value of the date field?
I have a method that returns database values in my screen components. It takes as parameter 3 string and 2 DateTime protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) {…
-
1
votes0
answers634
viewsPublishing Asp.net application on IIS 8
I am trying to publish my application on a Windows server 2012 with IIS 8. I have taken the step by step to go to "Site -> Add Website" and fill in the coordinates, paths and etc. I have deployed…
-
1
votes1
answer1503
viewsHow to open bytes of pdf in a new browser tab
I have the bytes of a report in pdf but only found how to download. byte[] bytes = Relatorio.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings);…
-
1
votes1
answer509
viewsProblem going to the server when loading tinymce component
When I enter information into the tinymce component and click on any button that submits the form has generated the error. Error in Javascript runtime:…
-
1
votes1
answer531
viewsDropdownlist and Listbox - Recovering Values in Editing
In a CMS I own a DropDownList and a ListBox that work regularly in the field of registration, however, do not bring values in the field of editing. View <div> Tipo de Curso<br />…
-
1
votes2
answers1301
viewsHow to Save and Recover All Sessions of a User
I am developing a system in which I need to recover all users logged in or with active session on the server. Context: When the user logs into the system, in addition to creating the Session, save…
-
1
votes1
answer75
viewsError adding While value in List<>
I’m trying to add the value of a result of mine while, and then carry it on my GridView. But I’m having a problem adding value to mine List<>. Does not accept adding prob1.vTotal in lstTotal.…
-
1
votes1
answer1395
viewsEntityframework type conversion error: Cannot convert a 'System.Collections.Generic.Hashset`1[]' object
I am getting this error while trying to record a new record of Atendimento. Cannot convert an object of type 'System.Collections.Generic.Hashset`1[Domain.Servicesinexus]' in type…
-
1
votes1
answer164
viewsError while performing connection test in Visual Studio
I’m new to ASP.NET programming, and I’m trying to connect Visual Studio 2013 Express with SQL serves 2012 Express and I’m not getting any results. I did the following procedures; procedure 1.…
-
1
votes1
answer3095
viewsConvert a date into yyyy-dd-mm format to dd-mm-yyyy
I’m trying to do a search in my database where the goal is to search between two dates entered by the user, and that it shows me all the values that are in this date range, but I’m not able to get…
-
1
votes0
answers47
viewsProblem loading <span> tag content into codebin
I am making a javascript to play the result of a query in a tag , however the query is not displayed in tag. I am on the same page and calling the function by codebehide. function…
-
1
votes0
answers323
viewsHow to use Bundle.config in webforms
I wonder if I can and how to use the bundle.config that is used in MVC, in webforms. I learned that there is this possibility but I did not find anything on the net. So I would organize the CSS and…
-
1
votes2
answers2131
viewsSearch between two dates in my database
I was wondering if you could help me solve a problem that I’m having some difficulty solving. The problem is this: I have a database with a table of values in which I store: date: datetime value:…
-
1
votes1
answer1481
viewsDisplay HTML text in ASP Textbox?
I’m trying to show a text formatted in HTML in a asp text box and I’m not getting. For example this formatted text: <font size="6">teste</font>, I would like when you display this text…
-
1
votes1
answer556
viewsHow to use the value of an HTML field within code Behind C#?
I have a Javascript code that creates HTML fields on an Asp.net page. How do you call the function to the Code Behind and return to the created fields? If I could use ASP.NET in this case, I would…
-
1
votes1
answer36
viewsDoubt with time recording data in master-detail tables?
After entering a record, I use the select max(IDControle) to recover table id to record items. When the time is only 1 second, I noticed that the items were all recorded in the first record. Does…
-
1
votes0
answers37
viewsIs there a function to remove accents in strings c#?
I have an "Academic" string, for example, and I need to return this string as the id of a div in html, and for that I want to return it without the accent.
-
1
votes1
answer177
viewsPublish ASP.Net website
I did my first "website" test on ASP.Net and when I publish it to my normal ftp (I’m using visual studio 2013) I open the domain http://aizensecurity.freevar.com/ gets all these folders and stuff...…
-
1
votes0
answers105
viewsHow to get a Textbox from an Accordion that has been dynamically generated?
It follows the code of how I create the Accordion private void CarregaAccordionCarros() { //DataTable da Consulta var dtTable = GetDataCarro(); AjaxControlToolkit.AccordionPane AccordionPane = null;…
-
1
votes2
answers632
viewsSet model property in javascript variable
I have an Action Usuario that displays user details among other actions that can be performed. I also have a code javascript that needs in some part to set a model property in the javascript…
-
1
votes1
answer360
viewsHow do I store values as objects in Web Forms?
How can I store the values of my class? Every time I click the buttons my class seems to be instantiated again. My class: public class Partida { public string[] linha1 = new string[3]; public…