473,378 Members | 1,411 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,378 software developers and data experts.

Redirect Not working after UpdateItem

Hi,

I'm using a DetailsView in asp.net 2.0 and C#.

After the UpdateItem(true) is hit, I want to redirect the page to the next page. The code won't do this though for some reason. As soon as the update is done, the same page just reloads. Could anyone help me with this? Here's a piece of the code I'm using:
Code:

else
{
RegistrationView.UpdateItem(true);
Response.Redirect("EditInfo2.aspx?d=" + Request.QueryString["d"]);
}

Dec 28 '06 #1
1 1394
On Thu, 28 Dec 2006 09:07:55 -0800, Rich wrote:
>Hi,

I'm using a DetailsView in asp.net 2.0 and C#.

After the UpdateItem(true) is hit, I want to redirect the page to the next page. The code won't do this though for some reason. As soon as the update is done, the same page just reloads. Could anyone help me with this? Here's a piece of the code I'm using:
Code:

else
{
RegistrationView.UpdateItem(true);
Response.Redirect("EditInfo2.aspx?d=" + Request.QueryString["d"]);
}
Try this news group:

microsoft.public.dotnet.framework.aspnet

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Dec 29 '06 #2

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

Similar topics

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...
1
by: Ravindra | last post by:
Hi, Im trying to use Response.Redirect in Session_End event in Global.asax page, which is not working. Why this is not working? And if this not works here, how do I hanlde this? Any possible and...
3
by: Marc Hoeijmans | last post by:
Hello, I have a problem with the Response.Redirect. The redirect is working for some users for other useres it is not working. We all use the same browser. I have coded the Response.Redirect after...
1
by: Martin | last post by:
Hi, I'm using ObjectDataSource.UpdateItem with the configured object using a value type to encapsulate all the datafields. The update method in my object looks like public void...
0
by: Rich | last post by:
Hi, I'm using a DetailsView in asp.net 2.0 and C#. After the UpdateItem(true) is hit, I want to redirect the page to the next page. The code won't do this though for some reason. As soon as the...
4
by: nkoier | last post by:
Hi, I've been going crazy trying to figure out what's wrong with our Asp.Net 2.0 intranet site. At the very top of our main page I provide a TextBox and a Button for submitting Google searches....
12
by: =?Utf-8?B?cGI=?= | last post by:
I am having trouble doing a redirect in an async asp.net implemention. Most of the time it works, but when it doesn't it just "hangs", the browser never gets any return page. If I run it under the...
2
by: J055 | last post by:
Hi I need some help with this one. If I add this LinkButton Command event I get an 'System.Web.HttpException: Failed to load viewstate' on the second postback. It only occurs when...
7
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am trying to set this up using asp code and IIS configuration. But it seems not working. Here it is the way I am doing. In IIS I set up a virtual directory with secure communication, I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...

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.