Redirecting to other page ? In asp.net?
<p>In web application [asp.net], i write the code to redirect to other page with in the solution, but it is giving exception.</p>

<pre><code> Response.Redirect("abc.aspx");
</code></pre>

<p>can you help me, thank you.</p>

<pre><code>   WeeklyAttendanceMailStatusBE obj = new WeeklyAttendanceMailStatusBE();

            obj.CreatedBy = Session["xxx"].ToString();
            obj.Sesssionid = Session.SessionID.ToString();
            obj.StatusDate = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day.ToString() + " " + DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString());
            obj.Types = "Insert";

            if (radLastWeek.Checked == true)
            {
                obj.Flags = 1;
                obj.LastWeekStatus = 1;
                int result = new WeeklyAttendanceMailStatusBL().InsertWeeklyAttendanceMailStatus(obj);
                if (result &gt; 0)
                {
                    Response.Redirect("abc.html");

                }
                else
                {
                    DateTime dt = DateTime.Now;
                    ScriptManager.RegisterStartupScript(this, GetType(), "message", "&lt;script&gt; alert('Not Submited Mail Status')&lt;/status&gt;", false); 
                }
            }
            else
            {
            }
</code></pre>
