473,413 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Asp.net Dropdownlist selected index in changed

Dear all ,

i am writting following code.

if(Page.IsPostBack==false)
{
try
{

BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
// Defination of BindSectionDropDownList
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();
reportCategory_Dropdownlist.DataTextField="Section Desc";
reportCategory_Dropdownlist.DataValueField ="sectionId";
reportCategory_Dropdownlist.DataSource=dv;
reportCategory_Dropdownlist.DataBind();
reportCategory_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_Dropdownlist.DataTextField="SectionDesc ";
subSection_Dropdownlist.DataValueField ="sectionId";
subSection_Dropdownlist.DataSource=dv;
subSection_Dropdownlist.DataBind();
subSection_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLineDesc_DropDownList.DataTextField="Sectio nLineDescription";
sectionLineDesc_DropDownList.DataValueField ="SectionLineId";
sectionLineDesc_DropDownList.DataSource= dv;
sectionLineDesc_DropDownList.DataBind();

sectionLineDesc_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}

private void search_Button_Click(object sender, System.EventArgs e)
{
selectQuery();
}

selectQuery();
{

//Code for further processing of on the basis of
sectionLineDesc_DropDownList selection
}

selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button.
any help will be greatly appreciated.

Sep 4 '06 #1
11 5780
hi,
first it would be useful to describe what you are trying to do. code is
helpful but it's no good unless you describe what you are trying to do with
it!

you say that the selected index of the first two dropdownlists are not
changed, are they supposed to change? in response to the user? or your
code?
you have this line of code in each bind method:
//reportCategoty_DropDownList.SelectedIndex=-1;
is it supposed to be uncommented?

happy to help if you can provide more info
tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
Dear all ,

i am writting following code.

if(Page.IsPostBack==false)
{
try
{

BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
// Defination of BindSectionDropDownList
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();
reportCategory_Dropdownlist.DataTextField="Section Desc";
reportCategory_Dropdownlist.DataValueField ="sectionId";
reportCategory_Dropdownlist.DataSource=dv;
reportCategory_Dropdownlist.DataBind();
reportCategory_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_Dropdownlist.DataTextField="SectionDesc ";
subSection_Dropdownlist.DataValueField ="sectionId";
subSection_Dropdownlist.DataSource=dv;
subSection_Dropdownlist.DataBind();
subSection_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLineDesc_DropDownList.DataTextField="Sectio nLineDescription";
sectionLineDesc_DropDownList.DataValueField ="SectionLineId";
sectionLineDesc_DropDownList.DataSource= dv;
sectionLineDesc_DropDownList.DataBind();

sectionLineDesc_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}

private void search_Button_Click(object sender, System.EventArgs e)
{
selectQuery();
}

selectQuery();
{

//Code for further processing of on the basis of
sectionLineDesc_DropDownList selection
}

selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button.
any help will be greatly appreciated.

Sep 6 '06 #2
The description is ,

i am having three dropdownlists when i am selected first item from list
it will display all related items in the next drop down list when i am
choose item from second drop down list in third all items filled
related to second item selection. and in the selection of third
dropdown list item text i will be display result.

eg.i am having first dropdownlist it will contains all country list
when i am choose one country it will display all states related to that
country. if i am selected state from list it will display all districts
related to the selected states. and on the selection of district i will
be search another information.

Tim_Mac wrote:
hi,
first it would be useful to describe what you are trying to do. code is
helpful but it's no good unless you describe what you are trying to do with
it!

you say that the selected index of the first two dropdownlists are not
changed, are they supposed to change? in response to the user? or your
code?
you have this line of code in each bind method:
//reportCategoty_DropDownList.SelectedIndex=-1;
is it supposed to be uncommented?

happy to help if you can provide more info
tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
Dear all ,

i am writting following code.

if(Page.IsPostBack==false)
{
try
{

BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
// Defination of BindSectionDropDownList
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();
reportCategory_Dropdownlist.DataTextField="Section Desc";
reportCategory_Dropdownlist.DataValueField ="sectionId";
reportCategory_Dropdownlist.DataSource=dv;
reportCategory_Dropdownlist.DataBind();
reportCategory_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_Dropdownlist.DataTextField="SectionDesc ";
subSection_Dropdownlist.DataValueField ="sectionId";
subSection_Dropdownlist.DataSource=dv;
subSection_Dropdownlist.DataBind();
subSection_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLineDesc_DropDownList.DataTextField="Sectio nLineDescription";
sectionLineDesc_DropDownList.DataValueField ="SectionLineId";
sectionLineDesc_DropDownList.DataSource= dv;
sectionLineDesc_DropDownList.DataBind();

sectionLineDesc_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}

private void search_Button_Click(object sender, System.EventArgs e)
{
selectQuery();
}

selectQuery();
{

//Code for further processing of on the basis of
sectionLineDesc_DropDownList selection
}

selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button.
any help will be greatly appreciated.
Sep 7 '06 #3
typically this is done via AutoPostBack dropdownlists. it seems strange
that you bind all 3 lists on the first Page_Load, since you can't know what
to populate lists 2 and 3 with until a selection has been made with list 1.

normally i would do something like this (pseudo-code):
First Page_Load (!PostBack) Bind List 1 (lists 2 and 3 remain empty)
List1_SelectedIndex_Changed Bind List 2
List2_SelectedIndex_Changed Bind List 3
List3_SelectedIndex_Changed Search whatever

have you got AutoPostBack=true on all the lists? also, you haven't posted
the SelectedIndexChanged events. it's very difficult to piece together your
situation with only a part of the code. if you post all the relevant code i
will be happy to take a look again.

tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
The description is ,

i am having three dropdownlists when i am selected first item from list
it will display all related items in the next drop down list when i am
choose item from second drop down list in third all items filled
related to second item selection. and in the selection of third
dropdown list item text i will be display result.

eg.i am having first dropdownlist it will contains all country list
when i am choose one country it will display all states related to that
country. if i am selected state from list it will display all districts
related to the selected states. and on the selection of district i will
be search another information.

Tim_Mac wrote:
>hi,
first it would be useful to describe what you are trying to do. code is
helpful but it's no good unless you describe what you are trying to do
with
it!

you say that the selected index of the first two dropdownlists are not
changed, are they supposed to change? in response to the user? or your
code?
you have this line of code in each bind method:
//reportCategoty_DropDownList.SelectedIndex=-1;
is it supposed to be uncommented?

happy to help if you can provide more info
tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@h48g2000cwc.googlegr oups.com...
Dear all ,

i am writting following code.

if(Page.IsPostBack==false)
{
try
{

BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
// Defination of BindSectionDropDownList
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();
reportCategory_Dropdownlist.DataTextField="Section Desc";
reportCategory_Dropdownlist.DataValueField ="sectionId";
reportCategory_Dropdownlist.DataSource=dv;
reportCategory_Dropdownlist.DataBind();
reportCategory_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_Dropdownlist.DataTextField="SectionDesc ";
subSection_Dropdownlist.DataValueField ="sectionId";
subSection_Dropdownlist.DataSource=dv;
subSection_Dropdownlist.DataBind();
subSection_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLineDesc_DropDownList.DataTextField="Sectio nLineDescription";
sectionLineDesc_DropDownList.DataValueField ="SectionLineId";
sectionLineDesc_DropDownList.DataSource= dv;
sectionLineDesc_DropDownList.DataBind();

sectionLineDesc_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}

private void search_Button_Click(object sender, System.EventArgs e)
{
selectQuery();
}

selectQuery();
{

//Code for further processing of on the basis of
sectionLineDesc_DropDownList selection
}

selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button.
any help will be greatly appreciated.

Sep 8 '06 #4
Here is code ..
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if(!Page.IsPostBack)
{
try
{
BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();

section_DropDownList.DataTextField="SectionDesc";
section_DropDownList.DataValueField ="sectionId";
section_DropDownList.DataSource=dv;
section_DropDownList.DataBind();
section_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));

}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="sectionId";
subSection_DropDownList.DataSource=dv;
subSection_DropDownList.DataBind();
subSection_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));

}

