Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Smartpart with ajax and session

  Asked By: Mario    Date: Jan 15    Category: Sharepoint    Views: 1302

I have problem with coding a user control to use with smartpart with ajax.

In the user control I have a textboxes, two buttons and a checkbox list.

First button retriews the documents in a document library and fills in the
checkbox list.

After selecting some of the elements buuton2 does something on the selected

This is the scenario that i planned.

But the first part works OK. I fill in the checkboxlist. When I select some and
click on the

Second button checkboxlist is emtied and nothing done.

To prevent this i tried turning on autosubmit of checkboxlist and putting the
items on the session variable.

But this didn't work. It seems like when I update or set a variable in a
function, I can only use session variable

inside that function and nowhere else which shouldn't be the case

Any idea on how to proceed?



1 Answer Found

Answer #1    Answered By: Dorothy Farmer     Answered On: Jan 15

My best suggestion would be to forget about using a user  control and
smartpart. Just write the whole thing as a custom webpart. Using smartpart  and
a user control  are just adding multiple levels of assumptions and redirection to
your effort. You would be much better served by doing it as a regular webpart.

Didn't find what you were looking for? Find more on Smartpart with ajax and session Or get search suggestion and latest updates.