<%@ Page Language="C#" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="System.Net" %>
<%@ Import Namespace="System.Net.Mail" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Configuration" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Online Examinations Registration | Manabadi.com</title>
<link href="../css/onlineexam.css" type="text/css" rel="stylesheet" />
<link href="../Online-Exams/css/online-exams-bootstrap.css" rel="stylesheet" type="text/css" />
<link href="../Online-Exams/css/online-exams-main.css" rel="stylesheet" type="text/css" />
<link href="../Online-Exams/css/online-exams-menu.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" />
<link type="text/css" rel="Stylesheet" href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.6/themes/smoothness/jquery-ui.css">
<script src="Jscript/jquery-1.10.2.js" type="text/javascript"></script>
<script src="Jscript/jquery.min.js" type="text/javascript"></script>
<script src="Jscript/jquery-ui.js" type="text/javascript"></script>
<%-- <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>--%>
<script type="text/javascript">
$(document).ready(function () {
$('a#popup').live('click', function (e) {
//debugger;
var page = $(this).attr("href") //get url of link
var $dialog = $('<div></div>')
.html('<iframe style="border: 0px; " src="' + page + '" width="100%" height="100%"></iframe>')
.dialog({
autoOpen: false,
modal: true,
height: 500,
width: 600,
title: "View Customer Details",
buttons: {
"Close": function () { $dialog.dialog('close'); }
},
close: function (event, ui) {
}
});
$dialog.dialog('open');
e.preventDefault();
});
// $('#slider').cycle({
// fx: 'scrollHorz',
// speed: 600,
// timeout: 3000,
// next: '#next',
// prev: '#prev'
// });
$("#txtafrmdate").datepicker({ dateFormat: 'mm/dd/yy ' }).val();
$("#txtatodate").datepicker({ dateFormat: 'mm/dd/yy ' }).val();
$("#txtvfrmdate").datepicker({ dateFormat: 'mm/dd/yy ' }).val();
$("#txtvtodate").datepicker({ dateFormat: 'mm/dd/yy ' }).val();
});
</script>
<script runat="server">
SqlCommand ObjSqlCommand;
SqlConnection ObjSqlConnection;
SqlDataAdapter ObjSqlDataAdapter;
DataSet ObjDataSet;
string strcon = ConfigurationManager.ConnectionStrings["Scon"].ConnectionString;
string year, month, date, HH, MM, SS, strAccessCode = string.Empty;
int strkeyword = 0;
Int64 mob = 0;
bool IsIntOrNot = false;
public void Page_Load(object Sender, EventArgs E)
{
//lblexamcount.Visible = false;
//ddltspsc.Visible = false;
//ddlrrb.Visible = false;
}
public void btnSearch_Click(object Sender, EventArgs E)
{
try
{
string strquery = string.Empty;
if (RadioButton1.Checked == true) //this is user Id
{
if (!string.IsNullOrEmpty(txtsearch.Value))
{
if (txtsearch.Value.Trim().Length < 10)
{
IsIntOrNot = int.TryParse(txtsearch.Value, out strkeyword);
if (IsIntOrNot)
{
strquery = "select USR_UserId, USR_FirstName,USR_LastName,USR_NickName,USR_UserName,USR_MobileNo from mbd_UserRegistation where USR_UserId=" + txtsearch.Value + "";
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter Correct User Id";
}
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter Correct User Id";
}
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter value for Search criteria";
}
}
else if (RadioButton2.Checked == true) //this is email Id
{
if (!string.IsNullOrEmpty(txtsearch.Value))
{
IsIntOrNot = int.TryParse(txtsearch.Value, out strkeyword);
if (IsIntOrNot)
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter Correct value";
}
else
{
//Check Email Id is valid
if (IsValidEmailId(txtsearch.Value))
{
//logic pattern
strquery = "select USR_UserId, USR_FirstName,USR_LastName,USR_NickName,USR_UserName,USR_MobileNo from mbd_UserRegistation where USR_UserName=" + txtsearch.Value + "";
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter Correct Email Id"; //txtsearch.Value + " is not valid email";
}
}
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter value for Search criteria";
}
}
else if (RadioButton3.Checked == true) //this is mobile no
{
if (!string.IsNullOrEmpty(txtsearch.Value))
{
if (txtsearch.Value.Trim().Length == 10)
{
//logic pattern
strquery = "select USR_UserId, USR_FirstName,USR_LastName,USR_NickName,USR_UserName,USR_MobileNo from mbd_UserRegistation where USR_MobileNo=" + txtsearch.Value + "";
}
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter Correct Mobile No";
}
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Select Key word";
return;
}
ObjSqlConnection = new SqlConnection(strcon);
ObjSqlCommand = new SqlCommand(strquery, ObjSqlConnection);
ObjSqlDataAdapter = new SqlDataAdapter(ObjSqlCommand);
ObjDataSet = new DataSet();
ObjSqlDataAdapter.Fill(ObjDataSet);
if (ObjDataSet.Tables[0].Rows.Count == 0)
{
ObjDataSet.Tables[0].Rows.Add(ObjDataSet.Tables[0].NewRow());
gvBasicSearch.DataSource = ObjDataSet;
gvBasicSearch.DataBind();
int columncount = gvBasicSearch.Rows[0].Cells.Count;
gvBasicSearch.Rows[0].Cells.Clear();
gvBasicSearch.Rows[0].Cells.Add(new TableCell());
gvBasicSearch.Rows[0].Cells[0].ColumnSpan = columncount;
gvBasicSearch.Rows[0].Cells[0].Text = "No Records Found";
//clearcontrol();
return;
}
else
{
//int count = ObjDataSet.Tables.Count;
gvBasicSearch.Visible = true;
gvBasicSearch.DataSource = ObjDataSet;
gvBasicSearch.DataBind();
lblerrormsg.Visible = false;
//clearcontrol();
return;
}
}
catch (Exception ex)
{
Response.Write("Error Message <br/> " + ex.Message + "");
}
}
private bool IsValidEmailId(string InputEmail)
{
//Regex To validate Email Address
Regex regex = new Regex(@"^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$");
Match match = regex.Match(InputEmail);
if (match.Success)
return true;
else
return false;
}
public void btnAdvSearch_Click(object Sender, EventArgs E)
{
try
{
ObjSqlConnection = new SqlConnection(strcon);
string strquery = "select USR_UserId, USR_FirstName,USR_LastName,USR_NickName,USR_UserName,USR_MobileNo from mbd_UserRegistation where ";
if (txtafrmdate.Value != "" && txtafrmdate.Value != null)
{
strquery += "CONVERT(varchar(10),USR_DateAdded,101)='" + txtafrmdate.Value + "'";
}
if (txtatodate.Value != "" && txtatodate.Value != null)
{
strquery += "and CONVERT(VARCHAR(10),USR_Validity_date,101)='" + txtatodate.Value + "'";
}
if (txtvfrmdate.Value != "" && txtvfrmdate.Value != null)
{
strquery += "CONVERT(VARCHAR(10),USR_DateAdded,101)='" + txtvfrmdate.Value + "'";
}
if (txtvtodate.Value != "" && txtvtodate.Value != null)
{
strquery += "and CONVERT(VARCHAR(10),USR_Validity_date,101)='" + txtvtodate.Value + "'";
}
if (ddluseractivestatus.SelectedValue != "0")
{
strquery += "and USR_IsActive='" + ddluseractivestatus.SelectedValue + "'";
}
if (ddluseradded.SelectedValue != "0")
{
strquery += "and USR_IsAdmin ='" + ddluseradded.SelectedValue + "'";
}
if (ddluserservuceobtained.SelectedValue != "0")
{
strquery += "and USR_Services_Obtained ='" + ddluserservuceobtained.SelectedItem.Text + "'";
}
if (ddluserservuceobtained.SelectedIndex == 1)
{
strquery += "and USR_Exam_Count ='" + ddltspsc.SelectedItem.Text + "'";
}
if (ddluserservuceobtained.SelectedIndex == 2)
{
strquery += "and USR_Exam_Count ='" + ddlrrb.SelectedItem.Text + "'";
}
if (ddluserservuceobtained.SelectedIndex == 3) //eamcet eng
{
strquery += "and USR_Exam_Count ='" + ddltspsc.SelectedItem.Text + "'";
}
if (ddluserservuceobtained.SelectedIndex == 4) //eamcet med
{
strquery += "and USR_Exam_Count ='" + ddltspsc.SelectedItem.Text + "'";
}
if (ddlcity.SelectedValue != "0")
{
strquery += "and USR_City ='" + ddlcity.SelectedItem.Text + "'";
}
if (ddldistrict.SelectedValue != "0")
{
strquery += "and USR_District = '" + ddldistrict.SelectedItem.Text + "'";
}
if (lblexamcount.Text != "" && lblexamcount.Text != null)
{
strquery += "and USR_Exam_TotalAmount ='" + lblexamcount.Text + "'";
}
ObjSqlConnection = new SqlConnection(strcon);
ObjSqlCommand = new SqlCommand(strquery, ObjSqlConnection);
ObjSqlDataAdapter = new SqlDataAdapter(ObjSqlCommand);
ObjDataSet = new DataSet();
ObjSqlDataAdapter.Fill(ObjDataSet);
if (ObjDataSet.Tables[0].Rows.Count == 0)
{
ObjDataSet.Tables[0].Rows.Add(ObjDataSet.Tables[0].NewRow());
gvAdvSearch.DataSource = ObjDataSet;
gvAdvSearch.DataBind();
int columncount = gvAdvSearch.Rows[0].Cells.Count;
gvAdvSearch.Rows[0].Cells.Clear();
gvAdvSearch.Rows[0].Cells.Add(new TableCell());
gvAdvSearch.Rows[0].Cells[0].ColumnSpan = columncount;
gvAdvSearch.Rows[0].Cells[0].Text = "No Records Found";
//clearcontrol();
return;
}
else
{
//int count = ObjDataSet.Tables.Count;
gvAdvSearch.Visible = true;
gvAdvSearch.DataSource = ObjDataSet;
gvAdvSearch.DataBind();
lblerrormsg.Visible = false;
//clearcontrol();
return;
}
}
catch (Exception ex)
{
Response.Write("Error Message <br/> Please Select Then Get Data" + ex.Message + "");
}
}
private void clearcontrol()
{
txtafrmdate.Value = "";
txtatodate.Value = "";
txtvfrmdate.Value = "";
txtvtodate.Value = "";
ddluseractivestatus.SelectedIndex = 0;
ddluseradded.SelectedIndex = 0;
ddluserservuceobtained.SelectedIndex = 0;
ddlcity.SelectedIndex = 0;
ddldistrict.SelectedIndex = 0;
ddltspsc.Visible = false;
ddlrrb.Visible = false;
lblexamcount.Text = "";
}
public void ddluserservuceobtained_Exam(object Sender, EventArgs E)
{
if (ddluserservuceobtained.SelectedValue == "1") //TSPSC
{
ddltspsc.Visible = true;
ddlrrb.Visible = false;
}
if (ddluserservuceobtained.SelectedValue == "2") //RRB
{
ddlrrb.Visible = true;
ddltspsc.Visible = false;
}
if (ddluserservuceobtained.SelectedValue == "3") //Eamcet-ENG
{
ddltspsc.Visible = false;
ddlrrb.Visible = false;
}
if (ddluserservuceobtained.SelectedValue == "4") //Eamcet-MED
{
ddltspsc.Visible = false;
ddlrrb.Visible = false;
}
}
public void ddltspsc_Exam(object Sender, EventArgs E)
{
if (ddltspsc.SelectedIndex == 1) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(100);
}
if (ddltspsc.SelectedIndex == 2) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(300);
}
if (ddltspsc.SelectedIndex == 3) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(1000);
}
if (ddltspsc.SelectedIndex == 4) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(1800);
}
if (ddltspsc.SelectedIndex == 5) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(2400);
}
}
public void ddlrrb_Exam(object Sender, EventArgs E)
{
if (ddlrrb.SelectedIndex == 1) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(75);
}
if (ddlrrb.SelectedIndex == 2) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(300);
}
if (ddlrrb.SelectedIndex == 3) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(500);
}
if (ddlrrb.SelectedIndex == 4) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(675);
}
if (ddlrrb.SelectedIndex == 5) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(1000);
}
}
public void ddluserservuceobtained_SelectedIndex(object Sender, EventArgs E)
{
if (ddluserservuceobtained.SelectedIndex == 1) //tspsc
{
ddltspsc.Visible = true;
ddlrrb.Visible = false;
}
if (ddluserservuceobtained.SelectedIndex == 2) //rrb
{
ddlrrb.Visible = true;
ddltspsc.Visible = false;
}
if (ddluserservuceobtained.SelectedIndex == 3) //eamcet eng
{
}
if (ddluserservuceobtained.SelectedIndex == 4) //eamcet med
{
}
}
</script>
</head>
<body>
<form id="Search" name="frmSearch" runat="server" action="Search.aspx" method="post">
<input type="hidden" id="Link" name="Link" value="" />
<input type="hidden" id="hitCount" name="hitCount" />
<div id="dwindow" style="width: 100%; position: absolute; background-color: #EBEBEB;
cursor: pointer; left: 0px; top: 0px; z-index: 999; display: none" onselectstart="return false">
<div align="right" style="background-color: navy; width: 100%;">
<img src="../images/close.gif" onclick="closeit()">
</div>
<div id="dwindowcontent" style="width: 100%; height: 100%; padding-bottom: 20px;">
<iframe id="cframe" src="" width="100%" height="100%" marginwidth="0"></iframe>
</div>
</div>
<div class="online-exams-main-div">
<section class="header-top-menu-div">
<div class="container">
<div class="col-xs-12 col-sm-12 col-lg-12">
<span style="color: #fff; font-weight: 600; font-size: 1.2em; float: left;">TSPSC Group
2 Mock Exams Powered by Manabadi.com </span>
</div>
</div>
</section>
<section>
<div class="container" style="background-color: #fff; height: auto;">
<%--#include file="..\header_new_res.htm"--%>
</div>
</section>
<!---body--start--here-->
<section>
<div class="container online-exams-latestnews-div" style="background-color: #fff;
height: auto; padding-bottom: 10px;">
<div style="clear: both; height: 10px;">
</div>
<div class="col-xs-12 col-sm-5 col-lg-12">
<div class="row" style="border: 1px solid #d1d1d1; padding: 10px; border-radius: 5px;
-moz-border-radius: 5px; -ms-border-radius: 5px; -o-border-radius: 5px; -webkit-border-radius: 5px;">
<div id="Div1">
<fieldset>
<legend>Basic Search</legend>
<label>
<span style="color: #ff7100;">*</span>Key Word Search:</label>
<input type="text" id="txtsearch" runat="server" />
<br />
<br />
<asp:RadioButton ID="RadioButton1" GroupName="language" runat="server" Text="User Id" />
<asp:RadioButton ID="RadioButton2" GroupName="language" runat="server" Text="Email Id" />
<asp:RadioButton ID="RadioButton3" GroupName="language" runat="server" Text="Mobile No" />
<br />
<br />
<asp:Button ID="btnSearch" runat="server" CssClass="button" Text="Search" OnClick="btnSearch_Click" />
<asp:Label ID="lblerrormsg" runat="server" Visible="false"></asp:Label>
<br />
<br />
<asp:GridView ID="gvBasicSearch" runat="server" AutoGenerateColumns="false" Visible="false"
AllowPaging="true">
<Columns>
<asp:BoundField ItemStyle-Width="10%" DataField="USR_UserId" HeaderText="User Id"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField ItemStyle-Width="15%" DataField="USR_FirstName" HeaderText="First Name"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField ItemStyle-Width="10%" DataField="USR_LastName" HeaderText="Last Name"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField ItemStyle-Width="30%" DataField="USR_NickName" HeaderText="Nick Name"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField ItemStyle-Width="30%" DataField="USR_UserName" HeaderText="Email Id"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField ItemStyle-Width="10%" DataField="USR_MobileNo" HeaderText="Mobile No"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:TemplateField HeaderText="Select To Edit">
<ItemTemplate>
<a id="popup" href='SearchPopup.aspx?id=<%# Eval("USR_UserId") %>'>ViewDetails</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</fieldset>
<br />
<br />
<fieldset>
<legend>Advanced Search</legend>
<label>
<span style="color: #ff7100;">*</span>Added Date :
</label>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>From Date :
</label>
<input type="text" id="txtafrmdate" runat="server" />
<label>
<span style="color: #ff7100;">*</span>To Date :
</label>
<input type="text" id="txtatodate" runat="server" /><br />
<br />
<label>
<span style="color: #ff7100;">*</span>Valid Date :
</label>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>From Date :
</label>
<input type="text" id="txtvfrmdate" runat="server" />
<label>
<span style="color: #ff7100;">*</span>To Date :
</label>
<input type="text" id="txtvtodate" runat="server" />
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User Activation Status :
</label>
<asp:DropDownList ID="ddluseractivestatus" runat="server" AutoPostBack="false">
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem Value="N">Active</asp:ListItem>
<asp:ListItem Value="Y">InActive</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User Added by :
</label>
<asp:DropDownList ID="ddluseradded" runat="server" AutoPostBack="false">
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem Value="Y">Admin</asp:ListItem>
<asp:ListItem Value="N">Self</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User Service Obtained :
</label>
<asp:DropDownList ID="ddluserservuceobtained" runat="server" AutoPostBack="true"
OnSelectedIndexChanged="ddluserservuceobtained_SelectedIndex">
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem Value="TSPSC">TSPSC</asp:ListItem>
<asp:ListItem Value="RRB">RRB</asp:ListItem>
<asp:ListItem Value="EAMCET-ENG">EAMCET-ENG</asp:ListItem>
<asp:ListItem Value="EAMCET-MED">EAMCET-MED</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User City :
</label>
<asp:DropDownList ID="ddlcity" runat="server" AutoPostBack="false">
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem Value="Adilabad">Adilabad</asp:ListItem>
<asp:ListItem Value="Hyderabad">Hyderabad</asp:ListItem>
<asp:ListItem Value="Karimnagar">Karimnagar</asp:ListItem>
<asp:ListItem Value="Khammam">Khammam</asp:ListItem>
<asp:ListItem Value="Mahbubnagar">Mahbubnagar</asp:ListItem>
<asp:ListItem Value="Medak">Medak</asp:ListItem>
<asp:ListItem Value="Nalgonada">Nalgonada</asp:ListItem>
<asp:ListItem Value="Nizamabad">Nizamabad</asp:ListItem>
<asp:ListItem Value="Ranga Reddy">Ranga Reddy</asp:ListItem>
<asp:ListItem Value="Mahbubnagar">Mahbubnagar</asp:ListItem>
<asp:ListItem Value="Warangal">Warangal</asp:ListItem>
<asp:ListItem Value="Ananthapur">Ananthapur</asp:ListItem>
<asp:ListItem Value="Chittor">Chittor</asp:ListItem>
<asp:ListItem Value="East Godawari">East Godawari</asp:ListItem>
<asp:ListItem Value="Guntur">Guntur</asp:ListItem>
<asp:ListItem Value="Kadapa">Kadapa</asp:ListItem>
<asp:ListItem Value="Karnool">Karnool</asp:ListItem>
<asp:ListItem Value="Krishna">Krishna</asp:ListItem>
<asp:ListItem Value="Nellore">Nellore</asp:ListItem>
<asp:ListItem Value="Prakasam">Prakasam</asp:ListItem>
<asp:ListItem Value="Srikakulam">Srikakulam</asp:ListItem>
<asp:ListItem Value="Visakhapatnam">Visakhapatnam</asp:ListItem>
<asp:ListItem Value="Vijayanagaram">Vijayanagaram</asp:ListItem>
<asp:ListItem Value="West Godavari">West Godavari</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User District :
</label>
<asp:DropDownList ID="ddldistrict" runat="server" AutoPostBack="false">
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem Value="Adilabad">Adilabad</asp:ListItem>
<asp:ListItem Value="Hyderabad">Hyderabad</asp:ListItem>
<asp:ListItem Value="Karimnagar">Karimnagar</asp:ListItem>
<asp:ListItem Value="Khammam">Khammam</asp:ListItem>
<asp:ListItem Value="Mahbubnagar">Mahbubnagar</asp:ListItem>
<asp:ListItem Value="Medak">Medak</asp:ListItem>
<asp:ListItem Value="Nalgonada">Nalgonada</asp:ListItem>
<asp:ListItem Value="Nizamabad">Nizamabad</asp:ListItem>
<asp:ListItem Value="Ranga Reddy">Ranga Reddy</asp:ListItem>
<asp:ListItem Value="Mahbubnagar">Mahbubnagar</asp:ListItem>
<asp:ListItem Value="Warangal">Warangal</asp:ListItem>
<asp:ListItem Value="Ananthapur">Ananthapur</asp:ListItem>
<asp:ListItem Value="Chittor">Chittor</asp:ListItem>
<asp:ListItem Value="East Godawari">East Godawari</asp:ListItem>
<asp:ListItem Value="Guntur">Guntur</asp:ListItem>
<asp:ListItem Value="Kadapa">Kadapa</asp:ListItem>
<asp:ListItem Value="Karnool">Karnool</asp:ListItem>
<asp:ListItem Value="Krishna">Krishna</asp:ListItem>
<asp:ListItem Value="Nellore">Nellore</asp:ListItem>
<asp:ListItem Value="Prakasam">Prakasam</asp:ListItem>
<asp:ListItem Value="Srikakulam">Srikakulam</asp:ListItem>
<asp:ListItem Value="Visakhapatnam">Visakhapatnam</asp:ListItem>
<asp:ListItem Value="Vijayanagaram">Vijayanagaram</asp:ListItem>
<asp:ListItem Value="West Godavari">West Godavari</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User Exams Amount:</label>
<asp:DropDownList ID="ddltspsc" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddltspsc_Exam"
Visible="false">
<asp:ListItem Value="0">--Select TSPSC--</asp:ListItem>
<asp:ListItem Value="100">1</asp:ListItem>
<asp:ListItem Value="300">4</asp:ListItem>
<asp:ListItem Value="1000">20</asp:ListItem>
<asp:ListItem Value="1800">40</asp:ListItem>
<asp:ListItem Value="2400">60</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlrrb" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlrrb_Exam"
Visible="false">
<asp:ListItem Value="0">--Select RRB--</asp:ListItem>
<asp:ListItem Value="75">1</asp:ListItem>
<asp:ListItem Value="300">5</asp:ListItem>
<asp:ListItem Value="500">10</asp:ListItem>
<asp:ListItem Value="675">15</asp:ListItem>
<asp:ListItem Value="1000">25</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>Total Exams Count:</label>
<asp:Label ID="lblexamcount" runat="server" Visible="false"></asp:Label>
<br />
<br />
<br />
<asp:Button ID="btnAdvSearch" runat="server" CssClass="button" Text="Advanced Search"
OnClick="btnAdvSearch_Click" />
<br />
<br />
<asp:GridView ID="gvAdvSearch" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="USR_UserId" HeaderText="User Id" Visible="false" />
<asp:BoundField DataField="USR_UserName" HeaderText="User Name" />
<asp:BoundField DataField="USR_FirstName" HeaderText="First Name" />
<asp:BoundField DataField="USR_LastName" HeaderText="Last Name" />
<asp:BoundField DataField="USR_NickName" HeaderText="Nick Name" />
<asp:BoundField DataField="USR_UserName" HeaderText="Email Id" />
<asp:BoundField DataField="USR_MobileNo" HeaderText="Mobile No" />
<asp:TemplateField HeaderText="Select To Edit">
<ItemTemplate>
<a id="popup" href='AdvSearchPopup.aspx?id=<%# Eval("USR_UserId") %>'>ViewDetails</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</fieldset>
</div>
</div>
</div>
</div>
</div>
</section>
<!---body--end--here-->
<!---footer--start--here-->
<section class="online-xams-footer-mandiv">
<%--#include file="..\footer_res.htm"
<%-- <div>All Copy Rights are Reserved by www.manabadi.com 2015</div>--%>
</section>
</div>
</form>
</body>
</html>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="System.Net" %>
<%@ Import Namespace="System.Net.Mail" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Configuration" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Online Examinations Registration | Manabadi.com</title>
<link href="../css/onlineexam.css" type="text/css" rel="stylesheet" />
<link href="../Online-Exams/css/online-exams-bootstrap.css" rel="stylesheet" type="text/css" />
<link href="../Online-Exams/css/online-exams-main.css" rel="stylesheet" type="text/css" />
<link href="../Online-Exams/css/online-exams-menu.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" />
<link type="text/css" rel="Stylesheet" href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.6/themes/smoothness/jquery-ui.css">
<script src="Jscript/jquery-1.10.2.js" type="text/javascript"></script>
<script src="Jscript/jquery.min.js" type="text/javascript"></script>
<script src="Jscript/jquery-ui.js" type="text/javascript"></script>
<%-- <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>--%>
<script type="text/javascript">
$(document).ready(function () {
$('a#popup').live('click', function (e) {
//debugger;
var page = $(this).attr("href") //get url of link
var $dialog = $('<div></div>')
.html('<iframe style="border: 0px; " src="' + page + '" width="100%" height="100%"></iframe>')
.dialog({
autoOpen: false,
modal: true,
height: 500,
width: 600,
title: "View Customer Details",
buttons: {
"Close": function () { $dialog.dialog('close'); }
},
close: function (event, ui) {
}
});
$dialog.dialog('open');
e.preventDefault();
});
// $('#slider').cycle({
// fx: 'scrollHorz',
// speed: 600,
// timeout: 3000,
// next: '#next',
// prev: '#prev'
// });
$("#txtafrmdate").datepicker({ dateFormat: 'mm/dd/yy ' }).val();
$("#txtatodate").datepicker({ dateFormat: 'mm/dd/yy ' }).val();
$("#txtvfrmdate").datepicker({ dateFormat: 'mm/dd/yy ' }).val();
$("#txtvtodate").datepicker({ dateFormat: 'mm/dd/yy ' }).val();
});
</script>
<script runat="server">
SqlCommand ObjSqlCommand;
SqlConnection ObjSqlConnection;
SqlDataAdapter ObjSqlDataAdapter;
DataSet ObjDataSet;
string strcon = ConfigurationManager.ConnectionStrings["Scon"].ConnectionString;
string year, month, date, HH, MM, SS, strAccessCode = string.Empty;
int strkeyword = 0;
Int64 mob = 0;
bool IsIntOrNot = false;
public void Page_Load(object Sender, EventArgs E)
{
//lblexamcount.Visible = false;
//ddltspsc.Visible = false;
//ddlrrb.Visible = false;
}
public void btnSearch_Click(object Sender, EventArgs E)
{
try
{
string strquery = string.Empty;
if (RadioButton1.Checked == true) //this is user Id
{
if (!string.IsNullOrEmpty(txtsearch.Value))
{
if (txtsearch.Value.Trim().Length < 10)
{
IsIntOrNot = int.TryParse(txtsearch.Value, out strkeyword);
if (IsIntOrNot)
{
strquery = "select USR_UserId, USR_FirstName,USR_LastName,USR_NickName,USR_UserName,USR_MobileNo from mbd_UserRegistation where USR_UserId=" + txtsearch.Value + "";
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter Correct User Id";
}
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter Correct User Id";
}
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter value for Search criteria";
}
}
else if (RadioButton2.Checked == true) //this is email Id
{
if (!string.IsNullOrEmpty(txtsearch.Value))
{
IsIntOrNot = int.TryParse(txtsearch.Value, out strkeyword);
if (IsIntOrNot)
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter Correct value";
}
else
{
//Check Email Id is valid
if (IsValidEmailId(txtsearch.Value))
{
//logic pattern
strquery = "select USR_UserId, USR_FirstName,USR_LastName,USR_NickName,USR_UserName,USR_MobileNo from mbd_UserRegistation where USR_UserName=" + txtsearch.Value + "";
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter Correct Email Id"; //txtsearch.Value + " is not valid email";
}
}
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter value for Search criteria";
}
}
else if (RadioButton3.Checked == true) //this is mobile no
{
if (!string.IsNullOrEmpty(txtsearch.Value))
{
if (txtsearch.Value.Trim().Length == 10)
{
//logic pattern
strquery = "select USR_UserId, USR_FirstName,USR_LastName,USR_NickName,USR_UserName,USR_MobileNo from mbd_UserRegistation where USR_MobileNo=" + txtsearch.Value + "";
}
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Enter Correct Mobile No";
}
}
else
{
gvBasicSearch.Visible = false;
lblerrormsg.Visible = true;
lblerrormsg.Text = "Select Key word";
return;
}
ObjSqlConnection = new SqlConnection(strcon);
ObjSqlCommand = new SqlCommand(strquery, ObjSqlConnection);
ObjSqlDataAdapter = new SqlDataAdapter(ObjSqlCommand);
ObjDataSet = new DataSet();
ObjSqlDataAdapter.Fill(ObjDataSet);
if (ObjDataSet.Tables[0].Rows.Count == 0)
{
ObjDataSet.Tables[0].Rows.Add(ObjDataSet.Tables[0].NewRow());
gvBasicSearch.DataSource = ObjDataSet;
gvBasicSearch.DataBind();
int columncount = gvBasicSearch.Rows[0].Cells.Count;
gvBasicSearch.Rows[0].Cells.Clear();
gvBasicSearch.Rows[0].Cells.Add(new TableCell());
gvBasicSearch.Rows[0].Cells[0].ColumnSpan = columncount;
gvBasicSearch.Rows[0].Cells[0].Text = "No Records Found";
//clearcontrol();
return;
}
else
{
//int count = ObjDataSet.Tables.Count;
gvBasicSearch.Visible = true;
gvBasicSearch.DataSource = ObjDataSet;
gvBasicSearch.DataBind();
lblerrormsg.Visible = false;
//clearcontrol();
return;
}
}
catch (Exception ex)
{
Response.Write("Error Message <br/> " + ex.Message + "");
}
}
private bool IsValidEmailId(string InputEmail)
{
//Regex To validate Email Address
Regex regex = new Regex(@"^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$");
Match match = regex.Match(InputEmail);
if (match.Success)
return true;
else
return false;
}
public void btnAdvSearch_Click(object Sender, EventArgs E)
{
try
{
ObjSqlConnection = new SqlConnection(strcon);
string strquery = "select USR_UserId, USR_FirstName,USR_LastName,USR_NickName,USR_UserName,USR_MobileNo from mbd_UserRegistation where ";
if (txtafrmdate.Value != "" && txtafrmdate.Value != null)
{
strquery += "CONVERT(varchar(10),USR_DateAdded,101)='" + txtafrmdate.Value + "'";
}
if (txtatodate.Value != "" && txtatodate.Value != null)
{
strquery += "and CONVERT(VARCHAR(10),USR_Validity_date,101)='" + txtatodate.Value + "'";
}
if (txtvfrmdate.Value != "" && txtvfrmdate.Value != null)
{
strquery += "CONVERT(VARCHAR(10),USR_DateAdded,101)='" + txtvfrmdate.Value + "'";
}
if (txtvtodate.Value != "" && txtvtodate.Value != null)
{
strquery += "and CONVERT(VARCHAR(10),USR_Validity_date,101)='" + txtvtodate.Value + "'";
}
if (ddluseractivestatus.SelectedValue != "0")
{
strquery += "and USR_IsActive='" + ddluseractivestatus.SelectedValue + "'";
}
if (ddluseradded.SelectedValue != "0")
{
strquery += "and USR_IsAdmin ='" + ddluseradded.SelectedValue + "'";
}
if (ddluserservuceobtained.SelectedValue != "0")
{
strquery += "and USR_Services_Obtained ='" + ddluserservuceobtained.SelectedItem.Text + "'";
}
if (ddluserservuceobtained.SelectedIndex == 1)
{
strquery += "and USR_Exam_Count ='" + ddltspsc.SelectedItem.Text + "'";
}
if (ddluserservuceobtained.SelectedIndex == 2)
{
strquery += "and USR_Exam_Count ='" + ddlrrb.SelectedItem.Text + "'";
}
if (ddluserservuceobtained.SelectedIndex == 3) //eamcet eng
{
strquery += "and USR_Exam_Count ='" + ddltspsc.SelectedItem.Text + "'";
}
if (ddluserservuceobtained.SelectedIndex == 4) //eamcet med
{
strquery += "and USR_Exam_Count ='" + ddltspsc.SelectedItem.Text + "'";
}
if (ddlcity.SelectedValue != "0")
{
strquery += "and USR_City ='" + ddlcity.SelectedItem.Text + "'";
}
if (ddldistrict.SelectedValue != "0")
{
strquery += "and USR_District = '" + ddldistrict.SelectedItem.Text + "'";
}
if (lblexamcount.Text != "" && lblexamcount.Text != null)
{
strquery += "and USR_Exam_TotalAmount ='" + lblexamcount.Text + "'";
}
ObjSqlConnection = new SqlConnection(strcon);
ObjSqlCommand = new SqlCommand(strquery, ObjSqlConnection);
ObjSqlDataAdapter = new SqlDataAdapter(ObjSqlCommand);
ObjDataSet = new DataSet();
ObjSqlDataAdapter.Fill(ObjDataSet);
if (ObjDataSet.Tables[0].Rows.Count == 0)
{
ObjDataSet.Tables[0].Rows.Add(ObjDataSet.Tables[0].NewRow());
gvAdvSearch.DataSource = ObjDataSet;
gvAdvSearch.DataBind();
int columncount = gvAdvSearch.Rows[0].Cells.Count;
gvAdvSearch.Rows[0].Cells.Clear();
gvAdvSearch.Rows[0].Cells.Add(new TableCell());
gvAdvSearch.Rows[0].Cells[0].ColumnSpan = columncount;
gvAdvSearch.Rows[0].Cells[0].Text = "No Records Found";
//clearcontrol();
return;
}
else
{
//int count = ObjDataSet.Tables.Count;
gvAdvSearch.Visible = true;
gvAdvSearch.DataSource = ObjDataSet;
gvAdvSearch.DataBind();
lblerrormsg.Visible = false;
//clearcontrol();
return;
}
}
catch (Exception ex)
{
Response.Write("Error Message <br/> Please Select Then Get Data" + ex.Message + "");
}
}
private void clearcontrol()
{
txtafrmdate.Value = "";
txtatodate.Value = "";
txtvfrmdate.Value = "";
txtvtodate.Value = "";
ddluseractivestatus.SelectedIndex = 0;
ddluseradded.SelectedIndex = 0;
ddluserservuceobtained.SelectedIndex = 0;
ddlcity.SelectedIndex = 0;
ddldistrict.SelectedIndex = 0;
ddltspsc.Visible = false;
ddlrrb.Visible = false;
lblexamcount.Text = "";
}
public void ddluserservuceobtained_Exam(object Sender, EventArgs E)
{
if (ddluserservuceobtained.SelectedValue == "1") //TSPSC
{
ddltspsc.Visible = true;
ddlrrb.Visible = false;
}
if (ddluserservuceobtained.SelectedValue == "2") //RRB
{
ddlrrb.Visible = true;
ddltspsc.Visible = false;
}
if (ddluserservuceobtained.SelectedValue == "3") //Eamcet-ENG
{
ddltspsc.Visible = false;
ddlrrb.Visible = false;
}
if (ddluserservuceobtained.SelectedValue == "4") //Eamcet-MED
{
ddltspsc.Visible = false;
ddlrrb.Visible = false;
}
}
public void ddltspsc_Exam(object Sender, EventArgs E)
{
if (ddltspsc.SelectedIndex == 1) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(100);
}
if (ddltspsc.SelectedIndex == 2) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(300);
}
if (ddltspsc.SelectedIndex == 3) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(1000);
}
if (ddltspsc.SelectedIndex == 4) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(1800);
}
if (ddltspsc.SelectedIndex == 5) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(2400);
}
}
public void ddlrrb_Exam(object Sender, EventArgs E)
{
if (ddlrrb.SelectedIndex == 1) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(75);
}
if (ddlrrb.SelectedIndex == 2) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(300);
}
if (ddlrrb.SelectedIndex == 3) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(500);
}
if (ddlrrb.SelectedIndex == 4) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(675);
}
if (ddlrrb.SelectedIndex == 5) //TSPSC
{
lblexamcount.Visible = true;
lblexamcount.Text = Convert.ToString(1000);
}
}
public void ddluserservuceobtained_SelectedIndex(object Sender, EventArgs E)
{
if (ddluserservuceobtained.SelectedIndex == 1) //tspsc
{
ddltspsc.Visible = true;
ddlrrb.Visible = false;
}
if (ddluserservuceobtained.SelectedIndex == 2) //rrb
{
ddlrrb.Visible = true;
ddltspsc.Visible = false;
}
if (ddluserservuceobtained.SelectedIndex == 3) //eamcet eng
{
}
if (ddluserservuceobtained.SelectedIndex == 4) //eamcet med
{
}
}
</script>
</head>
<body>
<form id="Search" name="frmSearch" runat="server" action="Search.aspx" method="post">
<input type="hidden" id="Link" name="Link" value="" />
<input type="hidden" id="hitCount" name="hitCount" />
<div id="dwindow" style="width: 100%; position: absolute; background-color: #EBEBEB;
cursor: pointer; left: 0px; top: 0px; z-index: 999; display: none" onselectstart="return false">
<div align="right" style="background-color: navy; width: 100%;">
<img src="../images/close.gif" onclick="closeit()">
</div>
<div id="dwindowcontent" style="width: 100%; height: 100%; padding-bottom: 20px;">
<iframe id="cframe" src="" width="100%" height="100%" marginwidth="0"></iframe>
</div>
</div>
<div class="online-exams-main-div">
<section class="header-top-menu-div">
<div class="container">
<div class="col-xs-12 col-sm-12 col-lg-12">
<span style="color: #fff; font-weight: 600; font-size: 1.2em; float: left;">TSPSC Group
2 Mock Exams Powered by Manabadi.com </span>
</div>
</div>
</section>
<section>
<div class="container" style="background-color: #fff; height: auto;">
<%--#include file="..\header_new_res.htm"--%>
</div>
</section>
<!---body--start--here-->
<section>
<div class="container online-exams-latestnews-div" style="background-color: #fff;
height: auto; padding-bottom: 10px;">
<div style="clear: both; height: 10px;">
</div>
<div class="col-xs-12 col-sm-5 col-lg-12">
<div class="row" style="border: 1px solid #d1d1d1; padding: 10px; border-radius: 5px;
-moz-border-radius: 5px; -ms-border-radius: 5px; -o-border-radius: 5px; -webkit-border-radius: 5px;">
<div id="Div1">
<fieldset>
<legend>Basic Search</legend>
<label>
<span style="color: #ff7100;">*</span>Key Word Search:</label>
<input type="text" id="txtsearch" runat="server" />
<br />
<br />
<asp:RadioButton ID="RadioButton1" GroupName="language" runat="server" Text="User Id" />
<asp:RadioButton ID="RadioButton2" GroupName="language" runat="server" Text="Email Id" />
<asp:RadioButton ID="RadioButton3" GroupName="language" runat="server" Text="Mobile No" />
<br />
<br />
<asp:Button ID="btnSearch" runat="server" CssClass="button" Text="Search" OnClick="btnSearch_Click" />
<asp:Label ID="lblerrormsg" runat="server" Visible="false"></asp:Label>
<br />
<br />
<asp:GridView ID="gvBasicSearch" runat="server" AutoGenerateColumns="false" Visible="false"
AllowPaging="true">
<Columns>
<asp:BoundField ItemStyle-Width="10%" DataField="USR_UserId" HeaderText="User Id"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField ItemStyle-Width="15%" DataField="USR_FirstName" HeaderText="First Name"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField ItemStyle-Width="10%" DataField="USR_LastName" HeaderText="Last Name"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField ItemStyle-Width="30%" DataField="USR_NickName" HeaderText="Nick Name"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField ItemStyle-Width="30%" DataField="USR_UserName" HeaderText="Email Id"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField ItemStyle-Width="10%" DataField="USR_MobileNo" HeaderText="Mobile No"
ItemStyle-BorderWidth="0px" ItemStyle-HorizontalAlign="Center" />
<asp:TemplateField HeaderText="Select To Edit">
<ItemTemplate>
<a id="popup" href='SearchPopup.aspx?id=<%# Eval("USR_UserId") %>'>ViewDetails</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</fieldset>
<br />
<br />
<fieldset>
<legend>Advanced Search</legend>
<label>
<span style="color: #ff7100;">*</span>Added Date :
</label>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>From Date :
</label>
<input type="text" id="txtafrmdate" runat="server" />
<label>
<span style="color: #ff7100;">*</span>To Date :
</label>
<input type="text" id="txtatodate" runat="server" /><br />
<br />
<label>
<span style="color: #ff7100;">*</span>Valid Date :
</label>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>From Date :
</label>
<input type="text" id="txtvfrmdate" runat="server" />
<label>
<span style="color: #ff7100;">*</span>To Date :
</label>
<input type="text" id="txtvtodate" runat="server" />
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User Activation Status :
</label>
<asp:DropDownList ID="ddluseractivestatus" runat="server" AutoPostBack="false">
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem Value="N">Active</asp:ListItem>
<asp:ListItem Value="Y">InActive</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User Added by :
</label>
<asp:DropDownList ID="ddluseradded" runat="server" AutoPostBack="false">
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem Value="Y">Admin</asp:ListItem>
<asp:ListItem Value="N">Self</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User Service Obtained :
</label>
<asp:DropDownList ID="ddluserservuceobtained" runat="server" AutoPostBack="true"
OnSelectedIndexChanged="ddluserservuceobtained_SelectedIndex">
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem Value="TSPSC">TSPSC</asp:ListItem>
<asp:ListItem Value="RRB">RRB</asp:ListItem>
<asp:ListItem Value="EAMCET-ENG">EAMCET-ENG</asp:ListItem>
<asp:ListItem Value="EAMCET-MED">EAMCET-MED</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User City :
</label>
<asp:DropDownList ID="ddlcity" runat="server" AutoPostBack="false">
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem Value="Adilabad">Adilabad</asp:ListItem>
<asp:ListItem Value="Hyderabad">Hyderabad</asp:ListItem>
<asp:ListItem Value="Karimnagar">Karimnagar</asp:ListItem>
<asp:ListItem Value="Khammam">Khammam</asp:ListItem>
<asp:ListItem Value="Mahbubnagar">Mahbubnagar</asp:ListItem>
<asp:ListItem Value="Medak">Medak</asp:ListItem>
<asp:ListItem Value="Nalgonada">Nalgonada</asp:ListItem>
<asp:ListItem Value="Nizamabad">Nizamabad</asp:ListItem>
<asp:ListItem Value="Ranga Reddy">Ranga Reddy</asp:ListItem>
<asp:ListItem Value="Mahbubnagar">Mahbubnagar</asp:ListItem>
<asp:ListItem Value="Warangal">Warangal</asp:ListItem>
<asp:ListItem Value="Ananthapur">Ananthapur</asp:ListItem>
<asp:ListItem Value="Chittor">Chittor</asp:ListItem>
<asp:ListItem Value="East Godawari">East Godawari</asp:ListItem>
<asp:ListItem Value="Guntur">Guntur</asp:ListItem>
<asp:ListItem Value="Kadapa">Kadapa</asp:ListItem>
<asp:ListItem Value="Karnool">Karnool</asp:ListItem>
<asp:ListItem Value="Krishna">Krishna</asp:ListItem>
<asp:ListItem Value="Nellore">Nellore</asp:ListItem>
<asp:ListItem Value="Prakasam">Prakasam</asp:ListItem>
<asp:ListItem Value="Srikakulam">Srikakulam</asp:ListItem>
<asp:ListItem Value="Visakhapatnam">Visakhapatnam</asp:ListItem>
<asp:ListItem Value="Vijayanagaram">Vijayanagaram</asp:ListItem>
<asp:ListItem Value="West Godavari">West Godavari</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User District :
</label>
<asp:DropDownList ID="ddldistrict" runat="server" AutoPostBack="false">
<asp:ListItem Value="0">--select--</asp:ListItem>
<asp:ListItem Value="Adilabad">Adilabad</asp:ListItem>
<asp:ListItem Value="Hyderabad">Hyderabad</asp:ListItem>
<asp:ListItem Value="Karimnagar">Karimnagar</asp:ListItem>
<asp:ListItem Value="Khammam">Khammam</asp:ListItem>
<asp:ListItem Value="Mahbubnagar">Mahbubnagar</asp:ListItem>
<asp:ListItem Value="Medak">Medak</asp:ListItem>
<asp:ListItem Value="Nalgonada">Nalgonada</asp:ListItem>
<asp:ListItem Value="Nizamabad">Nizamabad</asp:ListItem>
<asp:ListItem Value="Ranga Reddy">Ranga Reddy</asp:ListItem>
<asp:ListItem Value="Mahbubnagar">Mahbubnagar</asp:ListItem>
<asp:ListItem Value="Warangal">Warangal</asp:ListItem>
<asp:ListItem Value="Ananthapur">Ananthapur</asp:ListItem>
<asp:ListItem Value="Chittor">Chittor</asp:ListItem>
<asp:ListItem Value="East Godawari">East Godawari</asp:ListItem>
<asp:ListItem Value="Guntur">Guntur</asp:ListItem>
<asp:ListItem Value="Kadapa">Kadapa</asp:ListItem>
<asp:ListItem Value="Karnool">Karnool</asp:ListItem>
<asp:ListItem Value="Krishna">Krishna</asp:ListItem>
<asp:ListItem Value="Nellore">Nellore</asp:ListItem>
<asp:ListItem Value="Prakasam">Prakasam</asp:ListItem>
<asp:ListItem Value="Srikakulam">Srikakulam</asp:ListItem>
<asp:ListItem Value="Visakhapatnam">Visakhapatnam</asp:ListItem>
<asp:ListItem Value="Vijayanagaram">Vijayanagaram</asp:ListItem>
<asp:ListItem Value="West Godavari">West Godavari</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>User Exams Amount:</label>
<asp:DropDownList ID="ddltspsc" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddltspsc_Exam"
Visible="false">
<asp:ListItem Value="0">--Select TSPSC--</asp:ListItem>
<asp:ListItem Value="100">1</asp:ListItem>
<asp:ListItem Value="300">4</asp:ListItem>
<asp:ListItem Value="1000">20</asp:ListItem>
<asp:ListItem Value="1800">40</asp:ListItem>
<asp:ListItem Value="2400">60</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlrrb" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlrrb_Exam"
Visible="false">
<asp:ListItem Value="0">--Select RRB--</asp:ListItem>
<asp:ListItem Value="75">1</asp:ListItem>
<asp:ListItem Value="300">5</asp:ListItem>
<asp:ListItem Value="500">10</asp:ListItem>
<asp:ListItem Value="675">15</asp:ListItem>
<asp:ListItem Value="1000">25</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<label>
<span style="color: #ff7100;">*</span>Total Exams Count:</label>
<asp:Label ID="lblexamcount" runat="server" Visible="false"></asp:Label>
<br />
<br />
<br />
<asp:Button ID="btnAdvSearch" runat="server" CssClass="button" Text="Advanced Search"
OnClick="btnAdvSearch_Click" />
<br />
<br />
<asp:GridView ID="gvAdvSearch" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="USR_UserId" HeaderText="User Id" Visible="false" />
<asp:BoundField DataField="USR_UserName" HeaderText="User Name" />
<asp:BoundField DataField="USR_FirstName" HeaderText="First Name" />
<asp:BoundField DataField="USR_LastName" HeaderText="Last Name" />
<asp:BoundField DataField="USR_NickName" HeaderText="Nick Name" />
<asp:BoundField DataField="USR_UserName" HeaderText="Email Id" />
<asp:BoundField DataField="USR_MobileNo" HeaderText="Mobile No" />
<asp:TemplateField HeaderText="Select To Edit">
<ItemTemplate>
<a id="popup" href='AdvSearchPopup.aspx?id=<%# Eval("USR_UserId") %>'>ViewDetails</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</fieldset>
</div>
</div>
</div>
</div>
</div>
</section>
<!---body--end--here-->
<!---footer--start--here-->
<section class="online-xams-footer-mandiv">
<%--#include file="..\footer_res.htm"
<%-- <div>All Copy Rights are Reserved by www.manabadi.com 2015</div>--%>
</section>
</div>
</form>
</body>
</html>
No comments:
Post a Comment
Hello all, if you have any doubt feel free comment