private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionLineId";
sectionLine_DropDownList.DataSource= dv;
sectionLine_DropDownList.DataBind();

sectionLine_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));
}

private void section_DropDownList_SelectedIndexChanged(object sender,
System.EventArgs e)
{
try
{
DataSet ds = new DataSet();
ds =
objSectionMaster.GetSubSectionRecForReports1(Conve rt.ToInt32(section_DropDownList.SelectedValue));
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="SectionId";
subSection_DropDownList.DataSource=ds;
subSection_DropDownList.DataBind();
}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}

private void subSection_DropDownList_SelectedIndexChanged(objec t
sender, System.EventArgs e)
{
try
{
if(subSection_DropDownList.SelectedValue=="--Select--")
{
return;
}

DataView dv = new DataView();
dv =
objSectionMaster.GetSectionLinesRecForReports(Conv ert.ToInt32(subSection_DropDownList.SelectedValue) );
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionId";
sectionLine_DropDownList.DataSource=dv;
sectionLine_DropDownList.DataBind();

}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}
}
private void search_Button_Click(object sender, System.EventArgs e)
{
SearchCondition();
}
Private void SearchCondition ();
{
Code for Searching according to the selection of third dropdown
list.
}
Regards

Shinde Santosh.
Tim_Mac wrote:
typically this is done via AutoPostBack dropdownlists. it seems strange
that you bind all 3 lists on the first Page_Load, since you can't know what
to populate lists 2 and 3 with until a selection has been made with list 1.

normally i would do something like this (pseudo-code):
First Page_Load (!PostBack) Bind List 1 (lists 2 and 3 remain empty)
List1_SelectedIndex_Changed Bind List 2
List2_SelectedIndex_Changed Bind List 3
List3_SelectedIndex_Changed Search whatever

have you got AutoPostBack=true on all the lists? also, you haven't posted
the SelectedIndexChanged events. it's very difficult to piece together your
situation with only a part of the code. if you post all the relevant code i
will be happy to take a look again.

tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
The description is ,

i am having three dropdownlists when i am selected first item from list
it will display all related items in the next drop down list when i am
choose item from second drop down list in third all items filled
related to second item selection. and in the selection of third
dropdown list item text i will be display result.

eg.i am having first dropdownlist it will contains all country list
when i am choose one country it will display all states related to that
country. if i am selected state from list it will display all districts
related to the selected states. and on the selection of district i will
be search another information.

Tim_Mac wrote:
hi,
first it would be useful to describe what you are trying to do. code is
helpful but it's no good unless you describe what you are trying to do
with
it!

you say that the selected index of the first two dropdownlists are not
changed, are they supposed to change? in response to the user? or your
code?
you have this line of code in each bind method:
//reportCategoty_DropDownList.SelectedIndex=-1;
is it supposed to be uncommented?

happy to help if you can provide more info
tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
Dear all ,

i am writting following code.

