Questions tagged as 'asp.net'

1
answer

How could I improve the code for this paging control?

I mounted a paging control for a blog that I'm putting together, but I'm not sure if I did it the best way, I tried to copy the paging control of Stack Exchange sites. Could you guys take a look and tell me what you think? A screenshot of h...
asked by 23.11.2015 / 02:10
1
answer

ASP.NET Identity and Claims

Still about ASP.NET Identity , following another question I asked about it ( ASP.NET Identity Example using SQL Server ), an interesting topic within the same subject would be about < in> Claims . What is it about? What would be a...
asked by 19.05.2014 / 18:58
2
answers

SQL - Restrict query data

Good morning, I have an app in WebForms that from two DropDownList gets data from a database in MS SQL Server 2012 . At first DropDownList it will display the name of several companies in the database with the fo...
asked by 15.04.2016 / 10:50
1
answer

Is it possible to create a website with HTML and C # without ASP.NET?

Is it possible to create a site only with HTML and C # without ASP.NET? In general terms, how?     
asked by 20.09.2017 / 14:34
2
answers

Time-out expiring faster than expected - ASP.NET

I have an application that is working ok, however, when I spend a little time without interacting with the page the user authentication drops and the system returns to the login screen. I'm trying to set that time for 20 minutes in web config bu...
asked by 09.07.2015 / 21:20
3
answers

Server.MapPath fails within Global.asax

In the code below, when I try to call the MapPath function inside Global.asax, a run-time error occurs with the following error message:   System.Web.HttpException (0 × 80004005): Request is not available in   this context. The faulty cod...
asked by 12.12.2013 / 17:25
1
answer

What is the difference between Class and Code File in ASP.NET Core?

What is the difference between Class and Code File in ASP.NET Core? There are two types of files in asp.net core, are there any differences between them? And when should we use each?     
asked by 27.03.2018 / 15:48
2
answers

WebMethod is not called (triggered) through PageMethod

I'm not able to fire a WebMethod on a project created in Visual Studio 2013 (WebForms Application). If I create a project, for example, in Visual Studio 2008 and migrate to Visual Studio 2013, it works correctly. If I create a new proj...
asked by 13.01.2014 / 14:53
1
answer

Convert data datetime to dd / MM / yyyy

I have a GridView and I'm using TemplateField to display the date that is currently in the format 'string yyyy-MM-dd 00: 00: 00'. > I need to show this date only with dd/MM/yyyy . I have already tried {0:dd/MM/yyyy} and it doe...
asked by 25.05.2015 / 22:27
2
answers

Is the term Asp Net MVC correct?

Is it correct to use the term Asp Net MVC? It seems like they are two different things, like, in MVC we do not use any Asp Net components, do we use either HTML or Razor or both? I know that in addition to Razor we can also use aspx , but...
asked by 04.11.2015 / 11:21