Well, of course. I recommend buying a book on ASP.NET, you plainly are very confused about how it works. Javascript runs on the browser, it is not C#, and does not run on the server. You've put + objhidquestions.value + in quotes, and therefore you will get these values verbatim. In fact, you are asking C# to evaluate the result of something that javascript has not yet been asked to create. The only way you could do this, if the value of objSelectedQuestion changes, is with AJAX.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )