Store data at client browser [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a scenario for some data need to store at client side I dont want to use server memory. I need to store data like resultset.
For exmp I have shopping site and when the user is to do add to basket I need to store that basket information to the browser cookie.
In short I need to store a list object in the web browser cookie.
I had use the cookie but it only store the string object.
I think the problem can be solve by serialize the list object to json string or xml string but I didnt get the right way for the same.
Can any one suggest me a right way to achive this.
I most appriciate your solution.

You can use localStorage, but it is limited to 5mb and not supported by IE7 and less.
Alternatively, for cross-browser compatibility you can use 3rd party libraries like Store.js.

Related

Post some content from website to Facebook page [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to create a website which will allow user to login with his/her Facebook credentials. Now, my website would allow user to post some content (text plus images) and also if user posts it on my website, it should also be posted on a page (which is also created and owned by me).
Is it possible to do that? If yes, can anyone point to any resource which explains how to do it?
Yes it is very easy task, you must rely on some facebook SDK, more precise, you need to choose a library that offers wrapping classes around FB Graph Api i.e. Api Client.
This being said, check the following links as a start and continue developing according to your application requirements.
https://github.com/facebook-csharp-sdk
https://www.nuget.org/packages/Facebook
P.S: the library you choose must support OAuth, and you should read more about this protocol.

Can my software send data to my site and read data? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Can my software send information to my site and read information off my site?
Imagine that someone opens a copy of my software. The IP address of that device send to my site. So I can see if that person is a friend or not. If that person is not a friend, I will set a variable to false.
The software will then read it as false then the software will close out.
Is this possible to do? If so, how can I do this?
You need to add a web service on your site then you can call the service and get an answer. You can also create a simple web page that see a white page with the result true or false. Consider using a WCF service so that it can expand if you needed more in the future.

What is the best way to store data in local in C#.net application? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have Email application. Currently I store all the data in MySQL database. I want to store data periodically in local file in XML or JSON format. So, when there is no database connection, I can use this local file to open and manage application locally.
I have Class Entity for each table of the database in my application and I retrieve all the data from database to Class object List.
I want to store information of email, contact and calendar in local file.
I want functionality to add/Update/delete emails, contact and calendar in local file.
Can anybody suggest me which option should I use? XML or JSON?
You can serialize your objects to either, so it is your choice / personal preference.
JSON has become the standard for data transfer, through the adoption of AJAX calls, although XML is still widely used.
If space is an issue, JSON uses less space.
If there is no reason to use XML, then JSON would seem like a good way to go.

Passing URL parameters in asp.net [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'd like to have a webpage where I enter certain details, and then submit and send a user a URL which takes them to another webpage where they fill in other details that are not the details I entered initially, but the values I entered are passed to their page, so I can access those values in code that I don't want them seeing or modifying. The URL I would want them to see would always be the same URL. What are my options here? The important things is that the parameters I pass cannot be modified.
If you have more than a few fields to pass, you should probably send the client some kind of ID (like a GUID) and use a database to look them up.
If you're dealing with a maximum of three or four fields, you could pass them as a querystring. Keep in mind as you're designing this that querystrings are visible to the end user - if they want to play with it, they can. You may be able to encrypt the data before you append it to the QS, but if you're going to go through that much trouble, you may as well just store it in a database and look it up. (It'll be a lot easier)

Display live scores [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am planning to design a website which displays the live scores of matches(NBA, AFL) etc. I would like to get scores, store them in my database and then display in my website. How can I accomplish this. Thanks in advance.
Thanks,
Sandeep.
Well first you need to decide how you're going to get the data. Is there a webservice that you can query? A document/webpage you can parse to get the information? Are you going to write a speech recognition device to interpret results from the radio or will you type it in by hand.
Then you need to get your database up and running, and whatever is reading your data (maybe it could be a windows service) can write the data into the database. Something like SQLExpress is quite good to try out.
Once you've got that you'll need to decide on your technology, ASP.NET or Silverlight are some good examples. You'll want to create some controls and then databind to the results from your database, which you could obtain using SQL expressions.

Categories