Tuesday, 21 January 2014


facebook

http://www.asp.net/mvc/tutorials/mvc-4/aspnet-mvc-facebook-birthday-app

http://www.codeproject.com/Articles/569920/Publish-a-post-on-Facebook-wall-using-Graph-API

http://www.c-sharpcorner.com/UploadFile/raj1979/post-on-facebook-users-wall-using-Asp-Net-C-Sharp/

http://blue-and-orange.net/articles/facebook/posting-to-user's-facebook-wall-in-aspnet-mvc-4/


twitter

http://abhi4net.blogspot.in/2013/07/twitter-api-11-integration-with-mvc-in-c.html

http://www.codeproject.com/Articles/114478/Twitter-Made-Easy-Post-to-Your-Twitter-Account-wit

http://tech.avivo.si/2010/09/publish-on-twitter-from-asp-net-mvc-csharp-nice-and-easy/

http://formativeinnovations.wordpress.com/2013/06/12/using-twitter-api-1-1-with-twitterizer-for-c/

http://www.c-sharpcorner.com/UploadFile/4b0136/getting-started-with-twitter-authentication-in-mvc5/

http://www.c-sharpcorner.com/UploadFile/d929bf/post-image-with-message-in-twitter-tweet-in-net-framework-3/

http://www.c-sharpcorner.com/UploadFile/raj1979/authorize-and-post-on-twitter-using-twitterizer/


..........................................





Friday, 17 January 2014

Getting the List of Model data in HttpPost method of Controller

View

@model IList<DTO>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
<div >
            <table>
                <thead>
                    <tr>
                        <th style="text-decoration: underline;cursor: pointer">Name</th>
                        <th style="text-decoration: underline;cursor: pointer">value</th>
                    </tr>
                </thead>
                <tbody>
                    @if (Model != null && Model.Count() > 0)
                    {
                        for (int i = 0; i < Model.Count;i++ )
                        {
                            <tr>
                                <td>@Html.TextBoxFor(m => m[i].Name)</td>
                           
                                <td>@Html.TextBoxFor(m =>  m[i].Value)</td>
                             
                            </tr>
                        }
                    }
                </tbody>
                 <tr>
                <td>
                    <input type="submit" value="Submit" class="redbutton"/>
                </td>
            </tr>
            </table>
            </div>

}

Controller

public ActionResult SystemParameters()
        {
            List<DTO> lstsysparam = new List<DTO>();
            lstsysparam = _iAdminService.GetSystemParameteres();
            return View(lstsysparam);
        }

 [HttpPost]
 public ActionResult SystemParameters(List<SystemParametersDTO> lst)
        {
           // do operations on list.

        }