Home
Search results “Resources file asp net”
localization and globalization in asp.net
 
09:17
http://www.jquell.com/ . localization and globalization in asp.net In this video I will show you how to create culture-aware and locale-specific web content with no additional code. Use the Resource Editor to create page-level and application-level resources
Views: 12138 tutorialaspnet
Resources in asp.net
 
06:52
Using Resources in visual studio asp.net.
Views: 880 dotnetalchemy
ASP.NET 4 MVC 5 Multi language web-application
 
16:40
Creation ASP.NET 4 MVC 5 Multi-language web-application. Use resource files, cookies. Visual Studio 2015, C#. Project can be downloaded here: https://www.dropbox.com/s/vei3re6o4g21vc9/MultiLanguage.zip?dl=0
Views: 41214 Nurym Kenzh
ASP.NET Core Localization
 
21:47
Brief overview of localization and resources in ASP.NET Core apps. Source for the sample app I work with in the video can be found at https://github.com/mjrousos/aspnetcore-sample
Views: 3668 Mike Rousos
ASP.NET: simple multilingual web site
 
26:07
Create multilingual web project in Visual Studio 2013 Express for Web on C#. Use resource files, without them, let to user change language. Project can be downloaded here: https://www.dropbox.com/s/no31bqjefsvr43q/Localize.zip?dl=0
Views: 8451 Nurym Kenzh
VB.NET Tutorial - How To Add And Use Image From Resources File In Visual Basic .Net
 
03:26
Display Image From Resources Files Into PictureBox In VB NET Source Code: http://1bestcsharp.blogspot.com/2016/09/vb.net-add-and-use-image-from-resources-file.html All My Programming Projects Here --- http://bit.ly/2HrU8hK My Source Code Store --- http://bit.ly/2OsC0TU VB.Net Course -- http://bit.ly/2wnNiVt Programming Projects: http://1bestcsharp.blogspot.com/p/programming-projects.html visit our blog https://1bestcsharp.blogspot.com/ facebook: https://www.facebook.com/1BestCsharp twitter: https://www.twitter.com/1BestCsharp_ subscribe: http://goo.gl/nRjPKk C# And Java Programming Books http://1bestcsharp.blogspot.com/2015/04/c-and-java-programming-books.html In This VB.NET Tutorial We Will See How To Insert Image Into Resources Files And Use It ( Show The Image In PictureBox ) In Visual Basic .NET Programming Language subscribe for more tutorials VB.NET Tutorials: Populate DataGridView From DataTable In VB NET https://www.youtube.com/watch?v=fxjpsWQ4vTA Add A Row To DataGridView From TextBox In VB.NET https://www.youtube.com/watch?v=Z2jk0rjozSM Get Selected Row Values From DataGridView Into TextBox In VB.NET https://www.youtube.com/watch?v=EkjwdrM_r6o How To Update Selected DataGridView Row With TextBox Using VB.NET https://www.youtube.com/watch?v=sJHQ1eitwSs How To Delete A DataGrid Selected Row Using VB.NET https://www.youtube.com/watch?v=YskPKukuGYk How To Add And Update A Row To DataGridView From TextBox + Delete Row In VB.NET https://www.youtube.com/watch?v=zWx16BKAu8Q How To Add A Row To GridView From InputBox In VB.NET https://www.youtube.com/watch?v=UbIbAl3Wg7I How To Set Selected Row Values From DataGrid Into InputBox In VB.NET https://www.youtube.com/watch?v=enD1anuXb6E Update Selected GridView Row Using InputBox In VB.NET https://www.youtube.com/watch?v=4p5oSMaaiws How To Add And Update A Row To DataGridView From InputBox In VB.NET https://www.youtube.com/watch?v=R2tWF8Fw9XE How To Browse Image Into PictureBox Using VB.NET https://www.youtube.com/watch?v=nduEQotFTR8 How To Populate Datagridview With Images In VB.NET https://www.youtube.com/watch?v=rkp4SzFsg-Y Add Image To GridView From PictureBox In VB.NET https://www.youtube.com/watch?v=mh3Grq4g4V8 Get Image From DataGrid To PictureBox In VB.NET https://www.youtube.com/watch?v=mFfwxDrLhg8 How To Update DataGridView Cell Image Using PictureBox In VB https://www.youtube.com/watch?v=iKsPW8WsTY4 Add CheckBox Column To DataGrid In VB.NET https://www.youtube.com/watch?v=DqAChXpU64A How To Know If GridView CheckBoxCell Is Checked In VB https://www.youtube.com/watch?v=_-yz4rx3xxo Delete Datagridview Checked Rows Cell Using VB https://www.youtube.com/watch?v=PZRtmei1Bu0 VB.NET Tutorial - How To Dispaly Datagridview Checked Row To Another DataGridView https://www.youtube.com/watch?v=smyojy0v_1U Get The Sum Of GridView Column Values Using VB NET https://www.youtube.com/watch?v=EwZEP0SzUqg The Maximum Value From DataGrid Column Using VB NET https://www.youtube.com/watch?v=6mnE8Gc1ERQ How To Get The Minimum Value From DataGridView Column Using VB.NET https://www.youtube.com/watch?v=imsgfLCURlY The DataGridView Column Average Value Using VB NET https://www.youtube.com/watch?v=ChRxbpGyq_A The DataGrid Column Max, Min, Sum, Average Value Using VB NET https://www.youtube.com/watch?v=Qt_WONZQ5wg SlideShow In Visual Basic .NET https://www.youtube.com/watch?v=oDjn7tY1wpg Export RichTextBox Text To Text File In VBNET https://www.youtube.com/watch?v=r7O0XfpEbtk Export Datagridview Data To Text File In VBNET https://www.youtube.com/watch?v=SJaEKrVInA4 How To Style Text Font In Visual Basic https://www.youtube.com/watch?v=B1A1T5Ip0oY DataGridView Show Selected Row Data In Another Form https://www.youtube.com/watch?v=GXGm6dR_yhM How To Use ColorDialog https://www.youtube.com/watch?v=nShi20BTr2A Read Text From Text File InTo RichTextBox https://www.youtube.com/watch?v=wwHsCG0LhqI How To Search And Select Text In RichTextBox https://www.youtube.com/watch?v=fU56x6IaioI How To Use Timer Control In Visual Basic.Net https://www.youtube.com/watch?v=jOeBgDxKFbk How To Add And Use Image From Resources File In VBNET https://www.youtube.com/watch?v=qhS2GZk8ejo
Views: 8689 1BestCsharp blog
ASP.NET AJAX Editor - localization by Using Global Resources
 
