Showing posts with label create. Show all posts
Showing posts with label create. Show all posts

Monday, March 26, 2012

MutuallyExclusiveCheckBoxExtender doesnt work if elements are added dynamically

I create my table on the fly and added checkboxes as well as MECBextenders.

The client script is not working on the page. It works as expected if the MECBs are added during design time.

Here is some code to demonstrate population:

1string extenderKey ="AllTheSameKey";23foreach (MvpPoint pointin _selected.FolderPoints)4 {5678switch (point.PointType)9 {10case tPointType.DO:11case tPointType.CP:12 {13continue;14 }15default:16 {17 trow =new TableRow();1819 CheckBox chkSelected =new CheckBox();20string sPointId = point.Handle.ToString();21 chkSelected.ID ="chk" + sPointId;22 chkSelected.Visible =true;23if (point.PointType == tPointType.AI)24 chkSelected.Enabled =true;25else26 chkSelected.Enabled =true;2728 AjaxControlToolkit.MutuallyExclusiveCheckBoxExtender chkExtender =new AjaxControlToolkit.MutuallyExclusiveCheckBoxExtender();29 chkExtender.ID ="chkExt" + sPointId;30 chkExtender.TargetControlID = chkSelected.ID;31 chkExtender.Key = extenderKey;32

The problem ONLY exists if the MutuallyExclusiveCheckBoxExtender is cointeined inside a TabPanel. The IDs get changed by the cointeiner control and the jscript fails to find them.

Saturday, March 24, 2012

need help about socket programming

hello ,

I tried to create client-server based web site including two page, webserver page is behaves as a server and webclient page as a client of this server..

I try to listen and accept to all clients wants to connect to the server when server page is loading.. but while it begun to listening for client pages, execution of server goes to slow then my server page couldn't open..

I also checked this codes in vb.net ad c# net ,it work correctly.

do you have any idea where can I download a good socket connection sample for asp.net?. I found code written for vb.net or c# desktop applications but I am not able to run this codes in asp.net..

Thank you in advance

im looking for something similar, have u had any luck?

hi aal27

i couldn't find anythin,g i thougth there is no chance to todo this...

send me a message if you find something useful