if(Page.IsPostBack==false)
{
try
{

BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
// Defination of BindSectionDropDownList
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();
reportCategory_Dropdownlist.DataTextField="Section Desc";
reportCategory_Dropdownlist.DataValueField ="sectionId";
reportCategory_Dropdownlist.DataSource=dv;
reportCategory_Dropdownlist.DataBind();
reportCategory_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_Dropdownlist.DataTextField="SectionDesc ";
subSection_Dropdownlist.DataValueField ="sectionId";
subSection_Dropdownlist.DataSource=dv;
subSection_Dropdownlist.DataBind();
subSection_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLineDesc_DropDownList.DataTextField="Sectio nLineDescription";
sectionLineDesc_DropDownList.DataValueField ="SectionLineId";
sectionLineDesc_DropDownList.DataSource= dv;
sectionLineDesc_DropDownList.DataBind();

sectionLineDesc_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}

private void search_Button_Click(object sender, System.EventArgs e)
{
selectQuery();
}

selectQuery();
{

//Code for further processing of on the basis of
sectionLineDesc_DropDownList selection
}

selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button.
any help will be greatly appreciated.
Sep 9 '06 #5
hi Santosh,
your code looks normal. in your original post, you say

"selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button."

i am assuming that you have EnableViewStated = true and AutoPostBack=true
set on all 3 drop down lists, and that the SelectedIndexChanged events are
correctly registered for all 3 menus, and that these events are firing
correctly.
if this is the case then when you change List1, it will postback and the
selectedIndex of List1 should stay on what you selected. It should also
stay for all future postbacks unless you re-bind the list. Does this
happen?

when you click on the search button, the SelectedIndex of all 3 lists should
be the same as you left it. from the description of your steps below, can
you say exactly where your code behaves unexpectedly:

Step 1: change List1
Step 2: change List2
Step 3: change List3
Step 4: click search.

tim

"Santosh" <Sa***************@yahoo.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Here is code ..
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if(!Page.IsPostBack)
{
try
{
BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();

section_DropDownList.DataTextField="SectionDesc";
section_DropDownList.DataValueField ="sectionId";
section_DropDownList.DataSource=dv;
section_DropDownList.DataBind();
section_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));

}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="sectionId";
subSection_DropDownList.DataSource=dv;
subSection_DropDownList.DataBind();
subSection_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));

}

private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionLineId";
sectionLine_DropDownList.DataSource= dv;
sectionLine_DropDownList.DataBind();

sectionLine_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));
}

private void section_DropDownList_SelectedIndexChanged(object sender,
System.EventArgs e)
{
try
{
DataSet ds = new DataSet();
ds =
objSectionMaster.GetSubSectionRecForReports1(Conve rt.ToInt32(section_DropDownList.SelectedValue));
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="SectionId";
subSection_DropDownList.DataSource=ds;
subSection_DropDownList.DataBind();
}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}

private void subSection_DropDownList_SelectedIndexChanged(objec t
sender, System.EventArgs e)
{
try
{
if(subSection_DropDownList.SelectedValue=="--Select--")
{
return;
}

DataView dv = new DataView();
dv =
objSectionMaster.GetSectionLinesRecForReports(Conv ert.ToInt32(subSection_DropDownList.SelectedValue) );
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionId";
sectionLine_DropDownList.DataSource=dv;
sectionLine_DropDownList.DataBind();

}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}
}
private void search_Button_Click(object sender, System.EventArgs e)
{
SearchCondition();
}
Private void SearchCondition ();
{
Code for Searching according to the selection of third dropdown
list.
}
Regards

Shinde Santosh.
Tim_Mac wrote:
>typically this is done via AutoPostBack dropdownlists. it seems strange
that you bind all 3 lists on the first Page_Load, since you can't know
what
to populate lists 2 and 3 with until a selection has been made with list
1.

normally i would do something like this (pseudo-code):
First Page_Load (!PostBack) Bind List 1 (lists 2 and 3 remain empty)
List1_SelectedIndex_Changed Bind List 2
List2_SelectedIndex_Changed Bind List 3
List3_SelectedIndex_Changed Search whatever

have you got AutoPostBack=true on all the lists? also, you haven't
posted
the SelectedIndexChanged events. it's very difficult to piece together
your
situation with only a part of the code. if you post all the relevant
code i
will be happy to take a look again.

tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@p79g2000cwp.googlegr oups.com...
The description is ,

i am having three dropdownlists when i am selected first item from list
it will display all related items in the next drop down list when i am
choose item from second drop down list in third all items filled
related to second item selection. and in the selection of third
dropdown list item text i will be display result.

eg.i am having first dropdownlist it will contains all country list
when i am choose one country it will display all states related to that
country. if i am selected state from list it will display all districts
related to the selected states. and on the selection of district i will
be search another information.

Tim_Mac wrote:
hi,
first it would be useful to describe what you are trying to do. code
is
helpful but it's no good unless you describe what you are trying to do
with
it!

you say that the selected index of the first two dropdownlists are not
changed, are they supposed to change? in response to the user? or
your
code?
you have this line of code in each bind method:
//reportCategoty_DropDownList.SelectedIndex=-1;
is it supposed to be uncommented?

happy to help if you can provide more info
tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@h48g2000cwc.googlegr oups.com...
Dear all ,

i am writting following code.

if(Page.IsPostBack==false)
{
try
{

BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
// Defination of BindSectionDropDownList
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();
reportCategory_Dropdownlist.DataTextField="Section Desc";
reportCategory_Dropdownlist.DataValueField ="sectionId";
reportCategory_Dropdownlist.DataSource=dv;
reportCategory_Dropdownlist.DataBind();
reportCategory_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_Dropdownlist.DataTextField="SectionDesc ";
subSection_Dropdownlist.DataValueField ="sectionId";
subSection_Dropdownlist.DataSource=dv;
subSection_Dropdownlist.DataBind();
subSection_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLineDesc_DropDownList.DataTextField="Sectio nLineDescription";
sectionLineDesc_DropDownList.DataValueField ="SectionLineId";
sectionLineDesc_DropDownList.DataSource= dv;
sectionLineDesc_DropDownList.DataBind();

sectionLineDesc_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}

private void search_Button_Click(object sender, System.EventArgs e)
{
selectQuery();
}

selectQuery();
{

//Code for further processing of on the basis of
sectionLineDesc_DropDownList selection
}

selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button.
any help will be greatly appreciated.


Sep 11 '06 #6
Dear Tim

The selected index of first two lists remain same but only thirds are
change it change on
change List3 and and click search also.

please help me. what exactely wrong happen.
regards
Santosh

Tim_Mac wrote:
hi Santosh,
your code looks normal. in your original post, you say

"selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button."

i am assuming that you have EnableViewStated = true and AutoPostBack=true
set on all 3 drop down lists, and that the SelectedIndexChanged events are
correctly registered for all 3 menus, and that these events are firing
correctly.
if this is the case then when you change List1, it will postback and the
selectedIndex of List1 should stay on what you selected. It should also
stay for all future postbacks unless you re-bind the list. Does this
happen?

when you click on the search button, the SelectedIndex of all 3 lists should
be the same as you left it. from the description of your steps below, can
you say exactly where your code behaves unexpectedly:

Step 1: change List1
Step 2: change List2
Step 3: change List3
Step 4: click search.

tim

"Santosh" <Sa***************@yahoo.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Here is code ..
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if(!Page.IsPostBack)
{
try
{
BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();

section_DropDownList.DataTextField="SectionDesc";
section_DropDownList.DataValueField ="sectionId";
section_DropDownList.DataSource=dv;
section_DropDownList.DataBind();
section_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));

}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="sectionId";
subSection_DropDownList.DataSource=dv;
subSection_DropDownList.DataBind();
subSection_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));

}