04:10
Telerik UI for ASP.NET AJAX: https://www.telerik.com/products/aspnet-ajax.aspx
Views: 453 Progress Telerik
Globalization And Localization With Razor in ASP.NET MVC
 
22:32
In this video, I will demo how to create Globalization And Localization With Razor in ASP.NET MVC You can see programming languages book reviews and buy . Creation ASP.NET 4 MVC 5 Multi-language web-application. Use resource files, cookies. Visual Studio 2015, C#. Project can be downloaded here: . In this video, I will demo how to create Globalization And Localization With Razor in ASP.NET MVC You can see programming languages book reviews and buy . In this video we have shown how to create a Multi-Language application in MVC3 razor syntax. • Resource files to store text in different languages. One file for .
Views: 630 Genevieve Vega
33. (ASP.NET Core 1.0 & MVC) ViewImports Files
 
10:19
This How To Use ViewImports Files video is part of the ASP.NET Core 1.0 beginner programming tutorial course hosted by Steve Bishop, and covers what a _ViewImports file is for and how to use it to reduce the amount of code needed in your views. The ASP.NET Core 1.0 beginner course is a free .NET tutorial series that helps beginning programmers learn the basics of ASP.NET Core 1.0. These free ASP.NET Core programming tutorials cover a variety of basic topics such as downloading and installing ASP.NET Core, setup and configuration of ASP.NET Core, the MVC architecture, Razor View engine, ASP.NET Identity, Entity Framework 7.0, and other topics. After watching this beginner series on ASP.NET Core 1.0, you should be able to create your own website or web application. Work Files Link: https://goo.gl/FTveLv Click Here For The Full Playlist: https://www.youtube.com/playlist?list=PLYMOUCVo86jGwWoSoEkpgnCJ3IPXIQmIC Click Here For The Channel Page: http://ProgrammingMadeEZ.com Click Here For My Blog: http://techie-tid-bits.blogspot.com Click Here For My Facebook Page: http://www.facebook.com/ProgrammingMadeEZ/
Views: 3252 Programming
Local Resources In ASP.NET
 
