Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
AnswerRe: Excel Files Pin
DamithSL30-Jun-12 8:28
professionalDamithSL30-Jun-12 8:28 
AnswerRe: Excel Files Pin
frostcox30-Jun-12 12:55
frostcox30-Jun-12 12:55 
GeneralRe: Excel Files Pin
DJCRIS123-Jul-12 4:31
DJCRIS123-Jul-12 4:31 
QuestionDns.GetHostEntry and Dns,GetHostName Pin
Arjun Menon U.K30-Jun-12 2:56
Arjun Menon U.K30-Jun-12 2:56 
AnswerRe: Dns.GetHostEntry and Dns,GetHostName Pin
Dave Kreskowiak30-Jun-12 4:22
mveDave Kreskowiak30-Jun-12 4:22 
GeneralRe: Dns.GetHostEntry and Dns,GetHostName Pin
Arjun Menon U.K4-Jul-12 18:26
Arjun Menon U.K4-Jul-12 18:26 
GeneralRe: Dns.GetHostEntry and Dns,GetHostName Pin
OriginalGriff30-Jun-12 5:03
mveOriginalGriff30-Jun-12 5:03 
QuestionHow to get value of dynamically created dropdownlist on server side code. Pin
Charanjot Singh29-Jun-12 21:22
Charanjot Singh29-Jun-12 21:22 
Hi,

I am dynamically creating Dropdownlist on server side like this:

Default.aspx page code:



Default.cs.aspx code:

On Page_Load()

{

test();

}

private void test()
{
string str = string.Empty;
str += "";
str += "ABC";
str += "EEE";
str += "EEEE";
str += "DEE";
str += "";
dropdownList.InnerHtml = str;
}

private void Save()
{

DropDownList drp = (DropDownList)this.FindControl("ddl_11");
string str = drp.SelectedValue;

}

While saving i want to get the selected value of dynamically created dropdownlist. but when i am debugging code and found that FindControl() didnt find the "ddl_11" on page its giving me NULL value.

How can i find the dynamically created dropdownlist?

Please help me i am stucked on this from last one week and didnt find any solution please help me guys.
~~~Charanjot Singh~~~

QuestionHow to pass value to unspecified object using delegate C# Pin
rongvangso729-Jun-12 14:40
rongvangso729-Jun-12 14:40 
AnswerRe: How to pass value to unspecified object using delegate C# Pin
Richard Andrew x6429-Jun-12 16:08
professionalRichard Andrew x6429-Jun-12 16:08 
GeneralRe: How to pass value to unspecified object using delegate C# Pin
rongvangso729-Jun-12 20:12
rongvangso729-Jun-12 20:12 
GeneralRe: How to pass value to unspecified object using delegate C# Pin
OriginalGriff29-Jun-12 21:41
mveOriginalGriff29-Jun-12 21:41 
AnswerRe: How to pass value to unspecified object using delegate C# Pin
Richard Andrew x6430-Jun-12 5:42
professionalRichard Andrew x6430-Jun-12 5:42 
AnswerRe: How to pass value to unspecified object using delegate C# Pin
OriginalGriff29-Jun-12 21:35
mveOriginalGriff29-Jun-12 21:35 
GeneralRe: How to pass value to unspecified object using delegate C# Pin
rongvangso729-Jun-12 23:08
rongvangso729-Jun-12 23:08 
GeneralRe: How to pass value to unspecified object using delegate C# Pin
OriginalGriff29-Jun-12 23:44
mveOriginalGriff29-Jun-12 23:44 
AnswerRe: How to pass value to unspecified object using delegate C# Pin
Pete O'Hanlon30-Jun-12 7:47
mvePete O'Hanlon30-Jun-12 7:47 
GeneralRe: How to pass value to unspecified object using delegate C# Pin
rongvangso730-Jun-12 9:24
rongvangso730-Jun-12 9:24 
QuestionCombo Box Pin
DJCRIS1229-Jun-12 6:35
DJCRIS1229-Jun-12 6:35 
AnswerRe: Combo Box Pin
Kevin Marois29-Jun-12 6:59
professionalKevin Marois29-Jun-12 6:59 
GeneralRe: Combo Box Pin
DJCRIS1229-Jun-12 8:06
DJCRIS1229-Jun-12 8:06 
Questioninserting text into WebBrowser control Pin
Danzy8329-Jun-12 2:30
Danzy8329-Jun-12 2:30 
AnswerRe: inserting text into WebBrowser control Pin
Luc Pattyn29-Jun-12 2:43
sitebuilderLuc Pattyn29-Jun-12 2:43 
AnswerRe: inserting text into WebBrowser control Pin
Manfred Rudolf Bihy29-Jun-12 3:16
professionalManfred Rudolf Bihy29-Jun-12 3:16 
AnswerRe: inserting text into WebBrowser control Pin
Luc Pattyn29-Jun-12 3:26
sitebuilderLuc Pattyn29-Jun-12 3:26 

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.