Make Web Application Stateless Yet Still Do Somthing Useful?
Jun 10, 2010
the web should follow the REST principle and be completely stateless. Therefore a single URL should identify a single resource, without having to keep the navigation history of each user....and I read the Wikipedia page http://en.wikipedia.org/wiki/REST and it really sounds good, but I don't get how to actually implement it. I'm working in ASP .NET Webforms NOT MVC.
For example, in the application I am about to build - I need my user to Login before I allow them to do anything. There are a couple of hoops they have to jump through before they are allowed to do much useful - like Accept T's and C's and confirm their basic details are unchanged. Finally they are allowed to do somthing they really want like BuyAProduct!It seems to me (I come from the HEAVILY stateful world of the Rich client) that I need state to record what they have done and infer from that what they are allowed to do. I don't see how I can support them (say) bookmarking the BuyAProduct URI. When they arrive at the bookmark how do I know if they have logged in and if they agreed to the T's and C's and if they dutifully checked their basic details?
I love the idea of the app being stateless, partly because it seems to completely solve the problem of "What the heck do I do when the user clicks on the Back and Forward buttons?" I don't see how I can still get it to work properly. I feel I am missing somthing really fundamental about this.
View 4 Replies
Similar Messages:
Apr 11, 2010
I am designing an ASP.NET (3.5) web application that connects to a Rocket Software UniVerse database.
I am shooting for a RESTful design and a MVC pattern. Rocket provides a .NET library called UniObjects.NET which handles everything for connecting and retrieving information from the database.
What would be the best way to in general to log my users into the database, then use that session via connection pooling? I see that in 3.5 there is the ASP.NET Routing Infrastructure and that looks promising am I in the right direction on this? Also does C# support decorators like Python and Java?
View 2 Replies
Jun 2, 2010
If I run below ASP.NET code, it gives me same output in different post-backs. First Time
Name is = Smith
also After Post-back (Button Click)
Name is = Smith
I feel though I have defined singleton, it should return a new object every time in different ASP.NET post-backs. because once the function "PAGE_LOAD" is completed then there are no reference variables holding singleton object. So there is a change of unloading the singleton class from memory by CLR. that means there is a chance of losing private static reference variable and also single ton object stored. In ASP.NET stateless environment, why is it keeping earlier object in multiple post backs and btw, without having any reference variable to that object. Is this is known danger with singleton in ASP.NET environment?
[Code]....
View 4 Replies
Feb 5, 2010
When I was localizing my web application I got one strange doubt.
In the first request i set current thread's current culture to user chosen culture. It worked fine for that particular request. But when i browsed for other page, server rendered content in default english culture. I think the reason meight be "http is stateless" means current request is served by a thread whose culture was set properly. Send request will be serverd another thread which does not about previous thread. So we should once again assign culture to this thread. Localization can be done by setting culture to a session variable.
So my question is what is the benifit that we get by setting culture to current thread. With setting to thread we can show the page in user desired language.
View 2 Replies
Feb 13, 2011
Is there a way in .net to display the text automatically when i type the first letter or word in a text box? I am looking for something like MS-Excel.. In MS-Excel, if the first word is given, automatically it displays the remaining texts, only if values are given previously.
View 6 Replies
Mar 25, 2011
What I want to know is if I am approaching this from the right angle.
I have an asp.net app I am building. I am using a Masterpage for the overall look of the app (below you can see the code).
I'd like to have the menu system use a dynamic load like jQuery's .load() function to load the content. That is fine and I have that down. The .load() function uses innerHTML to pump that content into the page. This is a problem if on that page you want to load module specific scripts and styles.
My question is, in an environment such as this, how do you guys load your scripts for these modules? Should I load every script on the initial load of the app? This app will not ever be "that big" however I want to make sure I do it right just in case.
MasterSheet
<div id="primaryNavigation">
<ul>
<li class="current"><a href="../Default.aspx">Main</a></li>
<li><a href="../Modules/Page1.aspx">Some Overview</a></li>
[Code].....
View 1 Replies
Mar 5, 2011
Now a days my company started using some third party tool in our web application they aslo instructed to our team to make the dll for every web application
The steps for creating the dll for web application?
View 4 Replies
Aug 7, 2010
1)to use a web application to make a website why does no code behind file appear in code behind?2)when i deploy to a website I need to place the web app .dll in a bin folder on root.This works but to make any changes i need to compile and upload the aspx file as well as the new dll?
View 4 Replies
Mar 25, 2010
As the title says, I wan't to run some code when the application starts. I have a vague idea that there is probably an event in the application life cycle but I am a bit unsure and could do with pointing in the right direction. So how do I make code run when the application starts?
View 5 Replies
May 24, 2010
So, after all and after all these projects that have been done. What is the best way and I should consider as standard in the furute to start any further ASP.NET Projects that are database driven.
I have done many using
1. Store procedures and classes
2. One class to handle all the add,delete,update ...etc functions
3. ADO.NET
4. Using sql statements directly on the code (I know not recommended, it was my first project) :))
..and so on
What method you recommend in the future that will save me code and errors and optimize my application speed as well.
View 2 Replies
Apr 16, 2010
I am new to asp.net, i am using .net 2.0.I am developing a web site where one of the function which i need to implement is to my application should download from data from another site and save it on server, based on the details specified by the user. i.e .. the web interface which i developed collects few information from user and generates a url. i am able to do this task ( In general if i copy this link and past it in browser it will download a zip file which will be happening at clinet side).. Now my problem is how to make my application to go to that url and download data and save it in server.
View 9 Replies
Jun 17, 2010
Is there a way to make a desktop application easily interfaceable via Web ? Meaning, can you have a way to interface with a single desktop application as if you were remote desktop'd into the machine but not? I am looking at doing this in ASP.NET or Silverlight.
View 2 Replies
Mar 10, 2011
i want to make 1 chatting application in asp.net, but i don't know nay thing abt that
1 requirement for making chat application
View 2 Replies
Jun 10, 2010
We have a website on IIS7 using ASP.NET Routing that seems as though it might be running out of resources.It just hangs after a few days, there is no error message or apparent crash.
We are making sure every .Open command is matched by a .Close command on the database connection.
We are doing the same with file Open/Close but there are very few of those.
View 2 Replies
Feb 4, 2011
I want to make my application XSS proof. It should able to resist all types of cross site scripting attack, javascript injection attack, attribute attack etc.
We are looking for very sound solution, not just Server.HTMlEncode(...).
Points:
1. All client side call should be enclosed in double quotes.We are really looking for strong remedation.
View 1 Replies
Nov 2, 2010
In my application i used .resx files. Now i need to deploy my application in a single dll. Once i deploy and add this dll as a refernce in other client applications then the culture specific dlls are added under Bin directory in client application. I don't want this to happen. Should i embed or link the satellite assembly in my applicaion to avoid this? if so how to do this?
View 3 Replies
Oct 20, 2010
In an asp.net mvc application, I would like to be able to generate views, where the routing engine will create all URLs that point to a different site, i.e. change the application path.
View 1 Replies
Feb 26, 2010
I have a project that uses a CSSHandler with images and css style sheets in the project root directory in their own folders (img, styles, App_themes). I also have a sub application that comes with a MasterPage. The sub application is located in a separate folder in the root directory with all its images, css, and pages. Functionally the sub application works, but the formatting is lost. The images and colors are not displayed. How can I make the sub application's css visible to its pages? It has probably something to do with the way the CSS handler delivers themes and css style sheets?
View 1 Replies
Sep 21, 2010
I want my web application to support multiple langauges like english,german,etc
Is there a way we can do this in visual studio or is ther any other way
View 3 Replies
Dec 8, 2010
I want to make a set up project which would install, .net framework, sql server 2008, configure my website in IIS.
View 2 Replies
Sep 29, 2010
When I start a new ASP.NET project in Visual Studio 2010, I can either create a new ASP.NET Web Site or an ASP.NET Web Application. What's the difference between these two project types? Why would I choose one over the other?
note: this question is an exact duplicate of this one, but I'm asking specifically about Visual Studio 2010 (there are no answers targeted at VS 2010 in the original question). So are the answers of the other question still valid or are there any changes with VS2010 which results in different answers?
View 1 Replies
Jun 4, 2010
I want my application to serve all of its web pages over SSL, so I added the lines...
<secureWebPages enabled="true">
<directory path="." />
</secureWebPages>
... to my Web.config and the resulting compiler error is:
Build (web): Unrecognized configuration section secureWebPages.
I am running Visual Studio 2008
View 3 Replies
Jun 1, 2010
I want to create a business object from the console application for use with a control. here is my console application:
[Code]....
View 10 Replies
Apr 27, 2010
I am using Visual Studio 2008 SP1. I face a problem while using Ajax control toolkit. In the Toolkit the Drag Extender is present that can be added to the different component. But is it possible to have specific divisions or panels that can receive my dragged Panel. As in , many sites have the functionality of rearranging the elements in the page itself and all the panels to be rearranged have specific divisions where you can drop the panel. Can we enable Selective Drop in ASP.NET ajax using Ajax Control Toolkit??
View 2 Replies
Mar 30, 2011
all I am using the first mvc tutorial to help make this application. I keep having an issue where this error occurs:
System.Data.Edm.EdmEntityType:
: EntityType 'ITmainDB' has no key defined. Define the key for this EntityType.
System.Data.Edm.EdmEntitySet: EntityType: The EntitySet LawmMarketOrders is based on type ITmainDB that has no keys defined.
The tutorial video works fine. But when I create this application it creates the above error.
Below is my Models data for the view:
namespace
LawnMarketOrders.Models
{[code]....
View 6 Replies