05:26
Local Resources In ASP.NET.
Views: 1077 Tarun Saini
ASP.NET Resource Files (.RESX) (CVE-2018-8172) Remote Code Execution Vulnerability
 
06:05
Microsoft Visual Studio is prone to a remote code-execution vulnerability. An attacker can leverage this issue to execute arbitrary code in the context of the current-user. Failed exploit attempts will likely result in denial of service conditions. https://www.nccgroup.trust/uk/about-us/newsroom-and-events/blogs/2018/august/aspnet-resource-files-resx-and-deserialisation-issues/
Adding a File Resource
 
02:07
This tutorial shows how to add a file resource to a course in Moodle 2.
Views: 411 thelearninghouse
ASP.NET MVC Multi idioma | Validando Modelos | Programando en ASP.NET MVC 5
 
15:18
No siempre podemos asumir el idioma de preferencia de tus usuarios, según el alcance de tu aplicación web, es posible que algunos de ellos tengan idiomas de preferencia distintos al tuyo. En este video aprenderemos a tomar en cuenta el idioma de preferencia del usuario para mostrarle contenido según el idioma del usuario. Primero debemos crear unos Resource Files. Estos archivos son los que contienen los textos de la aplicación en distintos idiomas. La idea es que a cada idioma le corresponde un Resource File. Así, si quieres tener tu aplicación en 3 idiomas, tendrás 3 Resource Files. Uno de los Resource Files será el por defecto, y los demás se ejecutarán si el idioma del usuario se corresponde con el idioma de algún Resource File. Los Resource File son simplemente un archivo que contiene un conjunto de campos y valores; usamos un nombre de campo para guardar un valor en específico. La idea es que cada Resource File contenga los mismos campos, con sus valores en sus respectivos idiomas, y luego, ASP.NET MVC se encargue de escoger el archivo correcto según el idioma del usuario. Debemos configurar el archivo de recursos para su uso fácil tal como lo indica el video. También debemos configurar la etiqueta de Globalization en el system.web del web.config para indicarle a ASP.NET MVC que se encargue de cambiar los aspectos culturales de la aplicación por nosotros. En el caso de las vistas, basta con colocar el NamesSpace, el archivo del recurso y el nombre del campo, para traer su valor. En el caso de los modelos, uno utiliza parámetros como ResourceType para indicar el archivo de recursos a utilizar, y luego indicamos el campo a mostrar. De esta manera, nuestros formularios creados con Scaffolding, tendrán una visualización determinada según el idioma del navegador del usuario.
Views: 5253 gavilanch2
Lesson 12 (Part 1) - Localize WPF and ASP.NET using C# and XAML
 
08:49
In Lesson 12 you will learn to: Localize a WPF application using resource files, XAML and C#. Localize an ASP.NET application using resource files.
Views: 14517 C# Guitar
Solved: IOException The process cannot access the file   Asp.Net Core MVC IOError
 
04:48
An unhandled exception occurred while processing the request. IOException: The process cannot access the file 'C:\_Daten\Desktop\xxx\wwwroot\User_Files\User_Images\Original\User_Image_1.jpg' because it is being used by another process. System.IO.FileStream.OpenHandle FileMode mode, FileShare share, FileOptions options
Views: 165 CodeDocu_com
Managing Static Files in ASP.NET Core, presented by Ugo Lattanzi
 
06:19
In the previous video, Ugo showed developers how to set up ASP.NET Core. In this video, learn how to manage static resources like image files. Intended for beginners looking for guidance on the basics, this video is the second in a new series. Looking for more resources to learn .NET development? Check out Syncfusion's Succinctly series of free e-books, offering all the essential information on technical topics in 150 pages or less: http://bit.ly/2jrYRD0 Learn more and download a free trial of the Essential Studio for ASP.NET Core: http://bit.ly/2GcO4nV Subscribe to our channel for more, or follow us on Facebook and Twitter @Syncfusion for the latest updates and industry news. Like this video, or want to see something similar on another topic? Let us know in the comments.
Views: 2882 Syncfusion, Inc
ASP.NET CORE : Returning Resources with Model in WebAPI
 
09:41
In this WebAPI Tutorial, i will teach you, How to use model to returning resources in WebAPI.
Views: 250 ASP.NET MVC
Microsoft ASP.net 2.0  MANAGING RESOURCES & LOCALIZATION   Creating & Using Page-Specific Resources
 
