Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
Questionget desire value from object [modified] Pin
zeeShan anSari17-May-09 19:36
zeeShan anSari17-May-09 19:36 
AnswerRe: get desire value from object Pin
dan!sh 17-May-09 19:57
professional dan!sh 17-May-09 19:57 
GeneralRe: get desire value from object Pin
zeeShan anSari17-May-09 20:11
zeeShan anSari17-May-09 20:11 
AnswerRe: get desire value from object Pin
N a v a n e e t h17-May-09 20:14
N a v a n e e t h17-May-09 20:14 
GeneralRe: get desire value from object Pin
Nagy Vilmos17-May-09 21:51
professionalNagy Vilmos17-May-09 21:51 
GeneralRe: get desire value from object Pin
N a v a n e e t h17-May-09 22:08
N a v a n e e t h17-May-09 22:08 
GeneralRe: get desire value from object Pin
zeeShan anSari17-May-09 22:28
zeeShan anSari17-May-09 22:28 
QuestionReferencing object by substituing object name in c#? Pin
dug_r17-May-09 19:33
dug_r17-May-09 19:33 
Is there a way in c# to create a string and use that as an object or control name?

For example, if I had an object "listBox.foo", and 2 string variables "string string1 = "listBox"; string string2 = "foo";, is there anyway to build the object name from that so I could call a method like

${string1+"."+string2"}.Visible=false"

Thanks for any pointers!

I have looked at the FindControl function so I could do "mycontrol = FindControl(string1+string2); mycontrol.Visible=false". However, although I use System.Web.UI, the compiler still complains that it's not available in the context.
AnswerRe: Referencing object by substituing object name in c#? Pin
dan!sh 17-May-09 19:56
professional dan!sh 17-May-09 19:56 
QuestionDatabase connectivity at runtime Pin
abysinia17-May-09 19:19
abysinia17-May-09 19:19 
AnswerRe: Database connectivity at runtime Pin
dan!sh 17-May-09 19:32
professional dan!sh 17-May-09 19:32 
QuestionGetting Error message in debuging Pin
deadlyabbas17-May-09 19:02
deadlyabbas17-May-09 19:02 
AnswerRe: Getting Error message in debuging Pin
S. Senthil Kumar18-May-09 9:40
S. Senthil Kumar18-May-09 9:40 
QuestionGet value from listbox items Pin
zeeShan anSari17-May-09 18:31
zeeShan anSari17-May-09 18:31 
AnswerRe: Get value from listbox items Pin
Ravi Bhavnani17-May-09 18:46
professionalRavi Bhavnani17-May-09 18:46 
AnswerRe: Get value from listbox items Pin
dug_r17-May-09 19:07
dug_r17-May-09 19:07 
AnswerRe: Get value from listbox items Pin
Jabbar_espania18-May-09 23:38
Jabbar_espania18-May-09 23:38 
QuestionAccess controls from different class Pin
soulidentities17-May-09 18:27
soulidentities17-May-09 18:27 
AnswerRe: Access controls from different class Pin
Ravi Bhavnani17-May-09 18:47
professionalRavi Bhavnani17-May-09 18:47 
GeneralRe: Access controls from different class Pin
soulidentities17-May-09 20:16
soulidentities17-May-09 20:16 
GeneralRe: Access controls from different class Pin
Ravi Bhavnani17-May-09 20:35
professionalRavi Bhavnani17-May-09 20:35 
GeneralRe: Access controls from different class Pin
soulidentities17-May-09 21:13
soulidentities17-May-09 21:13 
GeneralRe: Access controls from different class Pin
Ravi Bhavnani17-May-09 21:18
professionalRavi Bhavnani17-May-09 21:18 
GeneralRe: Access controls from different class Pin
soulidentities17-May-09 21:30
soulidentities17-May-09 21:30 
AnswerRe: Access controls from different class Pin
DaveyM6917-May-09 22:52
professionalDaveyM6917-May-09 22:52 

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.