Showing posts with label helloi. Show all posts
Showing posts with label helloi. Show all posts

Monday, March 26, 2012

DetailsView and ControlID

Hello

I need to force DetailsView to expose its fields
with a TargetControlID. I add these fields to DetailsView:

BoundField bf = new BoundField();
bf.DataField = sField;
bf.HeaderText = sHeader;
myDetailsView .Fields.Add(bf);

It's necessary for the AutoCompleteExtender :

AutoCompleteExtender ace = new AutoCompleteExtender();
ace.ID = "ace" + sField;
//ace.TargetControlID = "detV$ctl" + xxxxx
ace.TargetControlID = sField;
ace.ServiceMethod = "GetCompletionList";
ace.ServicePath = "wsLkAutoComplete.asmx";
ace.MinimumPrefixLength = 2;
ace.EnableCaching = true;
ace.CompletionInterval = 300;

Any idea ? I can't find this anywhere...

Best Regards

Do you need to be doing this dynamically? If so, have you tried creating a templatefield, the adding a label to the item template of the template field, and a textbox to the edit template field. At this point you will have the textbox so you can use the TextBox1.ClientId property to get its client id. This should return the clientid from within its container.


hello, thank you for replying !

I already tried creating a templatefield, but didn't liked it...

I wanted to use the boundfield, so that it could generate the right controls by itself for the data,

and not to write the needed logic for insert-update-delete-etc.etc.

Using templatefield, would be like making it by hand...

best regards


Hi Kaliban555,

Ajax Control Toolkit's TargetControl should be a server side control. As far as I know, if you use BoundField , we cannot generate a server side control(not html code) and bind it to the Extender. BoundField is not a container indeed. So I think in this situation, TemplateField is a better choice.

I hope this help.

Best regards,

Jonathan.

Wednesday, March 21, 2012

degradable Microsoft Ajax

Hello

I have a question about Microsoft Ajax, is Microsoft Ajax degradable ? Meaning will the website function even if I turn the Javascript off ? I know there is a small portion of users out there having their Javascript turned off, but I just wanted to know this out of curiosity!


Thank you

That depends on how you implement it. Can you build to degradeability? Yes. Does the framework force you to? No. For example, you could replace all your normal event handling with javascript calls to web services. Then your solution wouldn't degrade well.


I am confused now. Ok let me explain myself. lets say if I use a update panel and a triger, etc using standard Microsft Ajax controls, then what happen if I disable my Javascript on browser ? Does the solution still work.

I am not suing and customized javascript code myself, such as event handling, etc.



Yes Update Panel is inteligent enough to detect it and do the regular postback instead of partial..

December release and ListView control

Hello

I have played a little with the Atlas december release and was strongly confuced, when have not found ListView control...

Have you an ideas for better resolving the issues about showing the listed data?

Merry Christmas :)

The atlas: server side UI controls have been removed from the december release. You can find a quickstart that describes how to use the 'Atlas' listview using the client side programming model at:http://atlas.asp.net/quickstart/atlas/doc/data/default.aspx#listview

You can find the December TP change list summary at:http://weblogs.asp.net/atlas

enjoy
-jhawk