06:59
Get the complete lesson at http://www.totaltraining.com. find out about more lessons on Twitter @totaltraining or http://www.Facebook.com/total-training. Order today and save 20% using coupon code tt_social. This two part series is perfect for learning one of the hottest tools for building powerful, dynamic web applications. Set 1 helps you get up to speed with the program and Set 2 guides you to mastery level. Note: The source code within this training is implemented in visual C#
Views: 2131 totaltraining
ASP.NET Tutorial 1- Introduction and Creating Your First ASP.NET Web Site
 
15:02
Good tutorials for beginners using ASP.NET/C# A Beginner's Tutorial for Understanding and Implementing ASP.NET Beginners Introduction to ASP.NET asp.net tutorial for beginners Searches related to asp .net tutorial for beginners asp .net tutorial for beginners free download asp .net tutorial for beginners pdf asp.net tutorial asp.net 2010 tutorial for beginners asp net tutorial for beginners with examples ajax tutorial for beginners in asp net asp net tutorial for beginners youtube jquery in asp net tutorial for beginners Beginners Learn .NET and c# Csharp Lab 1 Day 1
Views: 886290 ProgrammingKnowledge
Windows authentication in asp.net   Part 87
 
11:18
Text version of the video http://csharp-video-tutorials.blogspot.com/2012/12/windows-authentication-in-aspnet-part-87.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-87-windows-authentication.html All ASP .NET Text Articles http://csharp-video-tutorials.blogspot.com/p/free-aspnet-video-tutorial.html All ASP .NET Slides http://csharp-video-tutorials.blogspot.com/p/aspnet-slides.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In Parts 85 and 86 of this video series, we discussed about anonymous authentication. Anonymous authentication is fine for web sites that contain public information, that every one can see. However, if the web site contains private information or performs tasks such as booking tickets, placing orders etc, then the users need to be authenticated and authorised. Windows authentication, identifies and authorizes users based on the server's user list. Access to resources on the server is then granted or denied based on the user account's privileges. Windows authentication is best suited for Intranet Web applications. The advantage of Windows authentication is that, the Web application can use the exact same security scheme that applies to your corporate network. User names, passwords, and permissions are the same for network resources and Web applications. Security for an asp.net web application can be configured at 2 places. In IIS and in the application itself. If both, anonymous and windows authentication are enabled in IIS, and, if we don't have a deny entry for anonymous users, in the web.config file, then the resources on the web server are accessed using anonymous authentication. Anonymous authentication can be disabled in IIS or in web.config file. If you want to have the application code executed using the logged in user identity, then enable impersonation. Impersonation can be enabled thru IIS or by setting identity element's impersonate attribute to true in web.config file. If impersonation is enabled, the application executes using the permissions found in your user account. So, if the logged in user has access, to a specific network resource, only then will he be able to access that resource thru the application.
Views: 115186 kudvenkat
26 - ASP.NET MVC Validation Attribute String Length And Resources
 
13:22
26 - ASP.NET MVC Validation Attribute String Length And Resources
Views: 349 Mesut ÇAKIR
How to remove .aspx extension from URL in asp.net
 
07:38
Install Nuget package. Install-Package Microsoft.AspNet.FriendlyUrls "Site.Mobile.Master" and "ViewSwitcher.ascx" are optional files you can delete these files if not required.(if you are getting error please delete) Please subscribe to my channel for more videos
Views: 3641 deepak paleewal
ASP.NET CORE :Returning Child Resources in WebAPI
 
19:04
In previous video tutorial i have already teach you, how to return resources in WebAPI, You can check : https://youtu.be/0ipHEOICV3c In this tutorial, i will show you how to return child resources in WebAPI.
Views: 133 ASP.NET MVC
Part 22 - Style.Render, Script.Render, and BundleConfig file in Asp.net MVC
 
