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
I need to jquery source code implement fluid height for my jqgrid. First set the grid height as of screen size height and when the screen resolution changes or when I reduce the screen height the grid height should change based on that.
We have a website that sends multiple emails on many events, but we have heard that if the number of sent emails becomes more than a limit in one hour, the receiving mail server (such as Yahoo! and Gmail) detects the sender as a spam sender and moves all of those mails to receivers’ spam instead of inbox.
Our question is that what is that limit and How to ignore or eliminate this limit?
In my web application, we are using oracle database. my question is connection pool based on web application. Our application end user around 500. for these which connection is better i) create new connection for every request of user. ii) single connection pool via singleton object of the class iii) session based connection pool ( each user has separate connection pool)
which principle is using for web application? can please give suggestion or valuable link to me
If you get a lot of people connecting. Specfic pool for specfic guy is not an good thing because it whould cost too expensive resource usage.
The ideal solution is one link conducting many database links. In my project. One or serveral thread are only conducting database connecting and sql processsing. When finished the sql it will send data to others.
The checkfx is returning true if everything is ok and false if any of the fields is empty (or full of spaces).
Given the checkfx funtion returns true, some times I'm receiving all the fields empty and this is worrying me a lot as it seems that the company can be loosing mail contacts and at the same time giving a bad impression to the possible customer.
Any idea on what can be happening?
It seems that between the checking of the fields and the sending of the e-mail the contents are being lost...
Thank you very much in advance for your patience (I know this will not be an easy answer with the amount of information that I've posted) and help...
Let me know if I have misinterpreted your question.