private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionLineId";
sectionLine_DropDownList.DataSource= dv;
sectionLine_DropDownList.DataBind();

sectionLine_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));
}

private void section_DropDownList_SelectedIndexChanged(object sender,
System.EventArgs e)
{
try
{
DataSet ds = new DataSet();
ds =
objSectionMaster.GetSubSectionRecForReports1(Conve rt.ToInt32(section_DropDownList.SelectedValue));
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="SectionId";
subSection_DropDownList.DataSource=ds;
subSection_DropDownList.DataBind();
}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}

private void subSection_DropDownList_SelectedIndexChanged(objec t
sender, System.EventArgs e)
{
try
{
if(subSection_DropDownList.SelectedValue=="--Select--")
{
return;
}

DataView dv = new DataView();
dv =
objSectionMaster.GetSectionLinesRecForReports(Conv ert.ToInt32(subSection_DropDownList.SelectedValue) );
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionId";
sectionLine_DropDownList.DataSource=dv;
sectionLine_DropDownList.DataBind();

}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}
}
private void search_Button_Click(object sender, System.EventArgs e)
{
SearchCondition();
}
Private void SearchCondition ();
{
Code for Searching according to the selection of third dropdown
list.
}
Regards

Shinde Santosh.
Tim_Mac wrote:
typically this is done via AutoPostBack dropdownlists. it seems strange
that you bind all 3 lists on the first Page_Load, since you can't know
what
to populate lists 2 and 3 with until a selection has been made with list
1.

normally i would do something like this (pseudo-code):
First Page_Load (!PostBack) Bind List 1 (lists 2 and 3 remain empty)
List1_SelectedIndex_Changed Bind List 2
List2_SelectedIndex_Changed Bind List 3
List3_SelectedIndex_Changed Search whatever

have you got AutoPostBack=true on all the lists? also, you haven't
posted
the SelectedIndexChanged events. it's very difficult to piece together
your
situation with only a part of the code. if you post all the relevant
code i
will be happy to take a look again.

tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
The description is ,

i am having three dropdownlists when i am selected first item from list
it will display all related items in the next drop down list when i am
choose item from second drop down list in third all items filled
related to second item selection. and in the selection of third
dropdown list item text i will be display result.

eg.i am having first dropdownlist it will contains all country list
when i am choose one country it will display all states related to that
country. if i am selected state from list it will display all districts
related to the selected states. and on the selection of district i will
be search another information.

Tim_Mac wrote:
hi,
first it would be useful to describe what you are trying to do. code
is
helpful but it's no good unless you describe what you are trying to do
with
it!

you say that the selected index of the first two dropdownlists are not
changed, are they supposed to change? in response to the user? or
your
code?
you have this line of code in each bind method:
//reportCategoty_DropDownList.SelectedIndex=-1;
is it supposed to be uncommented?

happy to help if you can provide more info
tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
Dear all ,

i am writting following code.

if(Page.IsPostBack==false)
{
try
{

BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
// Defination of BindSectionDropDownList
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();
reportCategory_Dropdownlist.DataTextField="Section Desc";
reportCategory_Dropdownlist.DataValueField ="sectionId";
reportCategory_Dropdownlist.DataSource=dv;
reportCategory_Dropdownlist.DataBind();
reportCategory_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_Dropdownlist.DataTextField="SectionDesc ";
subSection_Dropdownlist.DataValueField ="sectionId";
subSection_Dropdownlist.DataSource=dv;
subSection_Dropdownlist.DataBind();
subSection_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLineDesc_DropDownList.DataTextField="Sectio nLineDescription";
sectionLineDesc_DropDownList.DataValueField ="SectionLineId";
sectionLineDesc_DropDownList.DataSource= dv;
sectionLineDesc_DropDownList.DataBind();

sectionLineDesc_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}

private void search_Button_Click(object sender, System.EventArgs e)
{
selectQuery();
}

selectQuery();
{

//Code for further processing of on the basis of
sectionLineDesc_DropDownList selection
}

selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button.
any help will be greatly appreciated.
Sep 11 '06 #7
hi Santosh,
when you say the index remains the same, do you mean when you change the
index to the 5th item (for example) that it stays on the 5th item after the
SelectedIndexChanged event? or that it stays on the first 'Select...' item
after the event?

tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
Dear Tim

The selected index of first two lists remain same but only thirds are
change it change on
change List3 and and click search also.

please help me. what exactely wrong happen.
regards
Santosh

Tim_Mac wrote:
>hi Santosh,
your code looks normal. in your original post, you say

"selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button."

i am assuming that you have EnableViewStated = true and AutoPostBack=true
set on all 3 drop down lists, and that the SelectedIndexChanged events
are
correctly registered for all 3 menus, and that these events are firing
correctly.
if this is the case then when you change List1, it will postback and the
selectedIndex of List1 should stay on what you selected. It should also
stay for all future postbacks unless you re-bind the list. Does this
happen?

when you click on the search button, the SelectedIndex of all 3 lists
should
be the same as you left it. from the description of your steps below,
can
you say exactly where your code behaves unexpectedly:

Step 1: change List1
Step 2: change List2
Step 3: change List3
Step 4: click search.

tim

"Santosh" <Sa***************@yahoo.comwrote in message
news:11**********************@e3g2000cwe.googlegr oups.com...
Here is code ..
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if(!Page.IsPostBack)
{
try
{
BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();

section_DropDownList.DataTextField="SectionDesc";
section_DropDownList.DataValueField ="sectionId";
section_DropDownList.DataSource=dv;
section_DropDownList.DataBind();
section_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));

}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="sectionId";
subSection_DropDownList.DataSource=dv;
subSection_DropDownList.DataBind();
subSection_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));

}