11:17
Overview In this video you will come to know about the purpose or Style.Render, Script.Render, and BundleConfig.cs file in asp.net mvc application. SOCIAL : Like TechnoTips official Page : http://facebook.com/technotipstutorial Subscribe : http://youtube.com/user/aapkanigam Follow us on Twitter : @technotipsMVC Get CODE HERE: http://technotipstutorial.blogspot.in/2017/01/part-22-stylerender-scriptrender.html INTRODUCTION : Why Style.Render() and Script.Render() method are used in layout? Style.Render() o It is used to render the bundle of CSS files defined in Bundleconfig.CS file. Script.Render() o It is used to render the bundle of Scripts files defined in BundleConfig.CS file. Style.Render() and Script.Render() generate multiple Style and Script tags for each item in the CSS bundle and Scripts bundle when optimizations are disabled. How to enable optimization? Open Global.asax file and in Application_Start set EnableOptimizations = true , Like in following example RECOMMENDATION: 1.Create Navigation bar (bootstrap playlist) : https://www.youtube.com/watch?v=FwqcoXMwgQU&index=3&list=PLM5JAv_WpgH9BrISrthg3-u6ak8_IlNe5 TAGS : Style.render Script.render Partial view in mvc html.partial html.RenderAction how to create a - website how to create bootstrap popup modal asp. net mvc asp.net mvc interview questions asp.net mvc 5 tutorial model view controller jquery-ajax Post
Views: 11044 Technotips - Ashish
Event/Scheduler calendar in asp.net MVC application
 
40:53
Today I will show you, how to implement Event/Scheduler calendar in asp.net MVC application. We know that Modern web application imposes ever higher demands on the user interface. Right? Here I will show you, how we can create an event/scheduler application with a modern user interface using jquery fullcalendar plugin. Read full article & Download source code: http://www.dotnetawesome.com/2017/06/event-calendar-in-aspnet-mvc.html Download fullcalendar resources: https://fullcalendar.io/download/ Next part of this tutorial Video: https://youtu.be/Jt9vSY802mM Blog: http://www.dotnetawesome.com/2017/07/curd-operation-on-fullcalendar-in-aspnet-mvc.html
Views: 34802 sourav mondal
How can I properly handle 404 in ASP NET MVC(1/2)
 
12:01
How can I properly handle 404 in ASP NET MVC. exection:The resource cannot be found.
Views: 5453 Go Freelancer
Multi - Language Application in ASP.NET MVC3 Razor
 
11:13
In this video we have shown how to create a Multi-Language application in MVC3 razor syntax. • Resource files to store text in different languages. One file for each language. • We need to override ExcuteCore() method of controller class. • We need to use cookies to store and pass data from view to ExecuteCore() method. • We need to change the culture of current thread depending upon the dropdown selection. For more information visit : http://20fingers2brains.blogspot.in/2013/01/multi-language-application-in-aspnet.html
Views: 11825 99codingexamples
Uploading Files Using ASP.NET Web Api
 
08:34
In this video, we show a solution for uploading files using an ASP.NET Web Api. The video was inspired by a blog post by Chris Klug at http://chris.59north.com/post/Uploading-files-using-ASPNET-Web-Api.
Views: 19917 Webucator
Calling ASP NET Web API service in a cross domain using jQuery ajax
 
10:48
Text version of the video http://csharp-video-tutorials.blogspot.com/2016/09/calling-aspnet-web-api-service-in-cross.html Slides http://csharp-video-tutorials.blogspot.com/2016/09/calling-aspnet-web-api-service-in-cross_21.html All ASP.NET Web API Text Articles and Slides http://csharp-video-tutorials.blogspot.com/2016/09/aspnet-web-api-tutorial-for-beginners.html All ASP.NET Web API Videos https://www.youtube.com/playlist?list=PL6n9fhu94yhW7yoUOGNOfHurUE6bpOO2b All Dot Net and SQL Server Tutorials https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd
Views: 86901 kudvenkat
Attribute routing in ASP NET Web API 2
 
10:08
For the example code used in the demo, please refer to the text article of this video. http://csharp-video-tutorials.blogspot.com/2017/02/attribute-routing-in-aspnet-web-api-2.html Slides http://csharp-video-tutorials.blogspot.com/2017/02/attribute-routing-in-aspnet-web-api-2_14.html All ASP .NET Web API Text Articles and Slides http://csharp-video-tutorials.blogspot.com/2016/09/aspnet-web-api-tutorial-for-beginners.html All ASP .NET Web API Videos https://www.youtube.com/playlist?list=PL6n9fhu94yhW7yoUOGNOfHurUE6bpOO2b All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss Attribute Routing introduced in ASP.NET Web API 2. Let us understand attribute routing with an example What is Attribute Routing Using the [Route] attribute to define routes is called Attribute Routing What are the advantages of using Attribute Routing Attribute routing gives us more control over the URIs than convention-based routing. Creating URI patterns like hierarchies of resources (For example, students have courses, Departments have employees) is very difficult with convention-based routing. With attribute routing all you have to do is use the [Route] attribute as shown below. [Route("api/students/{id}/courses")] How to enable Attribute Routing In ASP.NET Web API 2, Attribute Routing is enabled by default. The following line of code in WebApiConfig.cs file enables Attribute Routing. config.MapHttpAttributeRoutes(); Can we use both Attribute Routing and Convention-based routing in a single Web API project Yes, both the routing mechanisms can be combined in a single Web API project. The controller action methods that have the [Route] attribute uses Attribute Routing, and the others without [Route] attribute uses Convention-based routing.
Views: 43892 kudvenkat
Java Script in ASP using External File
 
