asp.net deployment issue

I have hosted my asp.net appln in a web server. (it works perfectly in my local system). I am getting error 500.
This is my source code:

index.aspx


[code]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>

<%@ Register Src="WebUserControl5.ascx" TagName="WebUserControl5" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Login

// <!CDATA[

function TABLE1_onclick() {

}

// ]]>






image


What's in Store?



  • Multiple Portfolios
  • Dividend Updates
  • NAV Updates
  • Summary Statements










Forgot Password...?


Register Now...!




image









[/code]

index.aspx.cs


[code]using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using Logic;

public partial class index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["exp"] == "y")
{
Label4.Text = "Session expired";
Session["exp"] = "";
}
}



protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Redirect("RegUser.aspx");

}
protected void LinkButton2_Click1(object sender, EventArgs e)
{

}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
Includes obj = new Includes();
string user = txt_uid.Text.ToString().Trim();
string pass = txt_pass.Text.ToString().Trim();
//string str = "select user_id,user_pass from user_master where user_id='" + user + "' ";

string str = "select user_status,user_id,user_pass from user_master where user_id='" + user + "' and user_pass='" + pass + "'";
DataSet ds = obj.getDataSet(str);
// int row_cnt = ds.Tables[0].Rows.Count; ********///this is also correct. instead of using datatabl****///
DataTable dt = ds.Tables[0];
int count = dt.Rows.Count;
//int row_cnt = dt.Rows.Find("user_status='y'");
DataRow[] foundRows;

//int foundRow = dt.DefaultView.Find("Y");
foundRows = ds.Tables[0].Select("user_status = 'Y'");
int noRows = foundRows.Length;
//dataSet1.Tables["Customers"].Select("CompanyName Like 'A%'");

// string statt=dt.Rows[row_cnt]["status"].ToString().Trim();
if (count > 0)
//for (int i=0; i 0)
//for (int i=0; i











[/code]






Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories