using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq;
public partial class Result : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e) { string s = Convert.ToString(Session["abc"]);
try { if (s == " ") { // int a = 0; ltrlResult.Text = "<h2>Sorry Your Score =0"; } else {
//int a = Convert.ToInt32(s);
//if (a >= 6) //{ // Image1.ImageUrl = "~/images/img2.jpg"; ltrlResult.Text = "<h2>Your Score Good= " + Session["abc"] + "</h2>";
} //else //{
// Image1.ImageUrl = "~/images/img1.jpg"; // ltrlResult.Text = "<h2>Your Score Poor= " + a.ToString() + "</h2>";
//} //} }
catch (Exception ee) { Response.Write(ee); } finally { } }
}
Registration.aspx.cs
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient;
public partial class Registration : System.Web.UI.Page
{
SqlConnection con = new