Showing posts with label save. Show all posts
Showing posts with label save. Show all posts

Wednesday, March 28, 2012

ProfileScriptService not sticking

Is there something I'm missing. I get the drag and drop to work but I cannot get the profile setting to save. It resets the setting on a postback.

Did you try to use Fiddler or Nikhil's browser helper to monitor the exchanges with the profile service and see if there's an error message there?

profileservice newbie question

Do the callbacks return before the Sys.Services.ProfileService.save() returns ?

Sys.Services.ProfileService.save(['myProperty'], onSaveCompleted, onProfileServiceFailed,null);

In otherwords, when Sys.Services.ProfileService.save() returns, can I assume the property is saved (barring no error occured)? or do I specifically need to wait for onSaveCompleted()

Since this is an asynchronous call, Sys.Services.ProfileService.save() will return immediatelybefore the save code on the server gets executed.

So you cannot assume that the property is saved before onSaveCompleted() is fired
because there could be errors on the server during processing in which case onProfileServiceFailed() will be fired.


Thanks! That is what I suspected but wanted confirmation.

Saturday, March 24, 2012

question about ListSearch tool

Hi,I have a problem with ListSearch tool ,when i find the word in the list i need save this word in a variable but no value save in my variable how can do this ??!!!

when i use DropdownList.selectedItem or value my variable is null ,

protectedvoid DropDownlist1_SelectedIndexChanged(object sender,EventArgs e)

{

string Var = DropDownlist1.SelectedItem.ToString();

}

please help me...Tongue Tied

thanks

Have a look here:http://www.asp.net/learn/ajax-videos/video-142.aspx for how to use the ListSearch control.

-Damien


Thanks from your answer... i look this video but ...this can't help me because i need the value of selected item of DropDownList but when i return this value,it is null and the selected index= 0 how can solve this problemt ...Thanks


In this video if you return selected value of dropDownList, the value is 'Alfa' for all of your selection (Sample for ListSearch Ajax) and the selected index=0 for all of selection this problem create when i bind an array list to dataSource of DropDownList ,i delete ListSearch tool from my form but this problem dont solve how can solve it...??

Wednesday, March 21, 2012

Question on Drag/Drop - Can you intercept the X/Y coordinates for alternate saving?

I want to grab to X/Y coordinates and save them someplace other than the Profile database. Is there an eventarg description that shows the eventargs for the DragDrop control?

Thanks!

I am after the exact same information as I need to have one user with several layouts. Did you come across this information in the end? Or alternativley is someone able to offer any advice/examples.

Many thanks

Mark