NGO Management System-full Coding
Login [Link]
using
using
using
using
using
using
using
using
using
using
using
System;
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
public partial class Default2 :
[Link]
{
public SqlConnection con;
public SqlCommand com;
protected void Page_Load(object sender,
EventArgs e)
{
}
protected void LinkButton2_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void ImageButton1_Click(object
sender, ImageClickEventArgs e)
{
con = new
SqlConnection("Server=localhost\\sqlexpress;dat
abase=hotel;" + "Integrated Security=True");
[Link]();
string strsql = "select *from signup
where uname=" + "'" + [Link] + "'" + "and
pwd=" + "'" + [Link]+"'";
SqlDataAdapter da = new
SqlDataAdapter(strsql, con);
DataSet ds = new DataSet();
[Link](ds);
if ([Link][0].[Link] == 0)
{
[Link] = "Login Are Not
Match";
}
else
{
Session["uname"] = txtuid;
[Link]("[Link]");
}
[Link]();
[Link]();
}
protected void Menu1_MenuItemClick(object
sender, MenuEventArgs e)
{
}
protected void LinkButton1_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
}
Sign [Link]
using
using
using
using
System;
[Link];
[Link];
[Link];
using
using
using
using
using
using
using
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
public partial class _Default :
[Link]
{
public SqlConnection con;
public SqlCommand com;
public void clear()
{
[Link] = " ";
[Link] = " ";
[Link] = " ";
[Link] = " ";
[Link] = " ";
[Link] = " ";
[Link] = " ";
[Link] = " ";
[Link] = "Australia";
}
protected void Page_Load(object sender,
EventArgs e)
{
}
protected void ImageButton1_Click(object
sender, ImageClickEventArgs e)
{
con = new
SqlConnection("Server=localhost\\sqlexpress;dat
abase=hotel;" + "Integrated Security=True");
[Link]();
string strsql="Insert into signup
values("+"'"+[Link]+"'"+","+"'"+txtpwd.T
ext+"'"+","+"'"+[Link]+"'"+","+"'"+txtln
[Link]+"'"+","+Convert.ToInt32([Link])+"
,"+"'"+[Link]+"'"+","+Convert.ToInt64(tx
[Link])+","+"'"+[Link]+"'"+","+"'"+ddc
[Link]+"'"+")";
SqlDataAdapter da = new
SqlDataAdapter(strsql, con);
DataSet ds = new DataSet();
[Link](ds);
[Link]();
[Link]();
clear();
[Link] = "Data Inseted
Successfully";
}
protected void Menu1_MenuItemClick(object
sender, MenuEventArgs e)
{
}
}
Feed [Link]
using
using
using
using
using
using
using
using
System;
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
using [Link];
using [Link];
using [Link];
public partial class _Default :
[Link]
{
public SqlConnection con;
public SqlCommand com;
protected void Page_Load(object sender,
EventArgs e)
{
}
public void clear()
{
[Link] = " ";
[Link] = " ";
[Link] = " ";
}
protected void Button2_Click(object sender,
EventArgs e)
{
con = new
SqlConnection("Server=localhost\\sqlexpress;dat
abase=hotel;" + "Integrated Security=True");
[Link]();
string strsql = "insert into feedback
values(" + "'" + [Link] + "'" + "," + "'"
+ [Link] + "'" + "," + "'" + [Link]
+ "'" + ")";
SqlDataAdapter da = new
SqlDataAdapter(strsql, con);
DataSet ds = new DataSet();
[Link](ds);
[Link] = "Feed Back Submitted";
[Link]();
[Link]();
clear();
}
protected void Button1_Click(object sender,
EventArgs e)
{
clear();
}
protected void Menu1_MenuItemClick(object
sender, MenuEventArgs e)
{
}
}
Forgot [Link]
using
using
using
using
using
using
using
using
using
using
using
System;
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
public partial class _Default :
[Link]
{
public SqlConnection con;
public SqlCommand com;
protected void Page_Load(object sender,
EventArgs e)
{
}
protected void ImageButton1_Click(object
sender, ImageClickEventArgs e)
{
con = new
SqlConnection("Server=localhost\\sqlexpress;dat
abase=hotel;" + "Integrated Security=True");
[Link]();
string strsql = "select pwd from signup
where uname="+"'"+[Link]+"'"+"and
age="+[Link];
SqlDataAdapter da = new
SqlDataAdapter(strsql, con);
DataSet ds = new DataSet();
[Link](ds);
if ([Link][0].[Link] == 0)
{
[Link] = "Fail To Access";
}
else
{
[Link] =
[Link][0].ToString();
}
[Link]();
[Link]();
}
protected void Menu1_MenuItemClick(object
sender, MenuEventArgs e)
{
}
protected void LinkButton1_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
}
Change [Link]
using
using
using
using
using
using
using
using
using
using
using
System;
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
public partial class _Default :
[Link]
{
public SqlConnection con;
public SqlCommand com;
protected void Page_Load(object sender,
EventArgs e)
{
}
protected void Button2_Click(object sender,
EventArgs e)
{
con = new
SqlConnection("Server=localhost\\sqlexpress;dat
abase=hotel;" + "Integrated Security=True");
[Link]();
string strsql = "select *from signup
where uname=" + "'" + [Link] + "'" + "and
pwd=" + "'" + [Link] + "'";
SqlDataAdapter da = new
SqlDataAdapter(strsql, con);
DataSet ds = new DataSet();
[Link](ds);
if ([Link][0].[Link] == 0)
{
[Link] = "No Data R Match";
}
else
{
[Link] = true;
[Link] = false;
[Link] = " ";
}
[Link]();
[Link]();
}
protected void ImageButton1_Click(object
sender, ImageClickEventArgs e)
{
con = new
SqlConnection("Server=localhost\\sqlexpress;dat
abase=hotel;" + "Integrated Security=True");
[Link]();
string strsql = "update signup set
pwd="+"'"+[Link]+"'";
SqlDataAdapter da = new
SqlDataAdapter(strsql, con);
DataSet ds = new DataSet();
[Link](ds);
[Link] = "Password Change
Successfully";
[Link] = false;
[Link]();
[Link]();
}
}
Administrator Login
using
using
using
using
System;
[Link];
[Link];
[Link];
using
using
using
using
using
using
using
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
public partial class Default2 :
[Link]
{
public SqlConnection con;
public SqlCommand com;
protected void Page_Load(object sender,
EventArgs e)
{
}
protected void LinkButton2_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void ImageButton1_Click(object
sender, ImageClickEventArgs e)
{
if ([Link] == "Admin"&&
[Link] =="Track")
{
[Link]("[Link]");
}
else
{
[Link] = "You Not Authorize To
Use This Service";
}
}
protected void Menu1_MenuItemClick(object
sender, MenuEventArgs e)
{
}
}
Admin Page
using
using
using
using
using
using
using
using
using
using
System;
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
public partial class _Default :
[Link]
{
protected void Page_Load(object sender,
EventArgs e)
{
}
protected void LinkButton1_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void LinkButton2_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void LinkButton3_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void LinkButton4_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void LinkButton5_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void LinkButton6_Click(object
sender, EventArgs e)
{
[Link]("ViewAllChkOut");
}
protected void LinkButton7_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void LinkButton8_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void LinkButton9_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void LinkButton10_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void LinkButton11_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void LinkButton12_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
protected void Menu1_MenuItemClick(object
sender, MenuEventArgs e)
{
}
}
[Link]
using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
public partial class _Default :
[Link]
{
public SqlConnection con;
public SqlCommand com;
protected void Page_Load(object sender,
EventArgs e)
{
}
protected void
DropDownList2_SelectedIndexChanged(object
sender, EventArgs e)
{
}
protected void Button2_Click(object sender,
EventArgs e)
{
con = new
SqlConnection("Server=localhost\\sqlexpress;dat
abase=hotel;" + "Integrated Security=True");
[Link]();
string strsql = "select *from chkin
where roomno="+[Link];
SqlDataAdapter da = new
SqlDataAdapter(strsql, con);
DataSet ds = new DataSet();
[Link](ds);
if ([Link][0].[Link] == 0)
{
[Link] = "Room Available";
[Link] = true;
}
else
{
[Link] = "Room Not Available
Choose Another";
[Link] = false;
}
[Link]();
[Link]();
}
protected void btnsybmit_Click(object
sender, EventArgs e)
{
con = new
SqlConnection("Server=localhost\\sqlexpress;dat
abase=hotel;" + "Integrated Security=True");
[Link]();
string strsql ="Insert into chkin
values("+Convert.ToInt32([Link])+","+"'"+t
[Link]+"'"+","+"'"+[Link]+"'"+","+"
'"+[Link]+"'"+","+[Link]
t16([Link])+","+"'"+[Link]+"'"+","+
Convert.ToInt64([Link])+","+"'"+txtchk
[Link]+"'"+","+"'"+","+Convert.ToInt32(txt
[Link])+","+Convert.ToInt32([Link]
t)+","+"'"+[Link]+"'"+")"
;
SqlDataAdapter da = new
SqlDataAdapter(strsql, con);
DataSet ds = new DataSet();
[Link](ds);
[Link]();
[Link]();
[Link] = "Data Inserted
Successfully";
}
protected void Button3_Click(object sender,
EventArgs e)
{
[Link]("[Link]");
}
protected void Menu1_MenuItemClick(object
sender, MenuEventArgs e)
{
}
protected void LinkButton1_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
}
VIEW [Link]
using
using
using
using
System;
[Link];
[Link];
[Link];
Web;
[Link];
[Link];
[Link];
[Link];
[Link];
[Link];
using System.
using
using
using
using
using
using
public partial class _Default :
[Link]
{
public SqlConnection con;
public SqlCommand com;
protected void Page_Load(object sender,
EventArgs e)
{
}
protected void Button2_Click(object sender,
EventArgs e)
{
con = new
SqlConnection("Server=localhost\\sqlexpress;dat
abase=hotel;" + "Integrated Security=True");
[Link]();
string strsql = "select *from chkin
where cid=" + [Link];
SqlDataAdapter da = new
SqlDataAdapter(strsql, con);
DataSet ds = new DataSet();
[Link](ds);
if ([Link][0].[Link] == 0)
{
[Link] = "Sorry Customer Not
Found";
[Link] = false;
}
else
{
[Link] = ds;
[Link]();
[Link] = true;
[Link] = " ";
}
[Link]();
[Link]();
}
protected void Menu1_MenuItemClick(object
sender, MenuEventArgs e)
{
}
protected void LinkButton1_Click(object
sender, EventArgs e)
{
[Link]("[Link]");
}
}