I have a desktop app that I'm making and I want users to have to login before the program can be used to its fullest extent. I have created a database on www.winhost.com (where my site's hosted), but now I don't know what to do. I've been on google and msdn and I would like to know how to programmatically add new rows/colums to this new database which is currently empty. And how I can update the database with new account info/get information from it.
I'm not expecting code or anything, just maybe a few good simple tutorials or something, since I haven't found what I'm looking for yet...
Here is a beginners guide to accessing SQL Server using C#:
http://www.codeproject.com/KB/database/sql_in_csharp.aspx
Hope it helps :)
You probably want to add a web service to your website either through WCF or an ASMX file or maybe an ASHX file. Your desktop app would ping that service and ask if the user is registered. If so, it would unlock the app, otherwise it would ask them to register and hit another service method that would add the record to the DB.
The defacto technology to connect to databases in the .Net world is ADO.net
There are tons of tutorials on how to get started on the web...
This video is a good start: http://windowsclient.net/learn/video.aspx?v=30440
There are others on this topic on the same site.
A ADO.net book that I liked is "Pro ADO.NET 2.0", published by APress.
I hope to have answered your question. It is not very clear whether your question is about user authentication or updating the database...
If the problem is that you are not sure how to reach the database that is hosted on their
servers, the best may be to contact the hosting company's support.
Related
Visual Studio 2010 has a way to create a new website.
I have done that with 4 different websites, all are hosted remotely on Godaddy, and they all run fine.
All of these sites come with a default Microsoft login link:
The link goes to documentation on MSDN, but that documentation covers everything in depth. I'm not a DBA, and I have never figured out how to get one of my websites to use this feature.
In the past, I have either deleted those links or set them so they were not displayed.
Now, I'd like to learn what is required to getting them to working - just something basic.
I went there and created a new, blank Microsoft SQL database. The tables are not setup, though. That may be all I need!
Looking at the default settings in the web.config file, it looks like I can simply edit the connection string to be what I need.
Microsoft posts a link in their code, but I must confess that I really don't know what I'm looking for, so it is hard to tell when I am looking at the solution.
For a hosted website (like GoDaddy), does anyone know how to get the database setup?
I'm looking for a spoon fed, Step-By-Step, "How To" for dummies like me that spend most of their time developing Windows Forms.
You are using ASP.Net - Legacy SQL Membership Provider. It has been deprecated long time ago.
ASP.Net Identity 2 is new, but it requires .Net 4.5
Closest to Legacy Membership Provider is ASP.NET Universal Providers.
Link from the 2nd picture is for web.config in general. It doesn't include any information about Membership Provider.
I'm very new to web development but I will try to explain my question as best as I can.
I am making a basic admin panel program in C#. The admin panel will pass the data to android SQLite database using XML files, so XML file will be generated whenever admin updates data, and then it'll send the data to mobile phone.
Developing is all done but I need to host the admin panel in order to give XML links to my mobile app developer so she can create XML parser class or something. (please bear with me, I'm very new to programming). Anyway, I have no idea how to host it!
I've done some Googling but they all saying I need to buy domain name. I need to host it without buying domain.
Hope that's clear. Thanks in advance.
If you are looking for a very good hosting and you don't mind about the domain name definitely try microsoft azure it is very quality server and free when you don't want to use your domain name. I mean your address would be yourdomain.microsoftazure.com instead of yourdomain.com. It is always free and you can have an sql server database free for first year. however you should put a credit card number that only used for identification and microsoft never charge you for that.
See the site below:
https://azure.microsoft.com/
I am writing a windows phone app that displays scores for certain sports. I contacted a particular site and have been granted permission to use their feed but they won't provide me a xml feed or api and have said that I must convert the data from their site to a format that I can use myself.
Using .Net, I had a go with downloading the site with a WebClient and searching for the information that way. This works fine.
When I deployed the app to my phone it didn't work.
I tried going to the site via my phone and it seems that my network provider has blocked the site as its over 18 (gambling I guess).
Anyway, is there away that I can do the above on my web site and have that return the data I am after?
UPDATE:
I am a .net man so I would normally try using asp.net/webservice but my site is hosted on Linux. I notice I can create rubys on rails apps. Is there anything I can do with this?
This is a really expansive answer, to do this, you have to have a piece of software to read in an API from a live score site and display it. It cant be answered in one answer, to know more about APIs take this course.
Hope that helps you, check the course syllabus (on the same page), there is a unit called How to Connect which will help you. Leave a comment to tell me if it helps or if i can do anything else to make it more helpful...
I am writing a simple web application that needs to retrieve a list of customers from QuickBooks and display it in a DataGrid. I have the web connector installed and setup on the server hosting the QB data file using the web service example included in the SDK.
I can add the service to my project and interact with it, but when I try to find information about how to query QB using the web service all I can find are links to vague and mostly useless documentation. What I’m hoping someone here can do is provide a real example (code included) of how you submit a query to QB and display the results.
My environment:
QuickBooks 2009 Pro
IIS 7
C#.Net 3.5
Normally I have good success doing things like this, but for some reason this one has me stumped. Many have suggested that I should run far and fast from anything that involves integrating QuickBooks with anything. Come cant, it can’t be that hard.
As always, thanks in advance for any help you may offer.
Have you read the official developer's guide?
http://developer.intuit.com/uploadedFiles/QuickBooks_SDK/QBSDK/QBWC_proguide(1).pdf
What looks easiest in this scenario, if you have experience working with other odbc data sources in C#, would be to use an ODBC implementation of the QB data. I'm not sure if there are others, but there is a commercial one (with a free trial) available here: http://qodbc.com/
Sorry, if this sounds ignorant. Is it possible to SECURELY upload data from a Windows Forms app using an asp.net web service or some other method? If so, what is the general way of doing it?
I have never used web services before.
I have an IIS 6 server with .net 3.5 installed. I need to build this windows forms program, which will hold data in a local sql compact database. When the program has access to the internet, the user needs to be able to MOVE the local data to a database on the web server.
What ways can I go about doing this? Am I on the right track thinking about web services? I have also read a bit about Sync Framework, but I'm not sure if that is all that well suited for this.
Thanks for suggestions.
EDIT
I forgot to ask: Would WCF be a possible useful technology?
Yes. Just secure the web service by SSL.
WCF can be a useful technology too. You might also want to consider SQL Server merge replication.