473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to use Reponse.Redirect in ASP.NET Iin-line Code ?

Hi

I have an classic ASP page that contains nothing else but the following
code...

<%@ Language=VBScript %>
<%
Response.clear
Response.redirect("/Intranet")
%>

I'm was trying to write an equivalent page in ASP.NET but am getting nowhere
fast !!!

My entire page is below (No Code Behind)...

<%@ Page Language="vb" AutoEventWireup="false" enableviewstate="False"%>
<script runat=server>
Public Sub Page_Load()
Response.Clear()
Response.Redirect("/Intranet")
End Sub
</script>
Presently this does return an error, but all I get is a blank page with the
HTML, BODY etc structure defined.

HELP PLEASE !!!!

Simon
Nov 18 '05 #1
1 1884
You can use a meta refresh instaed of code or put that same code in the code behind.

Response.Redirect("/Intranet");
Response.End();

Bobby Ryzhy
bobby@ domain below
http://weekendtech.net


On Wed, 14 Jul 2004 17:00:11 +0100, "Simon Prince" <si**********@joseph.NOSPAM.co.uk> wrote:
Hi

I have an classic ASP page that contains nothing else but the following
code...

<%@ Language=VBScript %>
<%
Response.clear
Response.redirect("/Intranet")
%>

I'm was trying to write an equivalent page in ASP.NET but am getting nowhere
fast !!!

My entire page is below (No Code Behind)...

<%@ Page Language="vb" AutoEventWireup="false" enableviewstate="False"%>
<script runat=server>
Public Sub Page_Load()
Response.Clear()
Response.Redirect("/Intranet")
End Sub
</script>
Presently this does return an error, but all I get is a blank page with the
HTML, BODY etc structure defined.

HELP PLEASE !!!!

Simon


Bobby Ryzhy
bobby @ domain below
http://weekendtech.net
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Bob Garbados | last post by:
forgive my ignorance, as I'm new to php coming from a ms background... If I create a page named redirect.php and it's only content is: <?php header("Location: http://www.google.com"); ?>...
1
by: Peter Kirk | last post by:
Hi there I have a program written by another company (it's a "web control" which returns a web-page: can I compare this to a servlet in the Java world?), which they think is causing problems on...
2
by: Mark Dengler | last post by:
Is it possible to do a Response.Redirect to multiple URLs? I have tried the following and it simply ignores the first redirect: Response.Redirect("test.aspx", false);...
3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
5
by: RayAll | last post by:
I have used a response.redirect() in the first page of my weblog to transfer it to anther page,but it seemes to be slow.Is there a workaround (probably Server.Transfer???)??? Thanks
5
by: Steven Nagy | last post by:
Hi all, What are the major considerations when considering Server.Transfer? I have some legacy apps (when I say legacy, I mean ASP.NET1.0) that use Server.Transfer for almost everything. I...
1
by: Samuel Shulman | last post by:
Hi I am looking for a way to send a POST request using the Reponse.Redirect or any thing similar Thank you, Samuel
8
by: anukedari | last post by:
Hi, Could any boby please help to get the answers for the following questions: Is Apache always sends "X-Cache:MISS" header even when caching is off (disable)? or Can we say that cache...
0
by: djtodd | last post by:
Is there any way to use reponse.redirect and provide network credentials for basic auth along with it to prevent the nt security dialog box when hitting the new server location? or, is there another...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.