Category: Knowledge Base

How to redirect to a different page using Response.Redirect in ASP.NET

You only need to use a simple method for redirecting to an URL in ASP.NET: Response.Redirect(). In the example below we are redirecting to http://www.geekpedia.com: Response.Redirect(“http://www.geekpedia.com“); You don’t have to type an absolute URL if the file is located on the same server. In that case you can use relative paths: Response.Redirect(“NewFile.aspx”);

The name ‘Request’ does not exist in the current context

This error normally occurs when you are trying to access a property such as Request.Cookies and you’re not doing that from a webform, usercontrol or a class that inherits from System.Web.UI. Nothing to worry about, since you can still access these properties, but using a different path.For example to access a cookie with the name MyCookie you would normally […]

Internals Visible to Declarations Cannot Have a Version in SQL Server 2005 CTP

If you’re getting an error similar to the one below: [C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.SmoEnum\9.0.242.0__89845dcd8080cc91\Microsoft.SqlServer.SmoEnum.dll] InternalsVisibleTo declarations cannot have a version, culture, public key token, or processor architecture specified. (ObjectExplorer) If you’re getting this error when you try to connect to a SQL Server 2005 database using SQL Server Management Studio CTP, it’s because you installed .NET Framework 2.0 […]

Back To Top