03:04
Learn simple steps to become expert programmer.
Views: 116 Faisal Ahmed
ASP.NET - How to fix error is not allowed here because it does not extend class
 
01:22
example that shows how to fix the following error - is not allowed here because it does not extend class 'System.Web.UI.Page'. more info http://howtodomssqlcsharpexcelaccess.blogspot.ca/2013/02/aspnet-how-to-fix-errror-is-not-allowed.html
Views: 10656 Vis Dotnet
ASP NET Web API facebook authentication
 
14:56
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/02/aspnet-web-api-facebook-authentication.html Slides http://csharp-video-tutorials.blogspot.com/2017/02/aspnet-web-api-facebook-authentication_8.html All ASP .NET Web API Text Articles and Slides http://csharp-video-tutorials.blogspot.com/2016/09/aspnet-web-api-tutorial-for-beginners.html All ASP .NET Web API Videos https://www.youtube.com/playlist?list=PL6n9fhu94yhW7yoUOGNOfHurUE6bpOO2b All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss using Facebook authentication with ASP.NET Web API. When the user clicks "Login with Facebook" button, he will be redirected to Facebook login page. The user will then provide his Facebook credentials. Once the login is successful, the user will be redirected to our application with an access token, which is a proof that the user is successfully authenticated and our web application grants access to the protected resources. To use Facebook account for authentication, we will have to first register our application with Facebook. Next enable Facebook OAuth authentication in ASP.NET Web API service Step 1 : Facebook has made a breaking change to it's API in version 2.4. The change is, in addition to the access token we also have to send the fields that we want in URI. In version 2.3 and earlier, the URI used to be as shown below. The access token is appended to the URI using a ? https://graph.facebook.com/v2.3/me?access_token=ABC With version 2.4, they have changed it to as shown below. Instead of using ? we have to use & to attach the access token to the URI https://graph.facebook.com/v2.4/me?fields=id,email&access_token=ABC The defualt implementation for the Facebook Client, that is provided by Microsoft attaches the access token to the URI using a ?, so we have to change it to &. To do that, Add a folder to the project. Name it "Facebook" Add a class file to the folder. Name it FacebookBackChannelHandler.cs Copy and paste the code from my blog. Step 2 : In Startup.Auth.cs file in App_Start folder iclude the following code block. Use the AppID and AppSecret that we got after registering our application with Facebook. var facebookOptions = new FacebookAuthenticationOptions() { AppId = "160811734413146", AppSecret = "21f2665e0aed11867fcd8d35e67d6068", BackchannelHttpHandler = new FacebookBackChannelHandler(), UserInformationEndpoint = "https://graph.facebook.com/v2.4/me?fields=id,email" }; facebookOptions.Scope.Add("email"); app.UseFacebookAuthentication(facebookOptions); Step 3 : On Login.html page, include the HTML for "Login with Facebook" button. Step 4 : Wire up the click event handler for "Login with Facebook" button $('#btnFacebookLogin').click(function () { window.location.href = "/api/Account/ExternalLogin?provider=Facebook&response_type=token&client_id=self&redirect_uri=http%3a%2f%2flocalhost%3a61358%2fLogin.html&state=GerGr5JlYx4t_KpsK57GFSxVueteyBunu02xJTak5m01"; }); Step 5 : In GoogleAuthentication.js file, modify isUserRegistered() and signupExternalUser() functions as shown below. I have included comments where the code is modified, so you know what has changed. function isUserRegistered(accessToken) { $.ajax({ url: '/api/Account/UserInfo', method: 'GET', headers: { 'content-type': 'application/json', 'Authorization': 'Bearer ' + accessToken }, success: function (response) { if (response.HasRegistered) { localStorage.setItem("accessToken", accessToken); localStorage.setItem("userName", response.Email); window.location.href = "Data.html"; } else { // Pass the login provider (Facebook or Google) signupExternalUser(accessToken, response.LoginProvider); } } }); } // Include provider parameter function signupExternalUser(accessToken, provider) { $.ajax({ url: '/api/Account/RegisterExternal', method: 'POST', headers: { 'content-type': 'application/json', 'Authorization': 'Bearer ' + accessToken }, success: function () { // Use the provider parameter value instead of // hardcoding the provider name window.location.href = "/api/Account/ExternalLogin?provider=" + provider + "&response_type=token&client_id=self&redirect_uri=http%3a%2f%2flocalhost%3a61358%2fLogin.html&state=GerGr5JlYx4t_KpsK57GFSxVueteyBunu02xJTak5m01"; } }); }
Views: 50797 kudvenkat
How to create mvc 404 custom error page asp.net 2017
 
