Click here to Skip to main content
16,015,296 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem in sending Mail ASP.NET Pin
Guffa1-Sep-06 7:42
Guffa1-Sep-06 7:42 
GeneralRe: Problem in sending Mail ASP.NET Pin
Exelioindia1-Sep-06 19:03
Exelioindia1-Sep-06 19:03 
AnswerRe: Problem in sending Mail ASP.NET Pin
Guffa3-Sep-06 7:46
Guffa3-Sep-06 7:46 
GeneralRe: Problem in sending Mail ASP.NET Pin
Exelioindia3-Sep-06 19:07
Exelioindia3-Sep-06 19:07 
Questionprogramatically Adding fields to the crystal reports from C# code Pin
miftha30-Aug-06 20:09
miftha30-Aug-06 20:09 
NewsRe: programatically Adding fields to the crystal reports from C# code Pin
zaidfarhan8-Nov-09 20:27
zaidfarhan8-Nov-09 20:27 
QuestionDoubt-dropdownlist inside datagrid Pin
kavithapuranik30-Aug-06 19:22
kavithapuranik30-Aug-06 19:22 
AnswerRe: Doubt-dropdownlist inside datagrid Pin
Sathesh Sakthivel30-Aug-06 20:38
Sathesh Sakthivel30-Aug-06 20:38 
Hi Kavitha,

create two dropdownlist as "ddlParent" and "ddlChild".

Populate the "ddlParent" using

if(!Page.IsPostBack)
{

SqlDataAdapter ad = new SqlDataAdapter("SELECT PersonID FROM Person",myConnection);

DataSet ds = new DataSet();

ad.Fill(ds,"Person");

ddlParent.DataSource = ds;

ddlParent.DataTextField = "PersonID";

ddlParent.DataValueField = "PersonID";

ddlParent.DataBind();


}
Now in the selectedIndexChanged event of the "ddlParent" you will implement the code that will fill the "ddlChild".

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

int personID = Convert.ToInt32(ddlParent.SelectedItem.Value);

string query = "SELECT PhoneNumber,PhoneID FROM Phone WHERE PersonID = "+personID;

SqlDataAdapter ad = new SqlDataAdapter(query,myConnection);

DataSet ds = new DataSet();

ad.Fill(ds,"Phone");

ddlChild.DataSource = ds;

ddlChild.DataTextField = "PhoneNumber";

ddlChild.DataValueField = "PhoneID";

ddlChild.DataBind();

}

Hope this works fine.


with regards

Satips

Questiondownload a file from server Pin
Sebastian T Xavier30-Aug-06 19:20
Sebastian T Xavier30-Aug-06 19:20 
Questionsending mail with asp.net Pin
Sebastian T Xavier30-Aug-06 19:00
Sebastian T Xavier30-Aug-06 19:00 
AnswerRe: sending mail with asp.net Pin
Guffa30-Aug-06 19:11
Guffa30-Aug-06 19:11 
GeneralRe: sending mail with asp.net Pin
Sebastian T Xavier30-Aug-06 19:21
Sebastian T Xavier30-Aug-06 19:21 
GeneralRe: sending mail with asp.net Pin
Sebastian T Xavier30-Aug-06 23:55
Sebastian T Xavier30-Aug-06 23:55 
AnswerRe: sending mail with asp.net Pin
mbbisht30-Aug-06 21:40
mbbisht30-Aug-06 21:40 
GeneralRe: sending mail with asp.net Pin
Sebastian T Xavier30-Aug-06 23:54
Sebastian T Xavier30-Aug-06 23:54 
QuestionTabstrip control not displayed properly Pin
shivarishxxxx30-Aug-06 18:39
shivarishxxxx30-Aug-06 18:39 
QuestionAdding pageview dynamically to multipage Pin
shivarishxxxx30-Aug-06 18:01
shivarishxxxx30-Aug-06 18:01 
Questionexecuting asp.net application which is coded in another system Pin
mohd sohail uddin30-Aug-06 17:34
mohd sohail uddin30-Aug-06 17:34 
AnswerRe: executing asp.net application which is coded in another system Pin
_AK_30-Aug-06 20:03
_AK_30-Aug-06 20:03 
AnswerRe: executing asp.net application which is coded in another system Pin
HimaBindu Vejella30-Aug-06 23:03
HimaBindu Vejella30-Aug-06 23:03 
Questionexecuting asp.net application which is coded in another system Pin
mohd sohail uddin30-Aug-06 17:28
mohd sohail uddin30-Aug-06 17:28 
QuestionJavascript Alert on MenuItem OnClick Pin
Clickok30-Aug-06 16:52
Clickok30-Aug-06 16:52 
AnswerRe: Javascript Alert on MenuItem OnClick Pin
minhpc_bk30-Aug-06 20:46
minhpc_bk30-Aug-06 20:46 
GeneralRe: Javascript Alert on MenuItem OnClick Pin
Clickok31-Aug-06 3:46
Clickok31-Aug-06 3:46 
QuestionRegarding calling a codebehind method in c# using javascript Pin
VishalSharmaDev30-Aug-06 16:19
VishalSharmaDev30-Aug-06 16:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.