Questions tagged [asp.net-2.0]

For issues relating to development with ASP.NET, version 2.0.

ASP.NET is a web application framework developed by Microsoft to allow programmers to build dynamic web sites and web applications.

915 questions
111
votes
5 answers

What is default session timeout in ASP.NET?

What is the default session timeout value in ASP.NET?
roushan
86
votes
7 answers

How to make a website secured with https

I have to build a small webapp for a company to maintain their business data... Only those within the company will be using it, but we are planning to host it in public domain, so that the employees can connect to app from various locations. (Till…
The King
  • 4,600
  • 3
  • 39
  • 58
52
votes
6 answers

How to register ASP.NET 2.0 to web server(IIS7)?

I have a web-page application already created, but when I open it in visual studio 2008, it says there that: ASP.NET 2.0 has not been registered on the Web Server. You need to manually configure you Web server for ASP.NET 2.0 in order for your …
Art
46
votes
4 answers

How to access web.config settings directly in .aspx page?

I've created a web page and it contains some settings value in Web.Config for example images. So I want to give the path of images in Web.Config file and file name in that particular image src. I wanted to read that settings only in aspx page not…
Sandy
  • 6,285
  • 15
  • 65
  • 93
41
votes
4 answers

How to access your website through LAN in ASP.NET

I have an asp.net web-page application and i want it to be accessed using a local area network(LAN) or wireless area network(WLAN). I do not know where to start. Is there something that i will configure in order for others to access my web-page?? I…
Art
37
votes
5 answers

How to generate an 401 error programmatically in an ASP.NET page

As you can see this is a question from a non web developer. I would like to have an ASPX page which, under certain circumstances, can generate a 401 error from code. Ideally it would show the IIS standard page.
24
votes
3 answers

Dependency Injection circular dependency .NET Core 2.0

I want my ApplicationContext constructor to have the UserManager as a parameter, but I am having trouble with dependency injection. Code: public class ApplicationContext : IdentityDbContext { private IHttpContextAccessor…
rory
  • 1,490
  • 3
  • 22
  • 50
24
votes
3 answers

How to include CSS in master pages?

How do I include CSS reference in only certain pages on my asp.net website? If I include the reference in my master page, all pages of the website share the CSS reference.
Zo Has
  • 12,599
  • 22
  • 87
  • 149
21
votes
2 answers

Maximum request length exceeded exception

I'm trying to upload a 20 meg file using the upload control and it's working fine on visual studio's built in webserver but once I publish it to the production server (which I have no access to) I keep getting the following error : Server Error in…
zSynopsis
  • 4,854
  • 21
  • 69
  • 106
21
votes
5 answers

RequiredFieldValidator - how to get rid of the default red font color

I can't seems to change the default color of the required field validator. In the source it is: *
craigmoliver
  • 6,499
  • 12
  • 49
  • 90
21
votes
7 answers

ASP.NET runtime error : Ambiguous Match found

Recently, my team converted ASP.NET project from .NET 1.1 to .NET 2.0. Everything is pretty good so far except for one web page. This is the error message I got when I tried to open this page: Server Error in '/' Application. Parser Error …
natch3z
  • 1,213
  • 6
  • 16
  • 23
19
votes
2 answers

Creating a subscription based website in ASP.NET

I'd like to update my website to make it subscription based. It's a ASP.NET Web forms project. I am looking for the following functionality: Ability to have users sign up for different plans (Gold, Premium etc) Ability to have users upgrade…
DotnetDude
  • 11,617
  • 35
  • 100
  • 158
18
votes
3 answers

Capturing HTML generated from ASP.NET

How do I best capture the HTML (in my instance, for logging) rendered by an aspx-page? I dont want to have to write back to the page using Response.Write, since it messes up my site layout. Using the Response.OutputStream or Response.Output's stream…
lastas
  • 227
  • 3
  • 8
17
votes
3 answers

httpModules not working on iis7

I have the following module public class LowerCaseRequest : IHttpModule { public void Init(HttpApplication context) { context.BeginRequest += new EventHandler(this.OnBeginRequest); } public void Dispose() { } public…
roncansan
  • 2,310
  • 6
  • 27
  • 34
16
votes
4 answers

WebResource.axd requested without parameters - This is an invalid webresource request

I'm finding this problem every now and then in my production website, and it has me absolutely stumped... My app works perfectly in both dev and production, but every now and then, I get an e-mail from my global error handling with this: MESSAGE:…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
1
2 3
60 61