private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionLineId";
sectionLine_DropDownList.DataSource= dv;
sectionLine_DropDownList.DataBind();

sectionLine_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));
}

private void section_DropDownList_SelectedIndexChanged(object sender,
System.EventArgs e)
{
try
{
DataSet ds = new DataSet();
ds =
objSectionMaster.GetSubSectionRecForReports1(Conve rt.ToInt32(section_DropDownList.SelectedValue));
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="SectionId";
subSection_DropDownList.DataSource=ds;
subSection_DropDownList.DataBind();
}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}

private void subSection_DropDownList_SelectedIndexChanged(objec t
sender, System.EventArgs e)
{
try
{
if(subSection_DropDownList.SelectedValue=="--Select--")
{
return;
}

DataView dv = new DataView();
dv =
objSectionMaster.GetSectionLinesRecForReports(Conv ert.ToInt32(subSection_DropDownList.SelectedValue) );
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionId";
sectionLine_DropDownList.DataSource=dv;
sectionLine_DropDownList.DataBind();

}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}
}
private void search_Button_Click(object sender, System.EventArgs e)
{
SearchCondition();
}
Private void SearchCondition ();
{
Code for Searching according to the selection of third dropdown
list.
}
Regards

Shinde Santosh.
Tim_Mac wrote:
typically this is done via AutoPostBack dropdownlists. it seems
strange
that you bind all 3 lists on the first Page_Load, since you can't know
what
to populate lists 2 and 3 with until a selection has been made with
list
1.

normally i would do something like this (pseudo-code):
First Page_Load (!PostBack) Bind List 1 (lists 2 and 3 remain
empty)
List1_SelectedIndex_Changed Bind List 2
List2_SelectedIndex_Changed Bind List 3
List3_SelectedIndex_Changed Search whatever

have you got AutoPostBack=true on all the lists? also, you haven't
posted
the SelectedIndexChanged events. it's very difficult to piece
together
your
situation with only a part of the code. if you post all the relevant
code i
will be happy to take a look again.

tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@p79g2000cwp.googlegr oups.com...
The description is ,

i am having three dropdownlists when i am selected first item from
list
it will display all related items in the next drop down list when i
am
choose item from second drop down list in third all items filled
related to second item selection. and in the selection of third
dropdown list item text i will be display result.

eg.i am having first dropdownlist it will contains all country list
when i am choose one country it will display all states related to
that
country. if i am selected state from list it will display all
districts
related to the selected states. and on the selection of district i
will
be search another information.

Tim_Mac wrote:
hi,
first it would be useful to describe what you are trying to do.
code
is
helpful but it's no good unless you describe what you are trying to
do
with
it!

you say that the selected index of the first two dropdownlists are
not
changed, are they supposed to change? in response to the user? or
your
code?
you have this line of code in each bind method:
//reportCategoty_DropDownList.SelectedIndex=-1;
is it supposed to be uncommented?

happy to help if you can provide more info
tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@h48g2000cwc.googlegr oups.com...
Dear all ,

i am writting following code.

if(Page.IsPostBack==false)
{
try
{

BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
// Defination of BindSectionDropDownList
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();
reportCategory_Dropdownlist.DataTextField="Section Desc";
reportCategory_Dropdownlist.DataValueField ="sectionId";
reportCategory_Dropdownlist.DataSource=dv;
reportCategory_Dropdownlist.DataBind();
reportCategory_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_Dropdownlist.DataTextField="SectionDesc ";
subSection_Dropdownlist.DataValueField ="sectionId";
subSection_Dropdownlist.DataSource=dv;
subSection_Dropdownlist.DataBind();
subSection_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLineDesc_DropDownList.DataTextField="Sectio nLineDescription";
sectionLineDesc_DropDownList.DataValueField ="SectionLineId";
sectionLineDesc_DropDownList.DataSource= dv;
sectionLineDesc_DropDownList.DataBind();

sectionLineDesc_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}

private void search_Button_Click(object sender, System.EventArgs
e)
{
selectQuery();
}

selectQuery();
{

//Code for further processing of on the basis of
sectionLineDesc_DropDownList selection
}

selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button.
any help will be greatly appreciated.

Sep 11 '06 #8
hi Tim_Mac

it is not like that say
if i select fifth item from the third list then after page is post
back it will lose selection from fifth to first item in the list.

Tim_Mac wrote:
hi Santosh,
when you say the index remains the same, do you mean when you change the
index to the 5th item (for example) that it stays on the 5th item after the
SelectedIndexChanged event? or that it stays on the first 'Select...' item
after the event?

tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
Dear Tim

The selected index of first two lists remain same but only thirds are
change it change on
change List3 and and click search also.

please help me. what exactely wrong happen.
regards
Santosh

Tim_Mac wrote:
hi Santosh,
your code looks normal. in your original post, you say

"selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button."

i am assuming that you have EnableViewStated = true and AutoPostBack=true
set on all 3 drop down lists, and that the SelectedIndexChanged events
are
correctly registered for all 3 menus, and that these events are firing
correctly.
if this is the case then when you change List1, it will postback and the
selectedIndex of List1 should stay on what you selected. It should also
stay for all future postbacks unless you re-bind the list. Does this
happen?

when you click on the search button, the SelectedIndex of all 3 lists
should
be the same as you left it. from the description of your steps below,
can
you say exactly where your code behaves unexpectedly:

Step 1: change List1
Step 2: change List2
Step 3: change List3
Step 4: click search.

tim

"Santosh" <Sa***************@yahoo.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Here is code ..
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if(!Page.IsPostBack)
{
try
{
BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();

section_DropDownList.DataTextField="SectionDesc";
section_DropDownList.DataValueField ="sectionId";
section_DropDownList.DataSource=dv;
section_DropDownList.DataBind();
section_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));

}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="sectionId";
subSection_DropDownList.DataSource=dv;
subSection_DropDownList.DataBind();
subSection_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));

}