07:24
creating 404 Custom error page in asp.net MVC application and set custom error mode, status code in web.config file
ASP.NET MVC How to fix error Unable to retrieve metadata for
 
01:34
Short video that shows how to fix the following error while creating controller (ASP.NET MVC C#) Unable to retrieve metadata for ''. Using the same DbCompiledModel to create ... More info: http://howtodomssqlcsharpexcelaccess.blogspot.ca/2013/03/how-to-fix-error-unable-to-retrieve.html
Views: 22249 Vis Dotnet
[How Do I:] Create a Multi-Lingual Site with Localization? ASP.NET
 
13:35
Learn how to create culture-aware and locale-specific web content with no additional code. Use the Resource Editor to create page-level and application-level resources.
Views: 10998 hacktv2012
Part 79   Areas in asp net mvc
 
17:40
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/08/part-79-areas-in-aspnet-mvc.html Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists When you create a new asp.net mvc application, the following folders are created with in the root directory. 1. Models 2. Views 3. Controllers This structure is fine for simple applications, but when your application gets big and complex, maintaining your Models, Views and Controllers can get complicated. The structure of a complex asp.net mvc application can be very easily maintained using areas. So, in short areas are introduced in asp.net mvc 2, that allow us to breakdown a large complex application into a several small sections called areas. These areas can have their own set of 1. Models 2. Views 3. Controllers 4. Routes Let's understand this with an example. Let's understand this with an example. Let's say, we are building a Job Portal. It's common for a typical job portal to have the following functional areas. Employee Area - This functional area allows a job seeker to create their profile, upload resume, and perform job search. Employer Area - This functional area allows a job provider to create employer profile, upload jobs, and search for suitable candidates. Administrator Area - This functional area allows an administrator to configure the site and mantain. To create an area in an MVC application 1. Right click on the project name in Solution Explorer and select Add =] Area 2. Provide a meaningful name. For example "Employee" and click Add At this point, "Areas" folder will be created, and with in this, a folder for Emploee area will be added. You can add as many areas as you want. In a similar fashion, add areas for Employer and Admin. Notice that in each area folder (Employee, Employer and Admin), you have a set of Models, Views and Controllers folders. Also, there is "AreaRegistration.cs" file, which contains the code to register a route for the area. Now navigate to Global.asax.cs file and notice Application_Start(). With in this method there is code to register all areas in your application. protected void Application_Start() { AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); } At this point Add "HomeController" to the following areas. Notice that we can have a HomeController(Controller with the same) in Employee, Employer, Admin and MainArea. 1. Employee 2. Employer 3. Admin 4. Main Area At this point, we have Index() action method in all of the HomeControllers. public ActionResult Index() { return View(); } Now Add Index view to all the areas. Copy and paste the following HTML in respective Index views. Main Area: [h1]Main Area Index View[/h1] Employee Area: [h1]Employee Area Index View[/h1] Employer Area: [h1]Employer Area Index View[/h1] Admin Area: [h1]Admin Area Index View[/h1] At this point, build the application, and navigate to /MVCDemo. You will get an error. To fix this change RegisterRoutes() method in RouteConfig.cs file in App_start folder. Notice that we are passing the namespace of the HomeController in the Main area using namespace parameter. public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }, namespaces: new [] { "MVCDemo.Controllers" } ); } Now, if you navigate to /MVCDemo/Employee, you will get an error - The resource cannot be found. To fix this, change RegisterArea() area method in EmployeeAreaRegistration.cs file in Employee folder as shown below. Notice that we are setting HomeController as the default controller public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "Employee_default", "Employee/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); } Navigating to http://localhost/MVCDemo/Employee may throw a compilation error related to System.Web.Optimization. If you get this error follow the steps below. 1. In Visual Studio, click Tools - Library PAckage Manager - Package Manager Console 2. In the Package Manager Console window, type the following command and press enter Install-Package Microsoft.Web.Optimization -Pre When we are building links using ActionLink() html helper to navigate between areas, we need to specify area name. once you do this, you will be able to navigate between areas when you click on the respective links.
Views: 78196 kudvenkat
SOLVED: HTML5 .vtt/.srt subtitles not loading in ASP .NET CORE 2.0. Error 404.
 
