Click here to Skip to main content
15,502,191 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Capture enter key in textbox Pin
Nishant Singh25-Nov-08 4:57
Nishant Singh25-Nov-08 4:57 
GeneralRe: Capture enter key in textbox Pin
RohiniTalks25-Nov-08 6:55
RohiniTalks25-Nov-08 6:55 
GeneralRe: Capture enter key in textbox Pin
HugoGonc25-Nov-08 12:28
HugoGonc25-Nov-08 12:28 
QuestionSet webgrid scroll position Pin
Armandt__25-Nov-08 4:00
Armandt__25-Nov-08 4:00 
AnswerRe: Set webgrid scroll position Pin
Abhijit Jana25-Nov-08 4:27
professionalAbhijit Jana25-Nov-08 4:27 
GeneralRe: Set webgrid scroll position Pin
Armandt__25-Nov-08 5:56
Armandt__25-Nov-08 5:56 
GeneralRe: Set webgrid scroll position Pin
Armandt__26-Nov-08 20:35
Armandt__26-Nov-08 20:35 
Question[Urgent](NewBie)How To dynamicaly add three dropdownlists in ASP.NET C#? Pin
bilal haider25-Nov-08 3:58
bilal haider25-Nov-08 3:58 
Dear i want to add drop down list on selected index change event of another drop down list. I am to add third one. Please help.
Here is the code.
protected void Page_Load(object sender, EventArgs e)
{

DropDownList ddl = new DropDownList();
ddl.ID = "ddl1";
ddl.Items.Add("Item1");
ddl.Items.Add("Item2");
ddl.Items.Add("Item3");
Form.Controls.Add(ddl);
ddl.AutoPostBack = true; // if False ddl_index event handler will not be called.
ddl.SelectedIndexChanged +=new EventHandler(dd1_index);


}

protected void dd1_index(object sender, EventArgs e)
{
DropDownList ddl2 = new DropDownList();
ddl2.ID = "ddl2";
ddl2.Items.Add("Item4");
ddl2.Items.Add("Item5");
ddl2.Items.Add("Item6");
Form.Controls.Add(ddl2);
/*if set to true control disappears.
* But in ddl2.AutoPostBack = false; or ddl2.AutoPostBack = true;
* both cases dd2_index event handler not called.*/
ddl2.AutoPostBack = false;
ddl2.SelectedIndexChanged += new EventHandler(dd2_index);


}
protected void dd2_index(object sender, EventArgs e)
{
DropDownList ddl3 = new DropDownList();
ddl3.ID = "ddl2";
ddl3.Items.Add("Item4");
ddl3.Items.Add("Item5");
ddl3.Items.Add("Item6");
Form.Controls.Add(ddl3);
ddl3.AutoPostBack = false;
ddl3.SelectedIndexChanged += new EventHandler(dd3_index);
}
protected void dd3_index(object sender, EventArgs e)
{
DropDownList ddl4 = new DropDownList();
ddl4.ID = "ddl2";
ddl4.Items.Add("Item7");
ddl4.Items.Add("Item8");
ddl4.Items.Add("Item9");
Form.Controls.Add(ddl4);
ddl4.AutoPostBack = false;
ddl4.Visible = true;
ddl4.SelectedIndexChanged += new EventHandler(dd3_index);
}
Waiting anxiously for your reply.Confused | :confused:
AnswerRe: [Urgent](NewBie)How To dynamicaly add three dropdownlists in ASP.NET C#? Pin
Nishant Singh25-Nov-08 5:03
Nishant Singh25-Nov-08 5:03 
GeneralRe: [Urgent](NewBie)How To dynamicaly add three dropdownlists in ASP.NET C#? Pin
bilal haider25-Nov-08 19:24
bilal haider25-Nov-08 19:24 
Questiondisplaying image in gridview from folder Pin
Jai Vikas Singh25-Nov-08 3:56
Jai Vikas Singh25-Nov-08 3:56 
AnswerRe: displaying image in gridview from folder Pin
kenexcelon25-Nov-08 6:17
kenexcelon25-Nov-08 6:17 
GeneralRe: displaying image in gridview from folder Pin
raghvendrapanda25-Nov-08 20:21
raghvendrapanda25-Nov-08 20:21 
QuestionConditional PostBackURL Based in UserName Pin
lisad_tgc25-Nov-08 3:39
lisad_tgc25-Nov-08 3:39 
AnswerRe: Conditional PostBackURL Based in UserName Pin
vrushaliD29-Jan-09 1:23
vrushaliD29-Jan-09 1:23 
QuestionCan we use SOAP UI's mockup web service in an ASP .net project Pin
Rocky#25-Nov-08 3:22
Rocky#25-Nov-08 3:22 
QuestionDisplaying images from another folder.? Pin
Mir_As25-Nov-08 2:55
Mir_As25-Nov-08 2:55 
AnswerRe: Displaying images from another folder.? Pin
Nishant Singh25-Nov-08 3:36
Nishant Singh25-Nov-08 3:36 
GeneralRe: Displaying images from another folder.? Pin
Mir_As25-Nov-08 4:03
Mir_As25-Nov-08 4:03 
GeneralRe: Displaying images from another folder.? Pin
Nishant Singh25-Nov-08 4:47
Nishant Singh25-Nov-08 4:47 
GeneralRe: Displaying images from another folder.? Pin
Mir_As25-Nov-08 5:48
Mir_As25-Nov-08 5:48 
Questionhow to pass xml file to web service Pin
md_azy25-Nov-08 2:51
md_azy25-Nov-08 2:51 
Questionreg error 40 Pin
madeline_veda25-Nov-08 2:20
madeline_veda25-Nov-08 2:20 
AnswerRe: reg error 40 Pin
Abhijit Jana25-Nov-08 2:47
professionalAbhijit Jana25-Nov-08 2:47 
QuestionI am Confused with this Pin
Krazy Programmer25-Nov-08 1:30
Krazy Programmer25-Nov-08 1:30 

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.