Click here to Skip to main content
15,888,733 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Grid Problem on Rowcommand Pin
SreejithAchutan28-Nov-07 22:51
SreejithAchutan28-Nov-07 22:51 
GeneralRe: Grid Problem on Rowcommand Pin
Sun Rays28-Nov-07 23:12
Sun Rays28-Nov-07 23:12 
GeneralRe: Grid Problem on Rowcommand Pin
SreejithAchutan28-Nov-07 23:21
SreejithAchutan28-Nov-07 23:21 
GeneralRe: Grid Problem on Rowcommand Pin
Sun Rays28-Nov-07 23:50
Sun Rays28-Nov-07 23:50 
Questionin sql or my sql Pin
rameshdontagani28-Nov-07 21:21
rameshdontagani28-Nov-07 21:21 
AnswerRe: in sql or my sql Pin
SimulationofSai28-Nov-07 21:28
SimulationofSai28-Nov-07 21:28 
QuestionDynamically created controls Pin
Raza Hussain28-Nov-07 21:16
Raza Hussain28-Nov-07 21:16 
AnswerRe: Dynamically created controls Pin
Sun Rays28-Nov-07 21:57
Sun Rays28-Nov-07 21:57 
Hi,
do this.

DropDownList ddlMy = new DropDownList();<br />
ddlMy.Items.Add("test");<br />
ddlMy.Items.Add("test1");<br />
ddlMy.Items.Add("test2");<br />
ddlMy.Items.Add("test3");<br />
ddlMy.Items.Add("test4");<br />
ddlMy.AutoPostBack = true;<br />
ddlMy.SelectedIndexChanged += new EventHandler(ddlMy_SelectedIndexChanged);<br />
this.form1.Controls.Add(ddlMy);<br />


And create one event for that.

void ddlMy_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
    lblMyDDL.Text =((DropDownList)sender).SelectedItem.Text; // print in label<br />
}


Thanks,
Sun Rays

To get something you must have to try once.


My Articles

GeneralRe: Dynamically created controls Pin
Raza Hussain29-Nov-07 1:58
Raza Hussain29-Nov-07 1:58 
AnswerRe: Dynamically created controls Pin
Imran Khan Pathan28-Nov-07 21:57
Imran Khan Pathan28-Nov-07 21:57 
AnswerRe: Dynamically created controls Pin
Braulio Dez28-Nov-07 22:45
Braulio Dez28-Nov-07 22:45 
AnswerRe: Dynamically created controls Pin
John-ph29-Nov-07 0:19
John-ph29-Nov-07 0:19 
QuestionProblem with Session Pin
nagendrathecoder28-Nov-07 20:32
nagendrathecoder28-Nov-07 20:32 
AnswerRe: Problem with Session Pin
N a v a n e e t h28-Nov-07 20:34
N a v a n e e t h28-Nov-07 20:34 
GeneralRe: Problem with Session Pin
nagendrathecoder28-Nov-07 20:46
nagendrathecoder28-Nov-07 20:46 
QuestionASP.NET With C# - Accessing anchor tag through code behind Pin
bin200728-Nov-07 20:11
bin200728-Nov-07 20:11 
AnswerRe: ASP.NET With C# - Accessing anchor tag through code behind Pin
Christian Graus28-Nov-07 21:10
protectorChristian Graus28-Nov-07 21:10 
QuestionASP.NET With C# - Accessing HTML Controls through Code behind Pin
bin200728-Nov-07 20:10
bin200728-Nov-07 20:10 
AnswerRe: ASP.NET With C# - Accessing HTML Controls through Code behind Pin
N a v a n e e t h28-Nov-07 20:14
N a v a n e e t h28-Nov-07 20:14 
AnswerRe: ASP.NET With C# - Accessing HTML Controls through Code behind Pin
_AK_28-Nov-07 20:15
_AK_28-Nov-07 20:15 
Questionpressing F5(refresh button) Pin
Sujit Mandal28-Nov-07 20:04
Sujit Mandal28-Nov-07 20:04 
AnswerRe: pressing F5(refresh button) Pin
N a v a n e e t h28-Nov-07 20:12
N a v a n e e t h28-Nov-07 20:12 
GeneralRe: pressing F5(refresh button) Pin
Sujit Mandal28-Nov-07 23:39
Sujit Mandal28-Nov-07 23:39 
AnswerRe: pressing F5(refresh button) Pin
Michael Sync28-Nov-07 20:13
Michael Sync28-Nov-07 20:13 
GeneralRe: pressing F5(refresh button) Pin
_AK_28-Nov-07 20:16
_AK_28-Nov-07 20:16 

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.