private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionLineId";
sectionLine_DropDownList.DataSource= dv;
sectionLine_DropDownList.DataBind();

sectionLine_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));
}

private void section_DropDownList_SelectedIndexChanged(object sender,
System.EventArgs e)
{
try
{
DataSet ds = new DataSet();
ds =
objSectionMaster.GetSubSectionRecForReports1(Conve rt.ToInt32(section_DropDownList.SelectedValue));
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="SectionId";
subSection_DropDownList.DataSource=ds;
subSection_DropDownList.DataBind();
}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}

private void subSection_DropDownList_SelectedIndexChanged(objec t
sender, System.EventArgs e)
{
try
{
if(subSection_DropDownList.SelectedValue=="--Select--")
{
return;
}

DataView dv = new DataView();
dv =
objSectionMaster.GetSectionLinesRecForReports(Conv ert.ToInt32(subSection_DropDownList.SelectedValue) );
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionId";
sectionLine_DropDownList.DataSource=dv;
sectionLine_DropDownList.DataBind();

}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}
}
private void search_Button_Click(object sender, System.EventArgs e)
{
SearchCondition();
}
Private void SearchCondition ();
{
Code for Searching according to the selection of third dropdown
list.
}
Regards

Shinde Santosh.
Tim_Mac wrote:
typically this is done via AutoPostBack dropdownlists. it seems
strange
that you bind all 3 lists on the first Page_Load, since you can't know
what
to populate lists 2 and 3 with until a selection has been made with
list
1.

normally i would do something like this (pseudo-code):
First Page_Load (!PostBack) Bind List 1 (lists 2 and 3 remain
empty)
List1_SelectedIndex_Changed Bind List 2
List2_SelectedIndex_Changed Bind List 3
List3_SelectedIndex_Changed Search whatever

have you got AutoPostBack=true on all the lists? also, you haven't
posted
the SelectedIndexChanged events. it's very difficult to piece
together
your
situation with only a part of the code. if you post all the relevant
code i
will be happy to take a look again.

tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
The description is ,

i am having three dropdownlists when i am selected first item from
list
it will display all related items in the next drop down list when i
am
choose item from second drop down list in third all items filled
related to second item selection. and in the selection of third
dropdown list item text i will be display result.

eg.i am having first dropdownlist it will contains all country list
when i am choose one country it will display all states related to
that
country. if i am selected state from list it will display all
districts
related to the selected states. and on the selection of district i
will
be search another information.

Tim_Mac wrote:
hi,
first it would be useful to describe what you are trying to do.
code
is
helpful but it's no good unless you describe what you are trying to
do
with
it!

you say that the selected index of the first two dropdownlists are
not
changed, are they supposed to change? in response to the user? or
your
code?
you have this line of code in each bind method:
//reportCategoty_DropDownList.SelectedIndex=-1;
is it supposed to be uncommented?

happy to help if you can provide more info
tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
Dear all ,

i am writting following code.

if(Page.IsPostBack==false)
{
try
{

BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}
// Defination of BindSectionDropDownList
private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();
reportCategory_Dropdownlist.DataTextField="Section Desc";
reportCategory_Dropdownlist.DataValueField ="sectionId";
reportCategory_Dropdownlist.DataSource=dv;
reportCategory_Dropdownlist.DataBind();
reportCategory_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_Dropdownlist.DataTextField="SectionDesc ";
subSection_Dropdownlist.DataValueField ="sectionId";
subSection_Dropdownlist.DataSource=dv;
subSection_Dropdownlist.DataBind();
subSection_Dropdownlist.Items.Insert(0,new
ListItem("--Select--","--Select--"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}
private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLineDesc_DropDownList.DataTextField="Sectio nLineDescription";
sectionLineDesc_DropDownList.DataValueField ="SectionLineId";
sectionLineDesc_DropDownList.DataSource= dv;
sectionLineDesc_DropDownList.DataBind();

sectionLineDesc_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));

//reportCategoty_DropDownList.SelectedIndex=-1;
}

private void search_Button_Click(object sender, System.EventArgs
e)
{
selectQuery();
}

selectQuery();
{

//Code for further processing of on the basis of
sectionLineDesc_DropDownList selection
}

selection index of first two dropdownlist is not changed but
the third selected index of third dropdownlist is changed
when i am click on search button.
any help will be greatly appreciated.

Sep 12 '06 #9
hi Santosh,
it is difficult to follow your situation. you say that after you change
List3 that it resets the index back to 0 when the page posts back. am i
right in saying that the postback is because List3 has AutoPostBack=true?
the reason i ask is because you don't appear to have a SelectedIndexChanged
event for List3. so i'm not sure why you would want List3 to post back
itself.

i hope you can clarify the above question. also, please post your aspx code
with the 3 lists, and your InitialiseComponent code to make sure you have
wired the events correctly with the menus.

tim
Sep 12 '06 #10
Hii Tim_Mac
I am trying both options if i am set autopostback=false to third list
then also the selection is changed. when page is get postback. and when
i am set autopostback=true and writting code to selectionchanged for
capturing selected value so third list in this case also value is get
changed.