02:44
Failed to load resource: the server responded with a status of 404(). Static files in ASP.NET Core: https://docs.microsoft.com/en-ca/aspnet/core/fundamentals/static-files?view=aspnetcore-2.0&tabs=aspnetcore2x
Views: 41 Taras Kryvko
Eliminate Render Blocking CSS
 
13:22
How to eliminate above the fold render blocking CSS for webpages.
Views: 19332 Terry Caldwell
Resources - Upload Resource Files and Give Access Permissions
 
05:14
This tutorial shows how to upload resources in your global resource library and give access permissions to individual students or groups of stdeunts.
Views: 362 Electa Live
Part 2   Consuming a web service
 
15:47
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/11/part-2-consuming-web-service.html Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Here are the steps to consume the web service that we have created in Part 1. Step 1: Right click on WebServicesDemo solution in solution explorer and add new asp.net web application project and name it CalculatorWebApplication. Step 2: Now we need to add a reference to web service. To achieve this a) Right click on References folder in the CalculatorWebApplication project and select Add Service Reference option b) In the Address textbox of the Add Service Reference window, type the web service address and click GO button. In the namespace textbox type CalculatorService and click OK. Step 3: Right click on CalculatorWebApplication project in solution explorer and add new webform. Step 3: Copy and paste the following HTML Get the HTML for the page from my blog as youtube doesn't allows HTML in the description of the video. Step 4: Copy and paste the following code in the code-behind file protected void btnAdd_Click(object sender, EventArgs e) { CalculatorService.CalculatorWebServicesSoapClient client = new CalculatorService.CalculatorWebServicesSoapClient(); int result = client.Add(Convert.ToInt32(txtFirstNumber.Text), Convert.ToInt32(txtSecondNumber.Text)); lblResult.Text = result.ToString(); } In an interview the interviewer may ask you the following questions related to consuming a web service. 1. What is WSDL and what is it's purpose 2. How is a proxy class generated 3. What is the use of a proxy class 4. What actually happens when a web service reference is added The following 2 paragraphs should provide the answers for the above questions Visual studio generates a proxy class using the WSDL (Web Service Description Language) document of the web service. The WSDL document formally defines a web service. It contains 1. All the methods that are exposed by the web service 2. The parameters and their types 3. The return types of the methods This information is then used by visual studio to create the proxy class. The client application calls the proxy class method. The proxy class will then serialize the parameters, prepares a SOAP request message and sends it to the web service. The web service executes the method and returns a SOAP response message to the proxy. The proxy class will then deserialize the SOAP response message and hands it the client application. We don't have to serialize or deserialize dot net CLR objects to and from SOAP format. The proxy class takes care of serialization and deserialization and makes the life of a developer much easier.
Views: 233634 kudvenkat
ASP Net C#   Day 3   Setting up Web, Windows and Console Application
 
12:18
Subscribe to get updates on new lesson. Course Outline here: https://kindsonthegenius.blogspot.hu/2018/01/aspnet-c-in-24-days-course-outline.html More resources on: http://kindsonthegenius.blogspot.com This is the third day(Day 3) of our ASP.Net C# in 24 days course. It covers: Set up an Empty Solution Add A Console Application Add an Empty Web Application Add a Windows Application Add some information in each of the Projects Setting Startup Projects Trying to Access Classes across projects Setting Startup Form in Windows Project (Program.cs file) Home Work:
Views: 49 Kindson The Genius
How To Write SEO Friendly URL Routing Path (C#, asp.net) - godaddy
 
04:58
Tutorial on how to rewrite URL Routing User-Friendly keywords Web Address in asp.net, c# (global.asax) file on GoDaddy hostings. Write URLs without extensions (.aspx, .html, .php)