In a C# web form 2010 application, I am trying to get an existing web page to point the user to a new page page. The user enters a value into a textbox field and c_textchanged(object sender, EventArgs e) is occurs (is called). When the user is in this routine, I want the application to go to my new web page. However, I am getting the generic error message that occurs is the web site default.
I am trying to do the following command,
command:either Page.Response.Redirect("Reason.aspx"); or Response.Redirect("~/Reason.aspx");
Thus can you tell me the following:
1. Where in the visual studio.net ide, would I find the real error message? Is there a log file to look at? Where would I find the log file?
2. I am guessing the code can not find the new page. Could there being something wrong with the new page page? This is the only place I am using the partial class called reason. is that a problem?
The new web page looks like the following:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Sup.Pages.Proc
{
public partial class Reason : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
}
}
}
Loading

Bhushan BhureRank #5,034 · 314 reputationPosted Aug 9, 2012, 8:00 AM EDT
If this works, make sure you have correct url while redirecting to it, if its in same folder then you can use Reason.aspx or if its in parent directory ../Reason.aspx
dcRank #2,247 · 627 reputationPosted Aug 9, 2012, 8:11 PM EDT
Neither of them work.
Can you tell me how to use window.open possibly?