Does a call to Response.Redire ct result in an immediate exit from the current
page function (i.e. a "return()") ? I want to make sure that the statements
after the Response.Redire ct() do not get called.
Alex 4 2366
Response.Redire ct has an overload with a second Boolean parameter that, when
true, will immediately end the current page execution and send and HTTP
redirect header to the client.
Response.Redire ct ("default.aspx" , true);
- Steve
"Alex Maghen" wrote: Does a call to Response.Redire ct result in an immediate exit from the current page function (i.e. a "return()") ? I want to make sure that the statements after the Response.Redire ct() do not get called.
Alex
Just be careful about Response.Redire ct with the second Boolean
parameter set to True inside a try-catch block. This would generate an
exception (ThreadAbort).
André Nobre Response.Redire ct has an overload with a second Boolean parameter that, when true, will immediately end the current page execution and send and HTTP redirect header to the client.
Response.Redire ct ("default.aspx" , true);
- Steve
"Alex Maghen" wrote:
Does a call to Response.Redire ct result in an immediate exit from the current page function (i.e. a "return()") ? I want to make sure that the statements after the Response.Redire ct() do not get called.
Alex
Hi Alex,
By default Response.Redire ct will end the current http request and send
redirect info to client-side so that client side browser will perform
redirecting. And When end the current request, the runtime will abort the
current executing worker thread, in this case, no other code will get
executed on the thread.
Regards,
Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
The overload without the second parameter does the same as when the
second parameter is set to true.
Response.Redire ct ("default.aspx" , true);
and
Response.Redire ct ("default.aspx" );
are equivalent.
Steve Goodyear wrote: Response.Redire ct has an overload with a second Boolean parameter that, when true, will immediately end the current page execution and send and HTTP redirect header to the client.
Response.Redire ct ("default.aspx" , true);
- Steve
"Alex Maghen" wrote:
Does a call to Response.Redire ct result in an immediate exit from the current page function (i.e. a "return()") ? I want to make sure that the statements after the Response.Redire ct() do not get called.
Alex This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ncf |
last post by:
I'm having an odd problem. I'm getting an error from IDLE saying "End
Of Line detected while scanning single-quoted string." Odd thing is,
it's not single-quoted, it's one of the doc-strings (if that's what you
call them).
In the following code (class name replaced with <<<NAME>>>), the error
is being highlighted as the hyphen joining "non" and "ASCII".
class <<<NAME>>>:
<<<CUT>>>
|
by: JohnR |
last post by:
Wow, this is unbelieveable. I've narrowed it down to a few lines of code.
Create a new project in VB.NET and put 2 buttons on it (a FBD button and an
EXIT button) and enter these lines for the click events:
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnExit.Click
End
End Sub
Private Sub btnDoFBD_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnDoFBD.Click
|
by: Najm Hashmi |
last post by:
Hi all ,
I am trying to create a store procedure and I get the following error:
SQL0104N An unexpected token "END-OF-STATEMENT" was found
following "END". Expected tokens may include: "JOIN
<joined_table>
Explanation:
A syntax error in the SQL statement was detected at the specified
token following the text "<text>". The "<text>" field indicates
the 20 characters of the SQL statement that preceded the token
|
by: Summit |
last post by:
Does anyone know what the C# equivalent for VB6 End is?
I'm starting up a form with a boolean test. If I fail, I just want to
end the app. Even though I close the form, it picks up on the line
after the bracket and continues loading the form.
Here's my snippet:
DalMan._drCurrentUser = DalMan._dtUsers.FindByUserName("Init");
if (DalMan._drCurrentUser == null)
|
by: Tom Bower |
last post by:
In the Windows Task Manager if I select a Process and
right-click, I can choose to "End Process" or "End
Process Tree."
Is there a VB equivalent for "End Process Tree" if you
have a handle to a process? I know about process.Kill
and process.CloseMainWindow, but how would I do the
equivalent of "End Process Tree" where any child or
associated processes are also killed? How do you know
what processes are considered to be part of the...
| |
by: caston |
last post by:
Well, everybody can now agree with the fact that the Ajax hype is over.
Still multiple Ajax Frameworks are flourishing, aren't they?
So, last night I questioned myself with the following: "When Ajax
Frameworks will be gone? What is required to get rid of them and start
using browsers?" (To be more precise, I should probably also mention
what kind of frameworks do i mean. These are: Dojo, BackBase, Qooxdoo
etc.)
I've got an answer that I...
|
by: kaleolani65 |
last post by:
I have been having an ongoing problem with a DB at work concerning people getting "locked out".
Access warnings relating to "exclusive" mode
The research I have done and the replies received suggest I split the DB (front-end/back-end).
A working copy of the DB was split and I can see how the DB (back-end) is being updated.
Being such an Access noob (who did not actually build the DB)
I don't know what people mean exactly when...
|
by: BA |
last post by:
Hi there
I am trying to write an "application" in Access 2000, that displays a front
end and allows the user to interact with the database without seeing Access
loaded, in the background, nor on the taskbar.
When I click on the generate report button, from the front-end's form, no
report/query is displayed. However, if i disable the code that "hides"
Access, the reports and queries work perfectly.
How do I get this functionality...
|
by: jahanas |
last post by:
Private Sub txtBox1.txtLife_Enter(ByVal frmQuote) Handles txtLife
Me.txtQuote.Text = "I like life, it's something to do."
End Sub
Private Sub txtBox2.txtFuture_Enter(ByVal frmQuote) Handles txtFuture
Me.txtQuote.Text = "The future isn't what it used to be."
End Sub
Private Sub txtBox3.txtTruth_Enter(ByVal frmQuote) Handles txtTruth
Me.txtQuote.Text = "Tell the truth and run."
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |