Best Practise for the Web and Strataframe


Author
Message
Olivier
Olivier
StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)
Group: StrataFrame Users
Posts: 96, Visits: 806
Hello Ben,

It's possible to desactivate the Object Session with Strata , to Load on each demand ?

Without modify the source code?

thanks
Olivier

==============================================
Asp.net C# - Strataframe - telerik
==============================================
Edited 12 Years Ago by Olivier
Olivier
Olivier
StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)
Group: StrataFrame Users
Posts: 96, Visits: 806
Hello Ben,

May be, i explain myself very bad.

I don't know if we store Strata on Session or Viewstate it's better.

But , i don't want to depend the limited time , for my user.

I mean, i want to understand how Entity framework work with asp.net
and if my problem will be resolv with Strata 2.0.

Does Entity depend some variable session ?

If the user add new record and my app can load their session with cookie,
to during more 24 h if i want.

If the user add new record with entity it's work without session or not ?

Strata will be fusion with entities ?

It's possible if the session is expired do not lose the value in textbox , to reload Bo to make an Add() ?

thanks for your help, i have many question about stroke with strata and the web .

ben

==============================================
Asp.net C# - Strataframe - telerik
==============================================
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
We use the Session because the business objects can get pretty large, and we didn't want to run into the maximum HTTP request size limit.  However, the business objects are serializable, so they can certainly be stored in the ViewState.  

To do this, build your own BasePage and don't use the StrataFrame one.  Create it by copying the one from the StrataFrame source code.  It's only ~300 lines of code, and everything will stay the same except for the InitializeBusinessObjects() method.  There are 2 references in there to the Session, and you can change those to ViewState.  That method is not overridable, otherwise, you could just override it rather than having to re-create the BasePage class.  Which is certainly another option: modify the source to make the InitializeBusinessObjects() method Protected Override and override it to store the BOs in the ViewState rather than the Session.

I'm thinking this is an implicit enhancement request to be able to store the v2 entities in the ViewState, no?
Olivier
Olivier
StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)StrataFrame User (430 reputation)
Group: StrataFrame Users
Posts: 96, Visits: 806
Hi All,

I create some app on the web with c# (asp.net) and strataframe.

I have a lot of user which start a webform to add a new record,
when i click on new , i make : "this.MyBo.add()"

They make other things, during more 20min,  and the get a error when they validate their form.

I know , that i get grow up the session, but it's not recommandate on the web.

Why Strata store in variable Session ? not in the viewstate Session ?

Have you a solution for this problem ?

Thanks
Olivier

==============================================
Asp.net C# - Strataframe - telerik
==============================================
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search