Running from within VS 2010, going to an IE9 browser -
I've got an asp.net page that uses two regular HTML TEXTAREA controls (with runat="server" in them so I can load the text into them)
When the page loads for the very first time, all is wonderful, all is good. It grabs some text from a Session variable and puts it in one of the TEXTAREAs, leaving the other one empty.
Until I try to do it again with different data. The page loads, but the two TEXTAREA fields contain whatever they last used.
This occurs even if I close the browser. And if I stop the server. And if I yell at the computer. Nothing will make it display the next text unless I go in and delete the browser temporary files.
NO-CACHE doesn't help, of course. ViewState is turned off for everything that allows it.
BUT, the absolutely weirdest part is this: if I look at the source of the incorrectly displayed page, it is correct. The new text is in there, the empty TEXTAREA is in there. But the browser is NOT displaying what the source says it should be.
This is a feature, not a bug, that is built into most browsers. A browser's ability to remember what's in a textarea helps you if you start to fill something out on a page and then navigate away from it -- the browser can then remember what you started to type. This browser feature is why you can click the "back" button and find your text still in a box, not wiped away.
I'm not sure how to stop it from happening, though. Controlling what the user's browser does is understandably difficult to do.
Even if I explicitly fill the TEXTAREA, it's going to show whatever was there last and not what I tell it to (and what is actually in the source of the page)?
And it's not a case of using the back button and seeing old crap. The browser was completely closed and still showed what was there last the next time it ran. Sounds like a HUGE security hole to me, not a feature. Does anyone really want someone to be able to open up a browser and see what you wrote on some page earlier?
EDIT: How about I create the page on the fly every time, with a different name, etc. Think that will confuse the browser enough that it will show what I tell it to?
I don't actually have THE answer for you... but! You can look at the source code of the libraries and find out where they do it. I had to do that for my first mobile web application for some virtual events.
You can get the un-minified version of most of them and read through it.
I'd like to make a web service that allows to find the shortest path between bus stations with Dijkstra's algorithm, then the path will be displayed on a map. (I have a database that contains the coordinated stations) but I do not know "how to start": , I am really blocked for a week and i dont find any thing , i dont find a tutorials as this subject
( This web service will be used by my android application)
realy i need help
(i use eclipse)
thank you in advance
Please understand I'm asking this question at a very high level. My client wants me to develop a secure web API for capture and reporting on business data. This is the core requirement, and secondary to that, he wants an application that consumes the API. I'm quite happy to deliver both in my chosen dev platform, i.e. ASP.NET MVC4, but I'd like some overview suggestions on what to look at 'horizontally' so to say. Should I cater for multiple formats, be REST? What are my options for securing the API? A good book covering this area would me an immense help if someone can recommend one.
I have created a WCF server application, and it's consumed by client. Everything works fine!
The problem is that I need to create a thread for every client that is connected to the server. I have read a lot that the web service create automatically a thread for every client. I tried to connect more clients, and it works.
But I need do create thread manually in my WCF server application.
Well, it is one of the project conditions. Unfortunately, I have no idea how can I do this.
All I know about threads in WCF, is that WCF uses threads from a thread pool to service requests. So when a request begins it draws a thread from this pool to execute the request and after it finishes it returns the thread to the pool.
you need to explain more what / why you are after creating a thread manually and what you are after achieving in the thread so that we can help you better.
As WCF creates a thread on the IIS server for each instance that it recieves.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
In my Server application I host a web service, which it communicates with client successfully(in localhost). WCF manage the communication between client and service, and it creates threads(automatically) for each client request that is connect.
What I need to do, is creating threads manually in my Server application for each client request.
When thread is started, it will encrypt data's(void function for encrypting) and will sent to the client. after this is done, destroy thread.
staticvoid Main(string args)
Uri httpUrl = new Uri("http://localhost:8010/MyService");
ServiceHost host = new ServiceHost(typeof(ClassLibrary1.Communicatio), httpUrl);
//Add a service endpoint
, new WSHttpBinding(), "");
//Enable metadata exchange
ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
smb.HttpGetEnabled = true;
//Start the Service
Last Visit: 31-Dec-99 18:00 Last Update: 22-Sep-14 17:14