If you have a datasource where you insert information, if you don't have views that load it, will it slow down your app just to have a giant database? (Basically logging all the actions of the app).
You will find more information on the Google App Maker website "Automatically load data". By default datasources load their data whenever a widget is bound to data on the datasource but can be disabled as #Markus Malessa said by clearing the checkbox on each
Model > Datasources > DatasourceName > Automatically Load data.
Related
Although, there are many similar question related to Asp.net: Failed to load viewstate. However, in my case with in the context of SharePoint (Server side) I am facing:
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.
Scenario is sometime at:
login (using update panel)
submitting data related to queries (update panel)
upload file (update panel)
logging out (no update panel)
Cascading dropdownlist (within update panel)
Problem is sometime it is through this exception & sometime it works. There is no child control embedding or hiding etc. Can't able to replicate on my local dev environment or internal QA server. However at client side Staging environment we are having this issue
Already remove viewstate or update enableviewstate="off"
And solution to this problem is session stickiness on load balancer!!!! We assume that applications on load balancer server should have this enable by default. But that was not the case.
Hope it might help someone in near future!!!
We have created a functionality where in we provide users to works with forms in an Offline Mode.
We are using HTML 5 Local Storage to store all the offline data.
All the forms have their own html files (for example:form-1.html,form-2.html.)
We have a parent html page which makes use of an iframe to load the requried html file based on the form selected from the drop down list.
After the user have made the modification in offline mode,the user can sync in their changes by logging to the ASP.Net WebSite.
The problem ,we are facing is that the copy of Local Storage that in modified by the user in the offline mode is not in sync when the user their to sync the changes to ASP.Net Website.
In short,when we examine the Local Storage in the IE console of the browser when we login to ASP.Net Website,it does not reflect the changes made to the Local Storage during the offline mode.
Both parent html page and the ASP.Net Website page is serverd from the same domain.
I came across this piece of article which says that this is an on going issue and it has not been fixed in IE 11.
IE and Local Storage Issues
Please see bullet# 3.
Has any one had the same kind of experience.?
Any work around?
I tested many ideas, for me attaching an empty event handler for onstorage property worked!
The WindowEventHandlers.onstorage property contains an event handler that runs when the storage event fires. This occurs when a storage area is changed (e.g. a new item is stored.)
here is my code
window.onstorage = function(e){};
Microsoft is well aware of the issue, but after about 3 years , there is still no fix and probably it will never be. more info here
This is a known bug: https://connect.microsoft.com/IE/feedback/details/812563/ie-11-local-storage-synchronization-issues
There is a workaround added to the bug report that you can use indexedDB, which is synchronized among frames. But before you can create a DB, the user need to give your web app permission to create a database.
I need to develop a web based product. Features of this will be available to users based on subscription categories like Basic Version /Premium Version / Enterprise Version. I would like to maintain single source for these subscription categories.
Here my question is,
How to design web application, which has features enabled based on configuration / subscription categories?
Thanks in Advance
This is very general question, and I will answer generally.
You can assign Roles to your registered users, and then you check using the IsUserInRole to
see what you going to show and what not.
To gain speed you can assign the permission to the user session and not always call the IsUserInRole
You can open and close some part of your page using the Panel and the Visible of it. Also close the Viewstate of the Panels that are hidden.
Alternative you can use UserControls that inside of them you check if the user have permission to see it or not, and you hide it OnInit, and also disable the ViewState of it.
And of course if a full page is not permitted you can always make a full redirect.
So a full page can have Panels, and UserControls, and the views of it depend from the user level.
You will not be able to get this readymade , you have to design the application based on the technology you are using.
I had similar kind of project going on in which we store the list of feature in database and when the page initializes loads the feature list in session.
On various pages we are showing/hiding controls based on the feature availability.
Offcourse Single feature can also have category based on the User Roles that we can check using FormAuthentication methods and change the page server side accordingly.
Let me know if you have any specific approach in mind and have question related with it.
I want to design and develop a web base software that enable user to report a problem or discussion using ASP.NET and SQL server.
This application might has many forms. For example Form A for reporting bug for software 1 and etc.
I don't want to create a table for keeping data per form.
Solution that comes to my mind is making UserControl per form. and when user chooses a form application loading target usercontrol.
Now I have challenge for save and restore data that user entered into target usercontrol.
What is your suggestion ?
What do you suggest instead of using UserControl ?
I have also review using XML to keeping forms structures but I think its hard to create UI from XML .
I can not see the difficulty in saving and restoring your data.
If you use user control, then I assume you want to reuse it in other forms as well, or it doesnt make any sense.
Or what you want is to load asp.net controls dynamically?
Then step by step:
Firstly create a proper form page you need, then convert it into several user controls (according the business logic).
Reuse user controls you just converted in other forms based on XML
config files, or URL, or query string or session. In XML you can specify the method name you going to call for saving or retrieving data. (That's the structure of one of projects I worked on)
Hoep it helps.
How to: Convert Web Forms Pages into ASP.NET User Controls
I am working a current web application for a client and I am having some trouble with session variables disappearing on me. I will try and set up a good description of the scenario as best I can. It does not happen on any page other than the page I created to allow users to modify the strings stored in a resource file.
It shows up WHEN:
Users navigate to the page, select a resource file from a list and click edit a first time. The page loads the file into a gridview and allows them to edit it. At this point the session variables are being saved a reloaded correctly upon all postbacks. NOW, they click the save button at the bottom to write the resource file to the filesystem (App_LocalResources). They select a new file from the list, attempt to load it and this time the session variables are cleared out and it redirects them to the login page because it does not know there user information.
Additinal details:
It only happens when they click a save button which in turn calls my procedure to write to the resource file.
I am not really doing much in the save function besides writing to a resource file located in App_LocalResources and for some reason this clears out my session variables.
The session variable in question is there user information, which I attempt to get as the very first thing in a page_load method.
This session information is also executed upon every postback via the page_load method.
Thanks everyone, I hope I described this well enough.
The IIS will reset the application when you change files in the directory associated with the application. Resetting the application will make you lose memory-sessions.
You could put the resource file outside the directory. Or use a stateserver for sessions.