Академический Документы
Профессиональный Документы
Культура Документы
Yellow Page
Under the guidance of: - Shri Nishad Ahemad
Submitted By
An advantage of Electronic Yellow Pages is that they can be updated in real time;
therefore, listed businesses are not constrained by once-a-year publishing of the
printed version which leads to greater accuracy of the listings since contact
information may change at any time.
Before the popularity of the internet, business telephone numbers in the United
Kingdom could be searched by accessing a remote computer terminal by modem.
This dialup service was discontinued (as was a similar system called Phonebase for
published residential phone numbers) in the 1990s, being superseded a web-based
search interface.Behind the starting of Yellow Pages, there is a very holy thought
that Yellow Pages will be one-stop resources box for the sellers and exporters,
looking for the yellow pages listing or buyers are looking for the sellers at the same
time.
Yellow Pages is a free yellow pages directory where buyers & sellers meets all to
gather under a single roof and get benefits of these yellow pages free listings at
Pages.
Yellow Pages is an old name on the web and is very popular among the internet
visitors. Buyers are invited to search for the shops and services or anything they
want to search in India. Yellow Pages offers free yellow pages listings for the
sellers, distributors, manufacturers, and other service providers. We have a vision to
see all buyers & sellers here and enjoy the free Yellow Pages listings.
OVERVIEW
The Application is a working demonstration of how to use blueprints principles in a
real application design. This document is a guide to the design and the
implementation of the application Enterprise Application with web technology.
Each release of the application maintains consistent design features such as
separating logic and presentation, using web components, and so on. High-level
design features, this document goes deeper into the implementation details of the
current application release.
This document is provided as a resource so that it may be continually extended
and updated. This document begins with a description of the separate applications
that the sample application comprises, describes the modular structure of the
Yellow Pages application, and provides as in depth description of several pieces of
the modules.
OBJECTIVE
Main objective for the creation of this project is to develop a web site for serch
engine . Display location of shops with their descriptions to the visitors; show the
details of the shops from the web site.
Today Internet is widely used in the World for Business, Education, Shopping,
Entertainment and much more.
More commonly, our site is associated with the searching and uploading their
information via computer networks today that makes up the Information
superhighway. After some years we may not think any business that is not related
to the Internet. Today very large part of the business is done through the Internet.
Here I am creating a web site that provides facility to search, select and upload
their business information online and also give detail about business that are
registered in my site.
PROJECT CATEGORY
Yellow Pages is an “RDBMS Web based project”
It Uses SQL SERVER 2005 as a RDBMS package for managing database online
it also uses OOP features of C# programming language with ASP.NET, with
technology of .NET FRAMEWORK
PROBLEM DEFINITION
There was many problems in existing newspaper classified like to search the detail
of shops from classified add It was time taking and boring. It will make life easy to
search and display location of shops with their descriptions to the visitors; show
the details of the shops from the web site.
ANALYSIS
The analysis audience of this document includes the customer, the staff of our
coaching. All significant requirements related to the functionality, performance and
other factors are covered by this document. Before requirements can be analyses
modeled and specific they are gathered trough a questionnaires process. Context
free question were asked to the management people
TOOLS AND ENVIRONMENT NEEDED
SOFTWARE
HARDWARE
1- Monitor.
2- Celeron 2.5GHz , 512 MB RAM
3- Keyboard
4- 4 GB(free space) Hard Disk
DFD,S
&
E-R DIGRAM
DFD
The Data flow Diagram shows the flow of data. It is generally made of symbols given
below:
User
YELLOW
PAGES
Admin
FIGURE 1
DFD’S
Yellow
USER
ADD BUISINESS
Pages USER
Register Business
Sugges
tion User Master
Admin
Create Admin
New Interface
Login
User Detail
BUSINESS
DATA BASE
SEARCH
TABLE
BUSINESS
USER REGISTER
REGISTRATO
N
USER
DATABASE
S_Nam
S_Id
e
Country
R_Id R_Name
Ct_Name Ct_Id
C_Name
Role C_Id Belong
to
City
U_Id Phone
Hav
e
User Do
User Registration
Email
user Service
id id
DOB
compan Password
y name Age
User ha
Busines s
Give
Suggetion messege
Business
type id id Service master
Date
Type Sugge.
Type id name Service id
Servic Servic
id e e Sugge. name
id
name
Business type
master
Com
Com_Id Date
name
Number of Modules
• Login Module.
• User Module.
• Administrator Module
• Searching Module.
Login Module
• When any one opens the website Login Control will appear in the First Page.
• Login Control will check the user type and redirect the user in business registration
page.
• There will be also an option for recovering forgotten password for the user.
User Module
• In the user module user can add, update, delete their profile as well as business
profile.
Searching Module
• User can search information using business type and service type.
• User can search information using business type and service type state.
• User can search information using business type and service type state and city.
PROCESS LOGIC
• LOGIN MODULE
• Put Username and Password.
• Creates new business.
• Recover Forgotten Password.
• USER MODULE
• Add/Edit/Remove Business profile
• Edit user profile
• ADMINISTRATOR MODULE
• Reference Site :
• www.delhi-delhi.com
• www.sulekha.com
METHODOLOGY
critical value adding process that improves the probability of project success.
Our Project Methodology
requirements
and functionality
Screen Layout
Login Page
Main Page
Search By City Page
Registration Page
Administrator Page
Edit User Page
Edit Business Page
Admin Profile Page
Edit Profile Page
User Important Contact Page
Change Password Page
Add New Business Page
Coding
Code for Admin.aspx
<%@ Page Language="C#" MasterPageFile="~/admin/AdminMasterPage.master"
AutoEventWireup="true" CodeFile="Admin.aspx.cs" Inherits="admin_Admin"
Title="Untitled Page" %>
<br />
</td>
<td valign="top" align="center">
<asp:Panel ID="Panel3" runat="server"
BorderColor="#990000"
BorderStyle="Groove" BorderWidth="1px">
<span class="Apple-style-span"
style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-
variant: normal; font-weight: normal; letter-spacing: normal; line-height:
22px; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-
spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-
in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; ">
<span class="Apple-style-span"
style="color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif;
font-size: 12px; line-height: 16px; ">
<h3 class="componentHead"
style="margin-top: 0px; margin-
right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-
right: 0px; padding-bottom: 5px; padding-left: 0px; line-height: 1.4em; font-
size: 1.2em; color: rgb(44, 133, 0); font: normal normal normal 1.6em/normal
tahoma; letter-spacing: 0.05em; ">
Help Center</h3>
<p
</asp:Content>
}
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style6
{
color: #000000;
}
.style7
{
height: 40px;
}
.style8
{
height: 40px;
font-weight: bold;
font-size: x-large;
}
</style>
</head>
<body background="../images/bg.jpg">
<form id="admin" runat="server">
<center>
<table width="75%" border='0' cellspacing='0' style="background-
color:White">
<tr>
<td colspan="2">
<uc1:AdminHeader ID="AdminHeader1" runat="server" />
</td>
</tr>
<tr>
<td style="font-family: Verdana" align="center" valign="middle"
width="70%"
bgcolor="Green" class="style8">
ADMINISTATOR PAGE</td>
<span
</tr>
<tr>
<td colspan="2" width="100%">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</td>
<td width="60%">
<a href="../businessregisteration.aspx">
<asp:Image ID="Image1" runat="server"
ImageUrl="~/images/claim_business.gif" />
</a>
</td>
<td align="center">
</td>
</tr>
</table>
<br />
<table width="75%" >
<tr>
<td align="center" colspan="3">
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-
family: 'Times New Roman'; font-style: normal; font-variant: normal; font-
weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-
align: auto; text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-
border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size:
medium; ">
<span class="Apple-style-span"
style="font-family: arial, helvetica, clean, sans-serif; font-
size: 11px; line-height: 13px; text-align: center; ">
© 2010 Copyright INFOINDIA.com, All Rights Reserved.<span
class="Apple-converted-space"> </span><a
href="../Help.aspx"
style="cursor: pointer; color: rgb(8, 84, 166); text-
decoration: none !important; ">help</a><span class="Apple-converted-
space"> </span>|<span
class="Apple-converted-space"> </span><a
href="../AboutUs.aspx"
style="cursor: pointer; color: rgb(33, 74, 117); text-
decoration: underline !important; ">About Us</a></span></span></td>
</tr>
</table>
</center>
</form>
</body>
</html>
}
protected void LinkButton5_Click(object sender, EventArgs e)
{
Response.Redirect("EditUser.aspx");
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("EditBusiness.aspx");
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Redirect("cityhelp.aspx");
}
<tr>
<td align="center" rowspan="7" valign="top" bgcolor="#D6AD72"
style="width: 23%">
<asp:Image ID="Image1" runat="server" Height="139px" Width="84%"
ImageUrl="~/images/3pic1.jpg" />
<br />
<br />
<br />
</td>
<td width="20%" align="right" class="td">
Name :</td>
<td width="30%" class="td">
<asp:Label ID="lblName" runat="server" Text="Label"></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td width="20%" align="right" class="td">
User Id :</td>
<td class="td" >
<asp:Label ID="lblId" runat="server" Text="Label"></asp:Label>
</td>
<td >
</td>
</tr>
<tr>
<td width="20%" align="right" class="td">
State :</td>
<td style="height: 21px" class="td">
<asp:Label ID="lblState" runat="server" Text="Label"></asp:Label>
</td>
<td >
</td>
</tr>
<tr>
<td width="20%" align="right" class="td">
City :</td>
<td class="td">
<asp:Label ID="lblCity" runat="server" Text="Label"></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td width="20%" align="right" class="td">
Mobile No :</td>
<td class="td">
<asp:Label ID="lblmob" runat="server" Text="Label"></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td width="20%" align="right">
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td width="20%" align="right" style="height: 14px">
</td>
<td style="height: 14px">
</td>
<td style="height: 14px">
</td>
</tr>
</table>
</asp:Content>
if (Session["Uid"] != null)
{
uid = Session["Uid"].ToString();
string sql = "select Name, CityId, StateId, Contact, Photo from
UserMasterTbl where UID= '" + uid + "'";
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
SqlCommand cmd = new SqlCommand(sql, con);
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
lblName.Text = dr["Name"].ToString();
lblId.Text = uid;
state = dr["StateId"].ToString();
city = dr["CityId"].ToString();
lblmob.Text = dr["Contact"].ToString();
Image1.ImageUrl = "~/Upload/" + dr["Photo"].ToString();
}
}
</td>
<td>
<table class="style6">
<tr>
<td>
User Id</td>
<td>
<asp:TextBox ID="txtuid" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Role</td>
<td>
<asp:TextBox ID="txtRole" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="Button2" runat="server" BackColor="#333333"
Font-Names="Cambria" Font-Size="Medium" ForeColor="White"
onclick="Button2_Click" Text="Change Role" />
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Label ID="lblmsg" runat="server"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Content>
<html xmlns="http://www.w3.org/1999/xhtml">
<style type="text/css">
.style1
{
width: 100%;
}
.style3
{
font-size: xx-large;
font-family: Cambria;
}
.style4
{
height: 26px;
}
</style>
<body background="images/bg.jpg">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<head runat="server">
<title>Business Registration</title>
<center>
<table width="80%">
<tr>
<td>
<uc3:header ID="header1" runat="server" />
</td>
</tr>
</table>
<table style="width:80%">
<tr>
<td>
<tr>
<td align="left" valign="top"
width="40%" colspan="2" class="tds">
Business Details
</td>
</tr>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
<b>Service Type</b><br />
</td>
<td align="left" valign="top"
rowspan="2">
<asp:UpdatePanel
ID="UpdatePanel2" runat="server">
<ContentTemplate>
<table>
<tr>
<td class="td">
<asp:DropDownList
ID="ddlService" runat="server" Height="16px" Width="175px" ValidationGroup="a"
onselectedindexchanged="ddlService_SelectedIndexChanged" AutoPostBack="True">
</asp:DropDownList>
<asp:RequiredFieldValida
tor ID="RequiredFieldValidator6" runat="server"
ControlToValidate="d
dlService" ErrorMessage="plese select your service type"
ValidationGroup="a"
Display="None"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="td">
<asp:DropDownList
ID="ddlCatagory" runat="server" Height="16px"
ValidationGroup="a"
Width="174px" AutoPostBack="True">
</asp:DropDownList>
<asp:RequiredFieldValida
tor ID="RequiredFieldValidator8" runat="server"
ControlToValidate="d
dlCatagory" ErrorMessage="select your business catagory"
ValidationGroup="a"
Display="None"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%" class="style4">
<b>Category of Business<font
color="#ff0000">*</font></b>:</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
Business<span>
Name</span> :</td>
<td align="left" valign="top"
class="td">
<asp:TextBox ID="txtBname"
runat="server" Width="170px" ValidationGroup="a"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server"
ControlToValidate="txtBname"
ErrorMessage="Plese enter your business name"
ValidationGroup="a"
Display="None"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
Contact Person :</td>
<td align="left" valign="top"
class="td">
<asp:TextBox
ID="txtContactPerson" runat="server" Width="170px"
ValidationGroup="a"></asp:Te
xtBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator17" runat="server"
ControlToValidate="txtContac
tPerson" ErrorMessage="plese enter your designation"
ValidationGroup="a"
Display="None"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
Designation :</td>
<td align="left" valign="top"
class="td">
<asp:TextBox ID="txtDesignation"
runat="server" ValidationGroup="a"
Width="172px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator3" runat="server"
ControlToValidate="txtdesign
ation" ErrorMessage="plese enter your designation"
ValidationGroup="a"
Display="None"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
State :</td>
<td align="left" rowspan="2"
valign="top">
<asp:UpdatePanel
ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table
class="style1">
<tr>
<td
class="td">
<as
p:DropDownList ID="ddlState" runat="server" AutoPostBack="true"
Height="
16px" onselectedindexchanged="ddlState_SelectedIndexChanged1"
Width="1
31px" ValidationGroup="a">
</a
sp:DropDownList>
<as
p:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server"
ControlT
oValidate="ddlState" ErrorMessage="Select your state"
ValidationGroup="a" Display="None"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td
class="td">
<as
p:DropDownList ID="ddlCity" runat="server" Height="16px" ValidationGroup="a"
Width="1
28px">
</a
sp:DropDownList>
<as
p:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server"
ControlT
oValidate="ddlCity" ErrorMessage="select your city"
ValidationGroup="a" Display="None"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
City :</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
Adress:</td>
<td align="left" valign="top"
class="td">
<asp:TextBox ID="txtAddress"
runat="server" TextMode="MultiLine"
ValidationGroup="a"
Height="22px" Width="173px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator12" runat="server"
ControlToValidate="txtAddres
s" ErrorMessage="Plese enter your address"
ValidationGroup="a"
Display="None"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
<b>Web Site Address
(URL)</b></td>
<td align="left" valign="top"
class="td">
<asp:TextBox ID="txtwebsite"
runat="server" Width="171px" ValidationGroup="a"></asp:TextBox>
</td>
<tr>
<td align="right" valign="top"
width="40%">
<b>Your Company Profile</b>
<b><font color="#ff0000">*</font></b>:</td>
<td align="left" valign="top"
class="td">
<asp:TextBox
ID="txtcompanyprofile" runat="server" TextMode="MultiLine"
ValidationGroup="a"
Width="179px" Height="26px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator9" runat="server"
ControlToValidate="txtcompan
yprofile"
ErrorMessage="Plese enter
your company profile" ValidationGroup="a"
Display="None"></asp:Require
dFieldValidator>
</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
<b>Zip/Pin Code</b></td>
<td align="left" valign="top"
class="td">
<asp:TextBox ID="txtzipcode"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
<b>Phone</b></td>
<td align="left" valign="top"
class="td">
<asp:TextBox ID="txtstdcode"
runat="server" Width="50px" ValidationGroup="a"
MaxLength="4"></asp:TextBox>
<asp:TextBox ID="txtContact"
runat="server" ValidationGroup="a" MaxLength="7"
Width="126px"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
<b>Mobile </b>
</td>
<td align="left" valign="top"
class="td">
<asp:TextBox ID="txtContact2"
runat="server" Width="151px" MaxLength="10"
ValidationGroup="a"></asp:Te
xtBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator16" runat="server"
ControlToValidate="txtContac
t2" ErrorMessage="Plese enter your mobile no"
Display="None"
ValidationGroup="a"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" valign="top"
width="40%">
<b>Fax</b></td>
<td align="left" valign="top"
class="td">
<asp:TextBox ID="txtcodestd"
runat="server" Width="49px"
ValidationGroup="a"></asp:Te
xtBox>
<asp:TextBox ID="txtContact3"
runat="server" ValidationGroup="a"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" valign="top">
</td>
<td align="left" valign="top"
class="td">
</td>
</tr>
<tr>
<td align="right" valign="top">
</td>
<td align="left" valign="top">
<span>
<asp:ValidationSummary
ID="ValidationSummary1" runat="server"
ShowMessageBox="True"
ShowSummary="False" ValidationGroup="a" />
</span>
</td>
</tr>
<tr>
<td align="right" valign="top">
</td>
<td align="left" valign="top">
<b>
<asp:Button ID="Button4"
runat="server" Height="24px" onclick="Button4_Click"
style="font-weight: 700;
font-family: Cambria; font-size: medium; background-color: #FF9900; margin-
left: 0px;"
Text="Register"
Width="118px" ValidationGroup="a" />
</b>
</td>
</tr>
<tr>
<td align="right" valign="top">
</td>
<td align="left" valign="top">
<asp:ValidationSummary
ID="ValidationSummary2" runat="server"
ShowMessageBox="True"
ShowSummary="False" ValidationGroup="a" />
</td>
</tr>
</table>
</td>
<td
valign="top" style="height:30%"
align="center">
<asp:Panel ID="Panel1" runat="server"
BorderColor="#990000"
BorderStyle="Groove" BorderWidth="1px">
<span style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-
variant: normal; font-weight: normal; letter-spacing: normal; line-height:
22px; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-
spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-
in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; ">
<span style="color: rgb(51, 51, 51);
font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px;
">
<h3 class="componentHead"
</center>
<table width="100%">
<tr>
<td align="center">
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-
family: 'Times New Roman'; font-style: normal; font-variant: normal; font-
weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-
align: auto; text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-
border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size:
medium; ">
<span class="Apple-style-span"
style="font-family: arial, helvetica, clean, sans-serif; font-
size: 11px; line-height: 13px; text-align: center; ">
© 2010 Copyright INFOINDIA.com, All Rights Reserved. © 2010
Copyright INFOINDIA.com, All Rights Reserved </span><a
href="Help.aspx"
style="cursor: pointer; color: rgb(8, 84, 166); text-
decoration: none !important; ">Help</a><span > </span>|<span
> </span><a
href="AboutUs.aspx"
style="cursor: pointer; color: rgb(33, 74, 117); text-
decoration: underline !important; ">About Us</a></span></td>
</tr>
</table>
</center>
</head>
</form>
</body>
</html>
dr.Close();
con.Close();
}
public void fillddlservice()
{
string txt = "";
string id = "";
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
con.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandText = "select ServiceId, ServiceName from ServiceMasterTbl
order by ServiceName";
SqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
txt = dr["ServiceName"].ToString();
id = dr["ServiceId"].ToString();
ddlService.Items.Add(new ListItem(txt, id));
}
}
dr.Close();
con.Close();
}
protected void Button4_Click(object sender, EventArgs e)
{
String phone = txtstdcode.Text +"-"+ txtContact.Text;
String fax = txtcodestd.Text + " - " + txtContact3.Text;
string service =ddlService.SelectedItem.Value;
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
con.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandText = "INSERT INTO [UserBusinessTbl]([ServiceID],
[BusinessTypeID],[BusinessName],[ContactPerson],[Designation],[State],[City],
[Address],[Description],[Website], [ZipCode],[Phone],[Mob],[Fax])
VALUES(convert(int,'" + service + "'), '" + ddlCatagory.SelectedValue + "','" +
txtBname.Text + "','" + txtContactPerson.Text + "','" + txtDesignation.Text +
"','" + ddlState.SelectedItem.Text + "','" + ddlCity.SelectedItem.Text + "','"
+ txtAddress.Text + "','"+txtcompanyprofile.Text+"','" + txtwebsite.Text +
"','" + txtzipcode.Text + "',convert(varchar,'" + phone + "'),'" +
txtContact2.Text + "', convert(varchar,'" + fax + "') )";
cmd.ExecuteNonQuery();
con.Close();
}
dr.Close();
con.Close();
}
protected void ddlService_SelectedIndexChanged(object sender, EventArgs e)
{
ddlCatagory.Items.Clear();
string txt = "";
string id = "";
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
con.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandText = "select BusinessTypeID, BusinessType from
BusinessTypeMasterTbl where ServiceId='" +ddlService.SelectedValue+ "'";
SqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
txt = dr["BusinessType"].ToString();
id = dr["BusinessTypeId"].ToString();
ddlCatagory.Items.Add(new ListItem(txt, id));
}
}
dr.Close();
con.Close();
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs
e)
{
}
}
int i1=cmd1.ExecuteNonQuery();
con1.Close();
if (i1 > 0)
{
lblerror.Text = "Ur Passward Will Changed Successfuly";
txtPwd.Text = "";
txtCpwd.Text = "";
}
else
{
lblerror.Text = "Failed";
}
}
}
Code For EditProfile.aspx
<%@ Page Language="C#" MasterPageFile="~/User.master" AutoEventWireup="true"
CodeFile="EditProfile.aspx.cs" Inherits="EditProfile" Title="Untitled Page" %>
<br />
<span style="color: #CC3300; font-size: large; font-family:
Verdana"><b>Change
Image Here<br />
<br />
</b>
<asp:FileUpload ID="FUPhoto" runat="server" Width="202px" />
<br />
</span>
</td>
<td width="20%" align="right" >
Name :</td>
<td>
<asp:TextBox ID="txtName" runat="server" Height="20px"
Width="167px"
ValidationGroup="e"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server"
ControlToValidate="txtName"
ErrorMessage="RequiredFieldValidator"
ValidationGroup="e"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td width="20%" align="right">
User Id :</td>
<td class="testimonialTxt">
<asp:Label ID="lblUid" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td width="20%" align="right">
State :</td>
<td class="testimonialTxt" rowspan="2">
<asp:UpdatePanel ID="UpdatePanel1"
runat="server">
<ContentTemplate>
<table style="width: 100%">
<tr>
<td>
<asp:DropDownList
ID="ddlState" runat="server" Height="16px"
onselectedindexchan
ged="ddlState_SelectedIndexChanged" ValidationGroup="e"
Width="116px"
AutoPostBack="True">
</asp:DropDownList>
<asp:RequiredFieldValid
ator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="
ddlState" ErrorMessage="RequiredFieldValidator"
ToolTip="e"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:DropDownList
ID="ddlCity" runat="server" Height="16px" ValidationGroup="e"
Width="116px">
</asp:DropDownList>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td width="20%" align="right">
City :</td>
</tr>
<tr>
<td width="20%" align="right">
Mobile No :</td>
<td>
<asp:TextBox ID="txtMob" runat="server" Height="20px"
Width="167px"
ValidationGroup="e"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server"
ControlToValidate="txtMob"
ErrorMessage="RequiredFieldValidator"
ValidationGroup="e"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td width="20%" align="right">
Email : </td>
<td>
<asp:TextBox ID="txtEmail" runat="server" Height="20px"
Width="167px"
ValidationGroup="e"></asp:TextBox>
</td>
</tr>
<tr>
<td width="20%" align="right">
</td>
<td>
<asp:Button ID="btnedit" runat="server" BackColor="Black" Font-
Names="Cambria"
Font-Size="Medium" ForeColor="White" Text="Save"
onclick="btnedit_Click"
ValidationGroup="e" />
<asp:Label ID="lblmsg" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td width="20%" align="right">
</td>
<td>
</td>
</tr>
</table>
</asp:Content>
dr.Close();
con.Close();
}
protected void btnedit_Click(object sender, EventArgs e)
{
}
else
{
lblmsg.Text = "Updation Failed";
}
}
dr.Close();
con.Close();
}
}
uid = Session["Uid"].ToString();
string sql = "select Name, CityId, StateId, Contact, Photo from
UserMasterTbl where UID= '" + uid + "'";
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
SqlCommand cmd = new SqlCommand(sql, con);
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
lblName.Text = dr["Name"].ToString();
lblId.Text = uid;
state = dr["StateId"].ToString();
city = dr["CityId"].ToString();
lblmob.Text = dr["Contact"].ToString();
Image1.ImageUrl = "~/Upload/" + dr["Photo"].ToString();
}
string sql1 = "select CT_Name from CityMasterTbl where CT_ID='" +
city + "'";
SqlConnection con1 = new SqlConnection(constr);
SqlCommand cmd1 = new SqlCommand(sql1, con1);
con1.Open();
object i = cmd1.ExecuteScalar();
lblCity.Text = i.ToString();
string sql2 = "select S_Name from StateMasterTbl where S_Id= '" +
state + "'";
SqlConnection con2 = new SqlConnection(constr);
SqlCommand cmd2 = new SqlCommand(sql2, con2);
con2.Open();
object j = cmd2.ExecuteScalar();
lblState.Text = j.ToString();
}
else
{
Response.Redirect("~/login.aspx");
}
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
.style10
{
width: 100%;
}
.style12
{
height: 23px;
}
</style>
<link href="stylesheet/tdheight.css" rel="stylesheet" type="text/css" />
</head>
<body background="images/bg.jpg" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0
MARGINHEIGHT=0>
<form id="form1" runat="server" enctype="multipart/form-data">
<asp:ScriptManager ID="ScriptManager2" runat="server">
</asp:ScriptManager>
<table border="0"
cellpadding="2" cellspacing="0" width="100%">
<tr>
<td align="left"
background="images/yellow_29.jpg" colspan="3" class="style16">
<h1>
<span
>Registration</span><asp:ValidationSummary
ID="ValidationS
ummary1" runat="server"
ShowMessageBox="Tru
e" ShowSummary="False" ValidationGroup="a" Height="30px"
Width="161px" /
>
</td>
</tr>
<tr>
<td align="right"
valign="top" width="30%" class="td">
UserId :</td>
<td align="left"
valign="top" colspan="2" class="td">
<asp:TextBox
ID="txtid" runat="server" ValidationGroup="r" Width="60%"></asp:TextBox>
<asp:RequiredFieldV
alidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="p
lese enter emailid/userid" ControlToValidate="txtid"
Display="None"
ValidationGroup="a"></asp:RequiredFieldValidator>
<asp:Label
ID="lblmsg" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td align="right"
class="td" valign="top">
Password :</td>
<td align="left"
valign="top" colspan="2" class="td">
<asp:TextBox
ID="txtPwd" runat="server" TextMode="Password" ValidationGroup="a"
Width="211px"><
/asp:TextBox>
<asp:RequiredFieldV
alidator ID="RequiredFieldValidator2" runat="server"
ErrorMessage="p
lese enter password" ControlToValidate="txtcPwd"
Display="None"
ValidationGroup="a"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right"
valign="top" class="td">
Confirm
Password :</td>
<td align="left"
valign="top" class="td">
<asp:TextBox
ID="txtcPwd" runat="server" TextMode="Password"
ValidationGroup
="a" Width="211px"></asp:TextBox>
<asp:RequiredFieldV
alidator ID="RequiredFieldValidator3" runat="server"
ErrorMessage="R
equiredFieldValidator" ControlToValidate="txtcPwd"
Display="None"
ValidationGroup="a"></asp:RequiredFieldValidator>
</td>
<td align="left"
class="td" valign="bottom">
<asp:CompareValidat
or ID="CompareValidator1" runat="server"
ControlToCompar
e="txtPwd" ControlToValidate="txtcPwd" Display="None"
ErrorMessage="C
ompareValidator" ValidationGroup="a"></asp:CompareValidator>
</td>
</tr>
<tr>
<td align="right"
class="td" valign="top">
Name:</td>
<td align="left"
valign="top" colspan="2" class="td">
<asp:TextBox
ID="txtName" runat="server" ValidationGroup="a" Width="211px"></asp:TextBox>
<asp:RequiredFieldV
alidator ID="RequiredFieldValidator4" runat="server"
ErrorMessage="R
equiredFieldValidator" ControlToValidate="txtName"
Display="None"
ValidationGroup="a"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right"
class="td" valign="top">
EmailId</td>
<td align="left"
class="td" valign="top" colspan="2">
<asp:TextBox
ID="txtEmail" runat="server" ValidationGroup="a" Width="212px"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right"
class="td" valign="top">
Gender:</td>
<td align="left"
class="style6" valign="top" colspan="2">
<table
class="style5">
<tr>
<td
class="style16">
<asp:RadioButtonLis
t ID="RBLgender" runat="server"
RepeatDirection
="Horizontal" ValidationGroup="a">
<asp:ListItem
Value="0">Male</asp:ListItem>
<asp:ListItem
Value="1">Female</asp:ListItem>
</asp:RadioButtonLi
st>
</td>
<td
class="td">
<asp:RequiredFieldV
alidator ID="RequiredFieldValidator5" runat="server"
ErrorMessage="P
lese select your Gender" ControlToValidate="RBLgender" Display="None"
Val
idationGroup="a"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right"
class="td" valign="top">
State:</td>
<td align="left"
class="td" valign="top" colspan="2" rowspan="2">
<ContentTemplat
e>
<asp:Update
Panel ID="UpdatePanel1" runat="server">
<Conten
tTemplate>
<as
p:DropDownList ID="ddlState" runat="server" AutoPostBack="true"
onselectedindexchanged="ddlState_SelectedIndexChanged">
<asp:ListItem Value="0">---Select---</asp:ListItem>
<asp:ListItem></asp:ListItem>
</a
sp:DropDownList>
<as
p:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="ddlState" Display="None"
Width="140px">
<asp:ListItem Value="0">---Select---</asp:ListItem>
</a
sp:DropDownList>
<as
p:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ControlToValidate="ddlCity" Display="None"
</td>
</tr>
<tr>
<td align="right"
class="td" valign="top">
City:</td>
</tr>
<tr>
<td align="right"
class="td" valign="top">
Adress:</td>
<td align="left"
class="td" valign="top" colspan="2">
<asp:TextBox
ID="txtAdd" runat="server" TextMode="MultiLine"
ValidationGroup
="a" Height="25px" Width="177px"></asp:TextBox>
<asp:RequiredFieldV
alidator ID="RequiredFieldValidator8" runat="server"
ErrorMessage="P
lese enter your address " ControlToValidate="txtAdd"
Display="None"
ValidationGroup="a"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right"
class="td" valign="top">
Contact</td>
<td align="left"
class="td" valign="top" colspan="2">
<asp:TextBox
ID="txtcontact" runat="server" ValidationGroup="a" Width="181px"></asp:TextBox>
<asp:RequiredFieldV
alidator ID="RequiredFieldValidator9" runat="server"
ControlToValida
te="txtcontact" Display="None"
ErrorMessage="P
lese Enter Valid Mob no." ValidationGroup="a"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right"
class="style16" valign="top">
Photo
</td>
<td align="left"
class="style6" valign="top" colspan="2">
<asp:FileUpload
ID="FUPhoto" runat="server" Height="21px" Width="214px" />
</td>
</tr>
<tr>
<td align="right"
class="style16" valign="top">
</td>
<td align="left"
class="style6" valign="top" colspan="2">
</td>
</tr>
<tr>
<td align="right"
class="style16" valign="top">
</td>
<td align="left"
class="style16" valign="top" colspan="2">
<asp:Button
ID="Button2" runat="server" Text="Register" BackColor="#FF9900"
Height="24px"
style="font-weight: 700; font-family: Cambria; font-size: medium"
Width="94px"
onclick="Button2_Click" ValidationGroup="a" />
</td>
</tr>
<tr>
<td align="right"
class="style12" valign="top">
</td>
<td align="left"
class="style12" valign="top" colspan="2">
</td>
</tr>
<tr>
<td align="right"
class="style16" valign="top" colspan="3">
<img
src="images/claim_business.gif" style="width: 606px; height: 60px" /></td>
</tr>
</table>
</td>
</tr>
</table>
<img src="images/roundboxbt.jpg"
style="height: 10px; width:
100%; margin-left: 0px" />
</td>
</tr>
</table>
</td>
<td>
</td>
</tr>
</table>
<br />
<table class="style10">
<tr>
<td align="center">
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-
family: 'Times New Roman'; font-style: normal; font-variant: normal; font-
weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-
align: auto; text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-
border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size:
medium; ">
<span class="Apple-style-span"
style="font-family: arial, helvetica, clean, sans-serif; font-
size: 11px; line-height: 13px; text-align: center; ">
© 2010 Copyright INFOINDIA.com, All Rights Reserved.<span
class="Apple-converted-space"> </span><a
href="http://sulekha.com/COLLATERAL/tc.htm#privacy"
style="cursor: pointer; color: rgb(8, 84, 166); text-
decoration: none !important; ">Privacy
Policy</a><span class="Apple-converted-space"> </span>|<span
class="Apple-converted-space"> </span><a
href="http://sulekha.com/COLLATERAL/tc.htm"
style="cursor: pointer; color: rgb(33, 74, 117); text-
decoration: underline !important; ">Terms
& Conditions</a></span></span></td>
</tr>
</table>
</form>
</body>
</html>
dr.Close();
con.Close();
}
string sql = "if not exists( SELECT [UID] FROM [UserMasterTbl] where
UID='" + txtid.Text+ "')"
+ "begin " + " "
+ "INSERT INTO [UserMasterTbl]([UID],[Password],[Name],
[EmailID],[Photo],[Gender],[StateId],[CityId],[Address], [Contact])" +
" " + "VALUES('" + txtid.Text + "','" + txtPwd.Text +
"','" + txtName.Text + "','" + txtEmail.Text + "','" + filename + "','" +
RBLgender.SelectedValue + "','" + ddlState.Text + "','" + ddlCity.Text + "','"
+ txtAdd.Text + "','" + txtcontact.Text + "'); end";
string sql1 = "insert into LoginMasterTbl ([UserId], [Password])
values('"+txtid.Text+"', '"+txtPwd.Text+"')";
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
SqlCommand cmd = new SqlCommand(sql, con);
con.Open();
int i = cmd.ExecuteNonQuery();
con.Close();
if (i > 0)
{
}
else
{
lblmsg.Text = "UserId exists plz choose another userid";
}
dr.Close();
con.Close();
}
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
.adroundmd{ width:775px; background:#FAF4DA; border-right:1px solid
#B30000; border-left:1px solid #B30000; padding:0px; float:right; margin:0px 0
0 0; }
.gborder {
border: 1px solid #525252;
}
.gborder {
border: 1px solid #999999;padding:5px;
}
H1 {
FONT-WEIGHT: bold; FONT-SIZE: 22px; COLOR: #464646; LINE-HEIGHT: 120%;
FONT-FAMILY: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; TEXT-
DECORATION: none
}
H1 {
FONT-WEIGHT: bold
}
H1 {
FONT-SIZE: 138.5%; COLOR: #b30000
}
H1 {
FONT-WEIGHT: normal; FONT-SIZE: 100%
}
H1 {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px;
PADDING-TOP: 0px
}
.blueText
{
FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000079; FONT-FAMILY: Verdana,
Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.style2
{
margin: 0px;
padding: 0px;
}
.style4
{
font-size: 11px;
font-family: Tahoma, Arial, Helvetica, sans-serif;
margin: 0px;
padding: 0px;
}
.style5
{
width: 49%;
}
#Button1
{
height: 22px;
width: 69px;
}
.style9
{
font-family: Verdana;
font-weight: bold;
font-size: large;
}
#Button2
{
height: 22px;
width: 69px;
}
.style10
{
width: 100%;
}
.style14
{
font-family: Verdana;
font-weight: bold;
font-size: medium;
}
.style8
{
font-family: Cambria;
font-size: x-large;
font-weight: bold;
}
.style15
{
width: 182px;
height: 33px;
}
.style16
{
height: 33px;
}
.style17
{
width: 182px;
height: 35px;
}
.style18
{
height: 35px;
}
.style19
{
height: 29px;
}
.style22
{
height: 40px;
}
.style23
{
height: 36px;
}
.style25
{
font-family: Cambria;
}
.style26
{
font-size: medium;
}
.style27
{
font-family: Cambria;
font-size: medium;
}
.style28
{
font-size: 18px;
font-style: italic;
}
.style29
{
font-size: 18px;
font-style: italic;
font-family: Cambria;
}
</style>
<%--<script language="javascript" type="text/javascript">
// <!CDATA[
// ]]>
</script>--%>
<link href="stylesheet/layout.css" rel="stylesheet" type="text/css" />
</head>
<body background="images/bg.jpg">
<form id="form1" runat="server">
<code>
</code>
<table width="80%" align="center">
<tr>
<td align="center" >
<uc3:header ID="header2" runat="server" />
</td>
</tr>
</table>
style="border-collapse:
separate; color: rgb(0, 0, 0); font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto;
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-
spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-
spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-
adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<span class="style28">At
</span></span>
</span>
<span class="Apple-style-span"
style="font-size: 13px;
text-align: left; ">
<span class="style29"
style="border-collapse:
separate; color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-
transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-
border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-
text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-
stroke-width: 0px; ">
INFOINDIA</span></span><spa
n class="Apple-style-span"
style="font-family: Arial;
font-size: 13px; text-align: left; "><span class="style29"
style="border-collapse:
separate; color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-
transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-
border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-
text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-
stroke-width: 0px; ">
</span>
<span style="border-collapse:
separate; font-variant: normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-
space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing:
0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect:
none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "
class="style29">
Yellow Pages, you get the
best deals and offers from thousands of
advertisers from your
city.</h5>
</span>
<span class="style27"
style="border-collapse:
separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal;
letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto;
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-
spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-
spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-
adjust: auto; -webkit-text-stroke-width: 0px; ">
<ul>
<li>
Check out from the
comprehensive listing of business details under various
categories.</li>
</span>
</span>
<span class="style26"
style="border-collapse:
separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-
weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-
align: auto; text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-
border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<span class="Apple-style-
span"
style="text-align: left; ">
<li class="style25">Locate
the business of your choice with INFOINDIA Business Locator Map.</li>
</span>
</span>
<span class="Apple-style-span"
style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-
transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-
border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-
text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-
stroke-width: 0px; font-size: medium; ">
<span class="style25"
style="text-align: left; ">
<li>Get numerous benefits
from
<span class="style26"
style="border-
collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-
space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing:
0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect:
none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<span class="Apple-
style-span"
style="text-align: left;
">INFOINDIA
</span>
</span>
premium advertising
programs.</li>
</span>
</span>
<span class="Apple-style-span"
style="border-collapse:
separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-
weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-
align: auto; text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-
border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size:
medium; ">
<span class="Apple-style-
span"
style="text-align: left; ">
<li class="style25">You can
now easily access
<span class="style26"
style="border-
collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-
space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing:
0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect:
none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<span class="Apple-
style-span"
style="text-align: left;
">INFOINDIA </span></span>Yellow Pages on Reliance and Vodafone mobiles.</li>
<li class="style25">Receive
instant response from thousands of advertisers and boost your business
opportunities.</li>
</ul>
</span>
</span>
</td>
<td align="left" class="style5"
valign="top">
<asp:Panel ID="Panel1"
runat="server" BorderColor="#990000">
<table class="style10"
style="border-left-
style: groove; border-bottom-style: groove; border-bottom-width: 2px; border-
left-width: 2px; border-bottom-color: #666666; border-left-color: #666666;">
<tr>
<td align="left"
background="images/yellow_29.jpg" colspan="2" height="30">
<h1>
<span
class="style8">Login</span></h1>
</td>
</tr>
<tr>
<td
class="style15">
<span
class="style14">EmailId/UserId</span> <b><span
class="style14">: </span></b></td>
<td
class="style16">
<b><span
class="style9">
<asp:TextBox
ID="txtUID" runat="server" ValidationGroup="a"></asp:TextBox>
</span><a
sp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="serv
er" ControlToValidate="txtuid" Display="None"
ErrorMessag
e="plese enter id" ValidationGroup="a"></asp:RequiredFieldValidator>
</b>
</td>
</tr>
<tr>
<td
class="style15">
<b><span
class="style9"> </span><span class="style14">Password: </span><span
class="styl
e9"> </span></b></td>
<td
class="style16">
<b><span
class="style9">
<asp:TextBox
ID="txtPwd" runat="server" TextMode="Password"
ValidationGroup="a"></asp:TextBox>
</span><a
sp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToVa
lidate="txtPwd" Display="None"
ErrorMessag
e="plese enter password" ValidationGroup="a"></asp:RequiredFieldValidator>
</b>
</td>
</tr>
<tr>
<td align="right"
class="style17">
<b><span
class="style9"><span class="Apple-style-span"
style="bord
er-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman';
font-style: normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium;">
<span
class="Apple-style-span"
style="font
-family: arial, helvetica, clean, sans-serif; font-size: 13px; line-height:
16px; text-align: center;">
<input
ID="Checkbox1" type="checkbox" /></span></span></span></b></td>
<td
class="style18">
<b><span
class="style9"><span class="Apple-style-span"
style="bord
er-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman';
font-style: normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium;">
<span
class="Apple-style-span"
style="font
-family: arial, helvetica, clean, sans-serif; font-size: 13px; line-height:
16px; text-align: center;">
Remember me on
this computer</span></span></span></b></td>
</tr>
<tr>
<td class="style19"
align="right">
<asp:Image
ID="Image1" runat="server" Height="31px"
ImageUrl="~
/images/th_borbo150.gif" Width="49px" />
</td>
<td
class="style19">
<b><span
class="style9">
<asp:Button
ID="Button3" runat="server" BackColor="#FF9900"
Height="25p
x" onclick="Button3_Click"
style="font
-weight: 700; font-family: Cambria; font-size: medium" Text="Login"
Width="52px
" ValidationGroup="a" />
<span
class="Appl
e-style-span"
style="font
-family: Arial; font-size: 13px; text-align: left; "><span
class="styl
e29"
style="bord
er-collapse: separate; font-variant: normal; letter-spacing: normal; line-
height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-
horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-
decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-
stroke-width: 0px; ">
&nb
sp;
<asp:Label
ID="Label1"
runat="server"></asp:Label>
</span></span><
/span></b></td>
</tr>
<tr>
<td align="center"
colspan="2">
<asp:Validation
Summary ID="ValidationSummary1" runat="server"
ShowMessage
Box="True" ShowSummary="False" ValidationGroup="a" />
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="Panel3"
runat="server">
<table class="style10"
style="border-bottom-
style: groove; border-left-style: groove; border-bottom-width: 2px; border-
left-width: 2px; border-bottom-color: #666666; border-left-color: #666666;">
<tr>
<td align="center"
class="style23">
<span
class="Apple-style-span"
style="bord
er-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman';
font-style: normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; ">
<span
class="Apple-style-span"
style="font
-family: arial, helvetica, clean, sans-serif; font-size: 15px; line-height:
17px; text-align: -webkit-center; ">
<b>Not yet a
INFOINDIA.com Member?</b></span></span></td>
</tr>
<tr>
<td align="center"
class="style22">
<b>
<asp:Button
ID="Button4
" runat="server" Height="24px" onclick="Button4_Click"
style="font
-weight: 700; font-family: Cambria; font-size: medium; background-color:
#FF9900; margin-left: 0px;"
Text="Regis
ter now!" Width="147px" ValidationGroup="b" />
</b></td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>
</div>
<img src="images/roundboxbt.jpg"
style="height: 10px; width:
100%; margin-left: 1px" /></td>
</tr>
</table>
</form>
<table class="style10">
<tr>
<td align="center">
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-
family: 'Times New Roman'; font-style: normal; font-variant: normal; font-
weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-
align: auto; text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-
border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size:
medium; ">
<span class="Apple-style-span"
style="font-family: arial, helvetica, clean, sans-serif; font-
size: 11px; line-height: 13px; text-align: center; ">
© 2010 Copyright INFOINDIA.com, All Rights Reserved.<span
class="Apple-converted-space"> </span><a
href="http://sulekha.com/COLLATERAL/tc.htm#privacy"
style="cursor: pointer; color: rgb(8, 84, 166); text-
decoration: none !important; ">Privacy
Policy</a><span class="Apple-converted-space"> </span>|<span
class="Apple-converted-space"> </span><a
href="http://sulekha.com/COLLATERAL/tc.htm"
style="cursor: pointer; color: rgb(33, 74, 117); text-
decoration: underline !important; ">Terms
& Conditions</a></span></span></td>
</tr>
</table>
</body>
</html>
}
public int GetLogin()
{
int res = -1;
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
con.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandText = "select role from LoginMasterTbl where UserId='" +
txtUID.Text + "' and Password='" + txtPwd.Text + "'";
object i = cmd.ExecuteScalar();
if (i != DBNull.Value)
{
res = Convert.ToInt16(i);
}
return res;
}
Session["Uid"] = txtUID.Text;
switch (res)
{
case 1: FormsAuthentication.RedirectFromLoginPage(txtUID.Text,
false);
break;
case 2: Response.Redirect("admin/Admin.aspx");
break;
}
}
else
{
Label1.Text = "wrong UserId";
}
}
public void fillGrid()
{
</asp:Content>
Response.Redirect("Mainsearch.aspx");
}
else
{
if (!Page.IsPostBack)
{
city = Session["CT"].ToString();
cat = Session["Catagory"].ToString();
fillGrid();
}
}
}
public void fillGrid()
{
DataSet ds = new DataSet();
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
SqlDataAdapter adp = new SqlDataAdapter("select [Serial No],
[BusinessName],[ContactPerson],[Address],[Phone],[Mob] from [UserBusinessTbl]
where City='" + city + "' and BusinessName like '%" + cat + "%'", con);
adp.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
LinkButton lbtn = (LinkButton)sender;
string SNO = lbtn.CommandArgument;
Session["SN"] = SNO;
Response.Redirect("businessdetail.aspx");
}
}
}
public void fillGrid()
{
DataSet ds = new DataSet();
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
SqlDataAdapter adp = new SqlDataAdapter("select [Serial No],
[BusinessName],[ContactPerson],[Address],[Phone],[Mob] from [UserBusinessTbl]
where City='" + City + "'", con);
adp.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
LinkButton lbtn = (LinkButton)sender;
string SNO = lbtn.CommandArgument;
Session["SN"] = SNO;
Response.Redirect("businessdetail.aspx");
}
}
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
con.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandText = "INSERT INTO [ImportantContactTbl] ([uid], [Name],
[Contact], [Email]) Values('" + uid + "', '" + txtName.Text + "', '" +
txtContact.Text + "', '" + txtEmail.Text + "')";
cmd.ExecuteNonQuery();
con.Close();
fillGVContact();
}
public void fillGVContact()
{
DataSet ds=new DataSet();
string constr =
ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlConnection con = new SqlConnection(constr);
SqlDataAdapter adp=new SqlDataAdapter("select [Name], [Contact],
[Email] from [ImportantContactTbl] where uid='"+uid+"'",con);
adp.Fill(ds);
gvContact.DataSource= ds;
gvContact.DataBind();
}
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
#Select1
{
width: 175px;
}
#Text1
{
width: 191px;
height: 23px;
}
#Text2
{
width: 187px;
height: 16px;
}
#Text3
{
width: 179px;
}
#Text4
{
height: 20px;
width: 318px;
}
#Text5
{
width: 190px;
height: 17px;
}
#Text6
{
width: 190px;
height: 17px;
}
#Text7
{
width: 195px;
height: 23px;
}
#Text8
{
width: 194px;
height: 23px;
}
#Button3
{
height: 51px;
width: 39px;
}
ul.helplines{padding-top:5px;}
ul,ol { list-style: none;}
.clearfix, .paginationBar {display: block;}
.clearfix,
.police { background-position:0px -494px; }
.helplinesIcons {background:url('http://www.askme.in/images/icons/essentials-
links-icons.png') no-repeat center top;
height:28px; width:28px; border:1px solid #eee;
}
.left { float:left; }
.helplinesLink { float:left; padding:7px 0 0 10px; font-weight:bold; font-
size:12px; width:140px;}
.fire { background-position:0px -416px; }
.ambulance { background-position:0px -71px; }
.bloodbanks { background-position:0px -147px; }
.airlines { background-position:0px -31px; }
.railways { background-position:0px -571px; }
.taxiservices { background-position:0px -686px; }
.electricitysupply { background-position:0px -342px; }
.watersupply { background-position:0px -762px; }
.style5
{
color: #800000;
font-weight: bold;
font-family: Verdana;
font-size: large;
}
</style>
</td>
<td style="font-family: Verdana" align="center" valign="middle"
bgcolor="Green" rowspan="2">
<span
</table>
<table width="80%" align="center" cellspacing="0px" style="height:329px">
<tr>
<td "rowspan="2" valign="top" style="width:84%; background-
color:White">
<asp:ContentPlaceHolder ID="ContentPlaceHolder2"
runat="server">
<p>
</p>
</asp:ContentPlaceHolder>
<br />
<br />
<br />
</td>
</table>
<table width="80%" bgcolor="White" align="center">
<tr>
<td style="width:20%" align="center">
<asp:HyperLink ID="HyperLink9" runat="server" Font-Names="Cambria"
Font-Size="X-Large" Font-Underline="False" ForeColor="#33CCCC"
NavigateUrl="~/businessregisteration.aspx">Claim Your
Business</asp:HyperLink>
</td >
<td style="width:60%">
</td>
<td width="20%" bgcolor="White" align="center">
<asp:ImageButton ID="ImageButton1" runat="server" Height="62px"
ImageUrl="~/images/112_Running Free button.gif" Width="205px" />
</td>
</tr>
</table>
</form>
<table width="100%">
<tr>
<td align="center">
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-
family: 'Times New Roman'; font-style: normal; font-variant: normal; font-
weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-
align: auto; text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-
border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size:
medium; ">
<span class="Apple-style-span"
style="font-family: arial, helvetica, clean, sans-serif; font-
size: 11px; line-height: 13px; text-align: center; ">
© 2010 Copyright INFOINDIA.com, All Rights Reserved.<span
class="Apple-converted-space"> </span><a
href="Help.aspx"
style="cursor: pointer; color: rgb(8, 84, 166); text-
decoration: none !important; ">Help</a><span class="Apple-converted-
space"> </span>|<span
class="Apple-converted-space"> </span><a
href="AboutUs.aspx"
style="cursor: pointer; color: rgb(33, 74, 117); text-
decoration: underline !important; ">About Us</a></span></span></td>
</tr>
</table>
</body>
</html>
Code for UserMaster.master
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="User.master.cs"
Inherits="User" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
<link href="stylesheet/users.css" rel="stylesheet" type="text/css" />
</head>
<body background="images/bg.jpg">
<form id="form1" runat="server">
<center>
<table width="75%" style="background-color:White">
<tr>
<td colspan="2">
<uc2:headerfrpfile ID="headerfrpfile1" runat="server" />
</td>
</tr>
<tr>
<td width="83%" rowspan="3">
<asp:ImageButton ID="ImageButton1" runat="server"
ImageUrl="~/images/imgad.gif" Width="100%" />
</td>
<td>
<asp:ImageButton ID="ImageButton2" runat="server"
ImageUrl="~/images/ss_gif2.gif" Height="90px" Width="155px" />
</td>
</table>
<td bgcolor="blue">
<asp:HyperLink ID="hlnkhome" runat="server" Font-Bold="False"
Font-Names="Cambria" Font-Size="Large" Font-Underline="False"
ForeColor="White"
NavigateUrl="~/frmMyProfile.aspx">Profile Home</asp:HyperLink>
|
<asp:HyperLink ID="hlnkeditpr" runat="server" Font-Bold="False"
Font-Names="Cambria" Font-Size="Large" Font-Underline="False"
ForeColor="White"
NavigateUrl="~/EditProfile.aspx">Update Profile</asp:HyperLink>
|
<asp:HyperLink ID="hlnkic" runat="server" Font-Bold="False"
Font-Names="Cambria" Font-Size="Large" Font-Underline="False"
ForeColor="White"
NavigateUrl="~/UserImportantContacts.aspx">Important
Contact</asp:HyperLink>
|
<asp:HyperLink ID="hlnkic0" runat="server" Font-Bold="False"
Font-Names="Cambria" Font-Size="Large" Font-Underline="False"
ForeColor="White"
NavigateUrl="~/ChangePassword.aspx">Change
Password</asp:HyperLink>
</td>
</tr>
<tr>
<td align="left" colspan="6" width="100%">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
<table width="75%" bgcolor="#999966">
<tr>
<td width="100%">
<uc3:UserFooter ID="UserFooter1" runat="server" />
</td>
</tr>
</table>
</center>
</form>
</body>
</html>
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("EditProfile.aspx");
}
protected void LinkButton4_Click(object sender, EventArgs e)
{
Response.Redirect("ChangePassword.aspx");
}
protected void LinkButton3_Click(object sender, EventArgs e)
{
Response.Redirect("PostAdd.aspx");
}
</td>
</tr>
<tr>
<td align="center">
<asp:HyperLink ID="hlnkmanage" runat="server" Font-Bold="False"
Font-Names="Cambria" Font-Size="Medium" Font-Underline="False"
ForeColor="#FFCCCC"
NavigateUrl="~/admin/Admin.aspx">Manage</asp:HyperLink>
*<asp:HyperLink ID="hlnkProfile" runat="server" Font-Bold="False"
Font-Names="Cambria" Font-Size="Medium" Font-Underline="False"
ForeColor="#FFCCCC"
NavigateUrl="../frmMyProfile.aspx">Profile</asp:HyperLink>
*<asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="False"
Font-Names="Cambria" Font-Size="Medium" Font-Underline="False"
ForeColor="#FFCCCC"
onclick="LinkButton1_Click">logout</asp:LinkButton>
</td>
</tr>
</table>
{
if (Session["Uid"] != null)
{
uid = Session["Uid"].ToString();
lblwelcome.Text = "Welcome" + " " + uid;
Session["uid1"] = uid;
}
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Redirect("frmMyProfile.aspx");
}
protected void LinkButton4_Click(object sender, EventArgs e)
{
Response.Redirect("~/frmprofile.aspx");
}
protected void lnkClassifieds_Click(object sender, EventArgs e)
{
Response.Redirect("~/BuySell.aspx");
}
protected void lnkYellowPages_Click(object sender, EventArgs e)
{
Response.Redirect("~/frmprofile.aspx");
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("~/MainSearch.aspx");
}
}
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="LinkButton1" runat="server" Font-Names="Cambria"
Font-Underline="False" ForeColor="#FFCCCC" Font-Size="Medium"
onclick="LinkButton1_Click">Register</asp:LinkButton>
*<asp:LinkButton ID="LinkButton2" runat="server" Font-
Names="Cambria"
Font-Underline="False" ForeColor="#FFCCCC" Font-Size="Medium"
onclick="LinkButton2_Click" ValidationGroup="h1">Login</asp:LinkButton>
</td>
</tr>
</table>
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("FrmRegistration.aspx");
}
protected void LinkButton9_Click(object sender, EventArgs e)
{
if (Session["UID"] != null)
{
Response.Redirect("My List.aspx");
}
else
{
Response.Redirect("login.aspx");
}
}
protected void LinkButton4_Click(object sender, EventArgs e)
{
Response.Redirect("Mainsearch.aspx");
}
protected void LinkButton5_Click(object sender, EventArgs e)
{
Response.Redirect("BuySell.aspx");
}
protected void LinkButton8_Click(object sender, EventArgs e)
{
Response.Redirect("Mainsearch.aspx");
}
}
Code For Header2.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="header2.ascx.cs"
Inherits="WebUserControl2" %>
</td>
<td style="font-family: Verdana; font-size: large; color: #808080">
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="lnkRealEstate" runat="server"
BackColor="#990000"
Font-Bold="False" Font-Names="Cambria" Font-Size="Medium"
Font-Underline="False"
ForeColor="White" onclick="lnkRealEstate_Click">Real
Estate</asp:LinkButton>
<asp:LinkButton ID="lnkTravel" runat="server" Font-Bold="False"
Font-Names="Cambria"
Font-Size="Medium" Font-Underline="False"
BackColor="#990000"
ForeColor="White"
onclick="lnkTravel_Click">Travel</asp:LinkButton>
<asp:LinkButton ID="lnkHomeServices" runat="server" Font-
Bold="False"
BackColor="#990000" Font-Size="Medium" Font-
Underline="False"
ForeColor="White" Font-Names="Cambria"
onclick="lnkHomeServices_Click">Home Services</asp:LinkButton>
<asp:LinkButton ID="lnkBusinessServices" runat="server"
BackColor="#990000"
Font-Bold="False" Font-Names="Cambria" Font-Size="Medium"
Font-Underline="False"
ForeColor="White"
onclick="lnkBusinessServices_Click">Business Services</asp:LinkButton>
<asp:LinkButton ID="lnkRentals" runat="server"
BackColor="#990000"
Font-Bold="False" Font-Names="Cambria" Font-Size="Medium"
Font-Underline="False"
ForeColor="White"
onclick="lnkRentals_Click">Rentals</asp:LinkButton>
<asp:LinkButton ID="lnkcarbike" runat="server"
BackColor="#990000"
Font-Bold="False" Font-Names="Cambria" Font-Size="Medium"
Font-Underline="False"
ForeColor="White"
onclick="lnkcarbike_Click">Cars/Bikes</asp:LinkButton>
<asp:LinkButton ID="lnkComputers" runat="server"
BackColor="#990000"
Font-Bold="False" Font-Size="Medium" Font-Underline="False"
ForeColor="White" Font-Names="Cambria"
onclick="lnkComputers_Click">Computers
& Mobiles</asp:LinkButton>
<asp:LinkButton ID="lnkElectronics" runat="server"
BackColor="#990000"
Font-Names="Cambria" Font-Size="Medium" Font-
Underline="False"
ForeColor="White"
onclick="lnkElectronics_Click">Electronics</asp:LinkButton>
<asp:LinkButton ID="lnkEducation" runat="server"
BackColor="#990000"
Font-Names="Cambria" Font-Size="Medium" Font-
Underline="False"
ForeColor="White" Font-Bold="False"
onclick="lnkEducation_Click">Education</asp:LinkButton>
</td>
<td width="10%" align="center" valign="middle">
</td>
</tr>
<tr>
<td style="background-image: url('../images/3pic1.jpg')"
colspan="2">
</td>
</tr>
<tr>
<td style="font-family: Cambria" valign="top" colspan="2"
class="style1">
Select cities :
<asp:LinkButton ID="lnkdelhi" runat="server" Font-Bold="True"
Font-Names="Cambria" Font-Size="Medium" Font-
Underline="False"
onclick="LinkButton18_Click">Delhi</asp:LinkButton>
|
<asp:LinkButton ID="lnkkolkata" runat="server" Font-Bold="True"
Font-Names="Cambria" Font-Size="Medium" Font-
Underline="False"
onclick="lnkkolkata_Click">Agara</asp:LinkButton>
|
<asp:LinkButton ID="lklMumbai" runat="server" Font-Bold="True"
Font-Names="Cambria" Font-Size="Medium" Font-
Underline="False"
onclick="lklMumbai_Click">Lucknow</asp:LinkButton>
|
<asp:LinkButton ID="lnkBanglore" runat="server" Font-
Bold="True"
Font-Names="Cambria" Font-Size="Medium" Font-
Underline="False"
onclick="lnkBanglore_Click">Indore</asp:LinkButton>
|
<asp:LinkButton ID="LinkButton22" runat="server" Font-
Bold="True"
Font-Names="Cambria" Font-Size="Medium" Font-
Underline="False"
onclick="LinkButton22_Click">Allahabad</asp:LinkButton>
|
<asp:LinkButton ID="LinkButton23" runat="server" Font-
Bold="True"
Font-Names="Cambria" Font-Size="Medium" Font-
Underline="False"
onclick="LinkButton23_Click">Varanasi</asp:LinkButton>
</td>
</tr>
</table>
}
protected void lnkTravel_Click(object sender, EventArgs e)
{
Session["Type"] = 11;
Response.Redirect("Serch By service.aspx");
}
protected void lnkHomeServices_Click(object sender, EventArgs e)
{
Session["Type"] = 10;
Response.Redirect("Serch By service.aspx");
}
protected void lnkBusinessServices_Click(object sender, EventArgs e)
{
Session["Type"] = 3;
Response.Redirect("Serch By service.aspx");
}
protected void lnkRentals_Click(object sender, EventArgs e)
{
Session["Type"] = 13;
Response.Redirect("Serch By service.aspx");
}
protected void lnkcarbike_Click(object sender, EventArgs e)
{
Session["BType"] = 31;
Response.Redirect("SerchByType.aspx");
}
protected void lnkComputers_Click(object sender, EventArgs e)
{
Session["BType"] = 28;
Response.Redirect("SerchByType.aspx");
}
Response.Redirect("BuySell.aspx");
}
protected void LinkButton18_Click(object sender, EventArgs e)
{
Session["ICT"] = "Delhi";
Response.Redirect("SearchbyCT.aspx");
}
protected void LinkButton23_Click(object sender, EventArgs e)
{
Session["ICT"] = "Varanasi";
Response.Redirect("SearchbyCT.aspx");
}
protected void lklMumbai_Click(object sender, EventArgs e)
{
Session["ICT"] = "Lucknow";
Response.Redirect("SearchbyCT.aspx");
}
protected void LinkButton22_Click(object sender, EventArgs e)
{
Session["ICT"] = "Alahabad";
Response.Redirect("SearchbyCT.aspx");
}
protected void lnkBanglore_Click(object sender, EventArgs e)
{
Session["ICT"] = "Indore";
Response.Redirect("SearchbyCT.aspx");
}
protected void lnkkolkata_Click(object sender, EventArgs e)
{
Session["ICT"] = "Agara";
Response.Redirect("SearchbyCT.aspx");
}
}
<br />
<b>
<span style="font-style:normal; font-size:x-large; font-
stretch:condensed">City</span></b> <asp:DropDownList
ID="ddlCity" runat="server" Height="23px"
Width="185px"
ValidationGroup="a"
onselectedindexchanged="ddlCity_SelectedIndexChanged"
AutoPostBack="True">
</asp:DropDownList>
<br />
<br />
</td>
</td>
</td>
</tr>
</table>
<p>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="ddlCity" Display="None"
ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"
ValidationGroup="a"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="txtCatagory" Display="None"
ErrorMessage="RequiredFieldValidator" SetFocusOnError="True"
ValidationGroup="a"></asp:RequiredFieldValidator>
</p>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" Height="34px"
ShowMessageBox="True" ShowSummary="False" ValidationGroup="a" Width="204px"
/>
if (IsPostBack != true)
{
fillddl();
}
}
public void fillddl()
{
string txt = "";
string id = "";
string constr = "Data Source=.;Initial Catalog=Yellowpages;Integrated
Security=True";
SqlConnection con = new SqlConnection(constr);
con.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandText = "select CT_ID, CT_Name from CityMasterTbl Order by
CT_ID";
SqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
txt = dr["CT_Name"].ToString();
id = dr["CT_ID"].ToString();
ddlCity.Items.Add(new ListItem(txt, id));
}
}
dr.Close();
con.Close();
}
Session["Catagory"] = txtCatagory.Text;
if (Session["uid"] != null)
{
Response.Redirect("Main.aspx");
}
else
{
Response.Redirect("mainsearch1.aspx");
}
}
protected void ddlCity_SelectedIndexChanged(object sender, EventArgs e)
{
Session["CT"] = ddlCity.SelectedItem.Text;
}
}
</td>
</tr>
<tr>
<td align="center">
<asp:HyperLink ID="hlnkProfile" runat="server" Font-Bold="False"
Font-Names="Cambria" Font-Size="Medium" Font-Underline="False"
ForeColor="#FFCCCC"
NavigateUrl="~/frmMyProfile.aspx?">Profile</asp:HyperLink>
*<asp:HyperLink ID="hlnkLogOut" runat="server" Font-Bold="False"
Font-Names="Cambria" Font-Size="Medium" Font-Underline="False"
ForeColor="#FFCCCC"
NavigateUrl="~/Mainsearch.aspx">Logout</asp:HyperLink>
</td>
</tr>
</table>
</center>
vertical-align: top;
font-family:Cambria;
height:35px;
font-style:oblique;
font-size:16px;
color:Blue;
}
.tds {
vertical-align: top;
font-family:Cambria;
font-size:24px;
font-style:normal;
}
/*////// LAYOUT ////////////////////////////// */
/* Common styles for Static Pages */
/*USER DASHBOARD */
div.userInfo { padding:2px 0px;}
div.userInfo table { background:#f9f9f9; border:2px solid #f3f3f3; }
div.userInfo table td { border:1px dotted #ccc; padding:8px; color:#555;
vertical-align:top;}
div.userInfo table td label { color:#888; width:60px; padding-right:10px;}
td.userPhoto { width:65px; }
td.userPhoto img { height:50px; width:50px; margin:5px; padding:2px;}
/* Dashboard Page */
#dashboardPage {border-bottom:1px dotted #ccc;}
#dashboardPage #contentBar{ width:700px; padding-right:25px; border-right:1px
dotted #ccc;}
#dashboardPage #sideBar {width:200px;}
FUTURE SCOPE AND FURTHER ENHANCEMENT
This web site can be used as a yellow page site, which manages the business and
shop information in Database. It is useful to maintain Customer’s information,
Country details, state details, city details, control different activities of the business
information like insertion of new users record, insertion of new customer record,
deletion of record, modification in existing record etc. With small alteration we can
use this system in any other company to maintain and control the activities of the
company according to their users and requirements.
For future expansion or growth the proposed project can be upgraded easily.
Customers can obtain the details easily by accessing the web site through internet.
FUTURE EXPANSION –
The project is created with high flexibility i.e. additional
features can be aided to the project at any time with minimal changes. Business
associates of the company can add more users time, which increases the expandability.
SAP can also be implemented using this web site in the future.