1
Answer

Dynamically setting the location of the Controls

I am trying to add controls dynamically in C#.net. But one control i.e. combobox has location as 95,87 is located at the top of the window whereas the other control i.e. textbox having location 95,87 is located at the bottom of the window.Also textbox is added into groupbox which has location as 1,512. Why both controls having same location are displayed in different parts of the window?
Answers (1)
0
thomas.jaskula
NA 5 0 20y
Hello Stefan, Thanks for fast response. It works like a charm ;)
0
S_Kiryazov
NA 145 0 20y
First, your English if fine. I didn't notice a single mistake I had the same problem and I din't come up with quite a civilized solution but it works. In the javascript method that submits the data I loop through the items in the list box and form a string containing a coma separated list (you'd better not allow comas in the items values (-; ), pass it to the server through a hidden input and then parse it on the server. The code is something like: javscript: function showCity(){ var result = new String(); var resultText = new String(); //alert("we're in"); for(i=0;i