again i am giving total code to you.

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here

if(!Page.IsPostBack)
{
try
{
BindDistrictList();
BindSDOList();
BindTalukaList();
BindCircleList();
BindVillageList();
BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();

}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.village_Res_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.village_Res_DropDownList_ SelectedIndexChanged);
this.go_Button.Click += new
System.EventHandler(this.go_Button_Click);
this.section_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.section_DropDownList_Sele ctedIndexChanged);
this.subSection_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.subSection_DropDownList_S electedIndexChanged);
this.sectionLine_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.sectionLine_DropDownList_ SelectedIndexChanged);
this.district_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.district_DropDownList_Sel ectedIndexChanged);
this.SDO_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.SDO_DropDownList_Selected IndexChanged);
this.circle_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.circle_DropDownList_Selec tedIndexChanged);
this.village_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.village_DropDownList_Sele ctedIndexChanged);
this.search_Button.Click += new
System.EventHandler(this.search_Button_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();

section_DropDownList.DataTextField="SectionDesc";
section_DropDownList.DataValueField ="sectionId";
section_DropDownList.DataSource=dv;
section_DropDownList.DataBind();
section_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="sectionId";
subSection_DropDownList.DataSource=dv;
subSection_DropDownList.DataBind();
subSection_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));
}

private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionLineId";
sectionLine_DropDownList.DataSource= dv;
sectionLine_DropDownList.DataBind();

sectionLine_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));
}

private void section_DropDownList_SelectedIndexChanged(object sender,
System.EventArgs e)
{
try
{

DataSet ds = new DataSet();
ds =
objSectionMaster.GetSubSectionRecForReports1(Conve rt.ToInt32(section_DropDownList.SelectedValue));

subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="SectionId";
subSection_DropDownList.DataSource=ds;
subSection_DropDownList.DataBind();

}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}
}
private void subSection_DropDownList_SelectedIndexChanged(objec t
sender, System.EventArgs e)
{
try
{
if(subSection_DropDownList.SelectedValue=="--Select--")
{
return;
}

DataView dv = new DataView();
dv =
objSectionMaster.GetSectionLinesRecForReports(Conv ert.ToInt32(subSection_DropDownList.SelectedValue) );
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionId";
sectionLine_DropDownList.DataSource=dv;
sectionLine_DropDownList.DataBind();
//resource_Label.Text = sectionLine_DropDownList.SelectedItem.Text;
//sectionLine_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));
}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}
}

Tim_Mac wrote:
hi Santosh,
it is difficult to follow your situation. you say that after you change
List3 that it resets the index back to 0 when the page posts back. am i
right in saying that the postback is because List3 has AutoPostBack=true?
the reason i ask is because you don't appear to have a SelectedIndexChanged
event for List3. so i'm not sure why you would want List3 to post back
itself.

i hope you can clarify the above question. also, please post your aspx code
with the 3 lists, and your InitialiseComponent code to make sure you have
wired the events correctly with the menus.

tim
Sep 12 '06 #11
hi Santosh,
what i was interested in was the aspx which i don't think you sent yet, but
no matter, i have written a simple reproduction of your scenario which works
correctly. i will leave it up to you to compare what is different in your
own situation.

aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs"
Inherits="TestDdl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD id="Head1">
<title>Untitled Page</title>
</HEAD>
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="ddl1" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="ddl1_SelectedIndexChanged" ></asp:DropDownList>
<asp:DropDownList ID="ddl2" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="ddl2_SelectedIndexChanged" ></asp:DropDownList>
<asp:DropDownList ID="ddl3" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="ddl3_SelectedIndexChanged" ></asp:DropDownList>&nbsp;
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
Text="Search" />
<br>
<br>
<asp:Label ID="Label1" runat="server"></asp:Label></div>
</form>
</body>
</HTML>

code behind:

using System;
using System.Data;
using System.Collections;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

public class TestDdl : System.Web.UI.Page
{
protected System.Web.UI.WebControls.DropDownList ddl1;
protected System.Web.UI.WebControls.DropDownList ddl2;
protected System.Web.UI.WebControls.DropDownList ddl3;
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.Label Label1;

protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
// bind list 1
this.ddl1.DataSource = GetRandomDataSource();
this.ddl1.DataBind();
this.ddl1.Items.Insert(0, new ListItem("Select...", ""));

// disable the textbox and button until all menus have been selected
this.TextBox1.Enabled = false;
this.Button1.Enabled = false;
}
}
protected void ddl1_SelectedIndexChanged(object sender, EventArgs e)
{
// bind list 2
this.ddl2.DataSource = GetRandomDataSource();
this.ddl2.DataBind();
this.ddl2.Items.Insert(0, new ListItem("Select...", ""));
}
protected void ddl2_SelectedIndexChanged(object sender, EventArgs e)
{
// bind list 3
this.ddl3.DataSource = GetRandomDataSource();
this.ddl3.DataBind();
this.ddl3.Items.Insert(0, new ListItem("Select...", ""));
}
protected void ddl3_SelectedIndexChanged(object sender, EventArgs e)
{
// enable textbox + search button
this.TextBox1.Enabled = true;
this.Button1.Enabled = true;
}
protected void Button1_Click(object sender, EventArgs e)
{
this.Label1.Text = String.Format("You searched for '{0}' with {1} in list
1, {2} in list 2, and {3} in list 3", this.TextBox1.Text,
this.ddl1.SelectedValue, this.ddl2.SelectedValue, this.ddl3.SelectedValue);
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion

private ArrayList GetRandomDataSource()
{
ArrayList arr = new ArrayList();
Random r = new Random();
for(int i = 0; i < 10; i++)
arr.Add(r.Next(9999));
return arr;
}
}
the most likely explanation is that you have EnableViewState=False on one of
your lists, this is why i wanted to see the aspx.

