How to host my ASP.Net admin panel without buying a domain? - c#

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/

Related

how to create a user on a website database using vba

I am currently creating some client based software.
The client software uses an FTP function to create the clients name and folders based on that clients name. Then, when creating reports, it will upload that report to the current clients folder-reports.
i.e uploads/clients/[clientname]/reports.
But for now I have to log in to the website and create the user name based on the clients name in my software.
My question: Is there away in VBA or C# to do this? Create a user name based on the current users name <Field>?
You could use WordPress's API
Start by looking around yourself, using some Googlefu skills. Try to come up with some basic idea, even pseudo-code if needs be at then ask a new question with more a precise problem if you do encounter one.
Also, if you need to create FTP users through CPanel, it does have an API as well. How compatible it is with .NET, I do not know though.
But you have enough reading ahead to try something for yourself for the moment.

website to pull data from another website and return it

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...

web based remote connections in c# advice

I am going to write up a webapp hosted on a windows 2003 server to allow me to connect to local and remote servers to do some basic things.
The webapp will be hosted on serverA. It will need to be able to copy files/folders from one folder to another on this server.
It will need to be able to connect to ServerB and copy files in the same way, e.g. copy \serverB\path\to\sourcefiles to \serverB\path\to\destinationfiles
ServerB hosts an installation of MSSQL 2008, I want to be able to create new database/login etc.
How do I go about this please? I've been reading a bit about Windows Authentication, Impersonation, Delegation but i don't know where to focus on.
thanks
S
To be honest there isn't really a one size fits all complete answer to your question, however there are a number of things that you need to take into consideration early in development to ensure that your platform is built on solid foundations.
From the description you have given the most critical consideration has to be security and everything you develop has to have this at its core. Judging by your post if the wrong person was to access your front end then they could wreak havoc.
As for the model to use, I would suggest Windows Authentication as this is built into the framework and gives you the ability to segregate into usergroups with differing levels of access. It will also open up some of the functionality you need, i.e. network copy of files etc
As for the database management aspect, this again can easily be done via Windows Authentication as you can grant (in SQL) windows users the ability to perform certain tasks, i.e. Create Database, Create Login, drop x, etc
All this said, it of course assumes that the two servers share user credentials, i.e. domain controller etc.
Another method, would be to use the web "interface" as a pass through onto a WCF service that operates under a specific user account that has the access you need. You would then seperately manage authentication/authorisation in a manner that you decide.
Like I said, no simple one size answer - but hopefully this will give you something to chew on.
If your goal is to create new databases or logins, why can't you use the create database and create login commands?

Connecting to SQL Server Database C#-WinForms

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.

Login to online accounts

First time poster. Back to programming after being away for a few years, trying to clean off the rust. I'm creating a dashboard that will run initially on my laptop (Macbook Pro, 10.4.x O/S). Amongst other things I want it to retrieve latest information from my online accounts. I'm starting with html, but will probably migrate to something else (TBD, possibly ruby or c#). What would sample code look like for logging into account, going through specific account workflow, retrieve data/docs/other, and pull it back to be stored locally.
It is a little open-ended, apologies and thanks in advance.
Are you looking for something like Google Gears?
It depends on the kind of accounts you want to log onto.
For instance there is a Google has an specific API for that Google Accounts API, other services provide similar API's some other do not.
So it depends pretty much what are your "online accounts" all about and if they do provide a public API or not.
EDIT
As per your comment and for the products you've mentioned, I'll suggest your to start looking at browsers plugin development and to start understanding the HTTP protocol and all the related technologies around it ( HTTPS, encryption, authentication etc. )
The public API let you easily login into an account, but you don't really need one to do it ( although it make life much more simpler ) If you do not have a public API, you can still login into any account by "simply" doing what the browser does. Sending an HTTP(s) request with the appropriate security mechanism and following the protocol.
If you know how does the browser send the request and you have the user trusting your their passwords, the only remaining thing you have to do is ... :) code it.
As of now the question is too broad to be answered. Pick one service at a time and ask specific questions about it.
I would suggest you to start with the previously mentioned "Google Accounts" API and learn from there.
One open source product that already manages google account authentication is "Ubiquity" you can take a peak at their source code and start understanding how do they fetch the user contact list.

Categories

Resources