This is my first time here so I apologize in advance if this question is not relevant here. I have just started to learn C# and MVC 2. Most of my learning so far has been from examples and I wanted to learn from an example which I can learn a lot from.
So my example is I want to create a C# web-app for twitter. Meaning the web application that has a text box and a submit button using MVC 2 and entity framework and When any content is submitted via the text box, the content is posted to a Twitter account. The content and twitter id are logged to a database and the form is shown again with the most recent content on the page.
Much obliged to anyone who can help/guide me on this and truly appreciate the help.
Derek
Download and follow the tutorial:
http://mvcmusicstore.codeplex.com/Wikipage?ProjectName=mvcmusicstore
Pretty much everything you want to learn about MVC is shown there. Granted it's MVC3 but you might as well start learning with the newest version.
LinqToTwitter is one library that I used. I used it for a different purpose but it has the APIs that will help you build what you want. There are plenty more libraries which will help you building a twitter client if you wish to explore more.
Other post by Sergio has already pointed you to a right place regarding MVC.
Related
I added the Facebook C# SDK package to my project but can't find any examples. The url in the help, http://csharpsdk.org, brings up a page about homework help.
Is this package no longer current? If not, what can be used instead of this?
I'm developing a facebook canvas app and need the ability to login from code and call all the relevant functions.
I thought that the new OWIN login in an MVC app would help but I couldn't figure out how to use it to automatically login and be able to make the different graph calls.
Thanks for any help. I've been fighting with this for some time now and can't seem to make progress.
See wiki documentation at github (pages on the right side) https://github.com/facebook-csharp-sdk/facebook-csharp-sdk/wiki
I want to create simple app, console or ASP .NET to create bunch of planned posts to my Facebook Page. I know there are ways to post posts to Facebook Page via apps, but I am not sure if it is possible to create planned posts.
This is just idea, so I just want to learn if there is some automagic to do this, or it is super complicated. I don't want to neither invent wheel again from the scratch or make harakiri workaround if there is no such function in Facebook API (as I never saw that there).
Thanks in regards for hints.
If by "planned posts" you mean scheduled posts where the post is only made public on a given date, then you are probably looking for this. Create a normal post but set scheduled_publish_time to a future date when you want other users to see it.
scheduled_publish_time: Time when this post should go live, this can be
any date between ten minutes and six months from the time of the API
call.
Once you create scheduled posts, you can retrieve them using /{page-id}/promotable_posts. They do not show up under /{page-id}/feed before they are published.
I was just about to upload my new, redesigned website when I realised "crap, it's just like every other website."
Then I had an idea. And I've spent the past 2 weeks planning. I have but one thing left to do, and it's proving a little difficult to figure out how I can have my website for PC's, and a whole different site for an iPad (or just larger touch based computers in general) and another for Touch-based phones, and then one for regular phones with web browsing capabilities.
Is this possible? I want separation. I don't want a bunch of javascript files with commands for everything inside them. I want to separate each 'website' and serve it based on the platform requesting the document. How can we achieve this?
If you are to recommend any libraries that may help, note that I will not use jQuery (but list jQuery anyway as others who face this problem might not mind using jQuery)
You can use Asp.net MVC and switch your views depending on the device.
This way you can reuse all your controllers and have different views for each device you want.
Scott Hanselman wrote an article a while ago about this kind of development:
http://www.hanselman.com/blog/MakingASwitchableDesktopAndMobileSiteWithASPNETMVC4AndJQueryMobile.aspx
I would recommend jQuery Mobile to use in mobile devices. I also recommend Kendo UI Mobile, it really looks amazing but the mobile version is not free..
I also suggest to take a look at SPA (Single Page Applications). With SPA you could have a rich javascript application ready for any device. Combining it with Asp.Net WebApi looks very promising.
Jonh Papa made a course on Pluralsight that is completely worth it:
http://www.johnpapa.net/building-single-page-apps-with-knockout-jquery-and-web-api-ndash-the-story-begins/
It's all about thinking about what you really need and how much effort you can put in.
long answer short, i think what you are looking for is Request.Browser to do redirects. You can Access things like Browser.Browser or Browser.Version, i think even a IsMobileDevice is to be found there.
check out: http://msdn.microsoft.com/de-de/library/system.web.httprequest.browser.aspx
We have a 5 page website and we are looking to make a desktop application to update parts of the text just 1 or 2 words to start off with , simple change the html word of hello to test from the desktop program.
I know parts of visual basic 2008 but im not a master of it and so i didn't know if that was the best way to go forward or any other programming languages.
Also what would be the best code way to try and update the text on the website
Any websites would be appreciated so i could learn and possibly build on this as this would be something id like to get into
thanks
That's a bit much to answer fully here. I can give you the basic steps and links to resources to help you on your way.
Without going into specifics, you want to do the following:
Create your website using ASP.NET (since you tagged this as .NET)
Save the text that you want to be changeable in a database
Use DataBinding in ASP.NET to retrieve the data from the database to show it on the pages.
there are plenty of videos on how to do this at http://www.asp.net
You'll have to choose between Web Forms and MVC. if you're brand new I won't try to confuse you. WebForms is a bit easier to use if you've never done real web programming before, but MVC is becoming much more popular. Since it sounds like you're new I'm going to recommend you start at http://www.asp.net/web-forms and pay attention to the "Learning Resources" area
Create a Windows Forms application to update the data
there are plenty of videos on how to do this at http://www.windowsclient.net
Technically you could update the data from an ASP.NET application, or even a Visual Studio Lightswitch app, but you specified you wanted to make a Desktop app, which I interperet as being a standard Windows app.
Of course, you'll have to host this website in IIS. I'm assuming you're already doing that...
I'm experienced in database systems. This is the first time I'm developing a web site completely, either i will use firstly flash.
I do not know how I can put a flash application as a facebook application, which is working behind with a asp.net page [web services between]
If you will inform me about, i will be happy. Sorry for my hurry and being lazy, and sorry for this stupid question. I need an shorter and helpful answer.
Refer following video and articles under that page's resource section.
http://www.adobe.com/devnet/facebook/articles/video_facebook_quick_start.html