good luck, and i hope this helps.
tim
"Santosh" <Sa***************@yahoo.comwrote in message
news:11********************@d34g2000cwd.googlegrou ps.com...
Hii Tim_Mac
I am trying both options if i am set autopostback=false to third list
then also the selection is changed. when page is get postback. and when
i am set autopostback=true and writting code to selectionchanged for
capturing selected value so third list in this case also value is get
changed.

again i am giving total code to you.

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here

if(!Page.IsPostBack)
{
try
{
BindDistrictList();
BindSDOList();
BindTalukaList();
BindCircleList();
BindVillageList();
BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();

}

catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+
ex.Message.ToString()+"');</script>");
}
}
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.village_Res_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.village_Res_DropDownList_ SelectedIndexChanged);
this.go_Button.Click += new
System.EventHandler(this.go_Button_Click);
this.section_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.section_DropDownList_Sele ctedIndexChanged);
this.subSection_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.subSection_DropDownList_S electedIndexChanged);
this.sectionLine_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.sectionLine_DropDownList_ SelectedIndexChanged);
this.district_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.district_DropDownList_Sel ectedIndexChanged);
this.SDO_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.SDO_DropDownList_Selected IndexChanged);
this.circle_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.circle_DropDownList_Selec tedIndexChanged);
this.village_DropDownList.SelectedIndexChanged += new
System.EventHandler(this.village_DropDownList_Sele ctedIndexChanged);
this.search_Button.Click += new
System.EventHandler(this.search_Button_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void BindSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSectionRecForReports();

section_DropDownList.DataTextField="SectionDesc";
section_DropDownList.DataValueField ="sectionId";
section_DropDownList.DataSource=dv;
section_DropDownList.DataBind();
section_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));
}
private void BindSubSectionDropDownlist()
{
DataView dv = new DataView();
dv = objSectionMaster.GetSubSectionRecReports();
subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="sectionId";
subSection_DropDownList.DataSource=dv;
subSection_DropDownList.DataBind();
subSection_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));
}

private void BindSectionLineDropDownlist()
{

DataView dv = new DataView();
dv = objSectionMaster.GetSectionLineRecReports();
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionLineId";
sectionLine_DropDownList.DataSource= dv;
sectionLine_DropDownList.DataBind();

sectionLine_DropDownList.Items.Insert(0,new
ListItem("--Select--","-1"));
}

private void section_DropDownList_SelectedIndexChanged(object sender,
System.EventArgs e)
{
try
{

DataSet ds = new DataSet();
ds =
objSectionMaster.GetSubSectionRecForReports1(Conve rt.ToInt32(section_DropDownList.SelectedValue));

subSection_DropDownList.DataTextField="SectionDesc ";
subSection_DropDownList.DataValueField ="SectionId";
subSection_DropDownList.DataSource=ds;
subSection_DropDownList.DataBind();

}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}
}
private void subSection_DropDownList_SelectedIndexChanged(objec t
sender, System.EventArgs e)
{
try
{
if(subSection_DropDownList.SelectedValue=="--Select--")
{
return;
}

DataView dv = new DataView();
dv =
objSectionMaster.GetSectionLinesRecForReports(Conv ert.ToInt32(subSection_DropDownList.SelectedValue) );
sectionLine_DropDownList.DataTextField="SectionLin eDescription";
sectionLine_DropDownList.DataValueField ="SectionId";
sectionLine_DropDownList.DataSource=dv;
sectionLine_DropDownList.DataBind();
//resource_Label.Text = sectionLine_DropDownList.SelectedItem.Text;
//sectionLine_DropDownList.Items.Insert(0,new
ListItem("--Select--","--Select--"));
}
catch(Exception ex)
{
Response.Write("<script language=javascriptalert('"+
ex.Message.ToString()+"');</script>");
}
}

Tim_Mac wrote:
>hi Santosh,
it is difficult to follow your situation. you say that after you change
List3 that it resets the index back to 0 when the page posts back. am i
right in saying that the postback is because List3 has AutoPostBack=true?
the reason i ask is because you don't appear to have a
SelectedIndexChanged
event for List3. so i'm not sure why you would want List3 to post back
itself.

i hope you can clarify the above question. also, please post your aspx
code
with the 3 lists, and your InitialiseComponent code to make sure you have
wired the events correctly with the menus.

tim

Sep 14 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Julie Barnet | last post by:
Can someone please post a small example of how to trap a selected index changed event from a dropdownlist in a datagrid? Thanks in advance Julie Barnet
5
by: Steve Jones | last post by:
Hi there, I am working with web forms, and am finding that the standard list of combo box events is dramatically reduced when using the dropdownlist. For example, the only event that I can see...
10
by: Phuff | last post by:
Thanks in advance! I'm trying to maintain a dl list's selected index on postback. What I'm doing is when a person selects an item from the drop down list I select a date in a calendar control and...
0
by: DCC700 | last post by:
After converting a web application to 2005, I am receiving an invalid character error when I change the value in a dropdown list. The dropdown list is set to postback on selected index changed and...
2
by: rocksoft | last post by:
Hi I am working in asp.net with C# web application, I have used visual studio 2003, i have used dropdownlist in my application to populate the data from mysql database, i have got problem while...
1
by: RK800 | last post by:
could someone help me out with this?? i am creating a dropdown(dd2) dynamically inside a <div> , on the selected index event of another dropdown(dd1). somehow i am not able to handle or get the...
5
by: Kalkin | last post by:
Hi Is it possible to change the data source of a dropdown list in a gridview from another dropdown list selected index changed method in the same gridview? for example I have a dropdown that...
0
by: perumalsamy R | last post by:
I am using gridview in my project.When i am clicking the checkbox ,I want to add the price value on gridview selected index changed event.can you help for my problem please help me?
1
by: kapil tripathi | last post by:
1) Accpet the item in TxtItem in comma seperated values like (Apple, Mango, Orange etc.). Store that item in array object (objArray) in acending order." 2) Create the object of the dropdown...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.